public class IndexSharedStringTable extends SharedStringTable
shouldDelete| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close channel and delete temp files
|
String |
get(int index)
Getting by index
|
int |
get(int fromIndex,
String[] array)
Batch getting
|
int |
push(char c)
Write character value into table
|
int |
push(String key)
Write string value into table
|
void |
setShortSectorSize(int sssz)
Size of a short-sector in the index stream in power-of-two (sssz),
real short-sector size is short_sec_size = 2sssz bytes
(maximum value is sector size ssz,
|
commit, find, find, find, find, getTemp, hasFullValue, iterator, mark, position, read, reset, size, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic void setShortSectorSize(int sssz)
sssz - the short-sector sizepublic int push(char c)
throws IOException
push 在类中 SharedStringTablec - the character valueIOException - if I/O error occurpublic int push(String key) throws IOException
push 在类中 SharedStringTablekey - the string valueIOException - if I/O error occurpublic String get(int index) throws IOException
index - the value's index in tableIOException - if I/O error occurpublic int get(int fromIndex,
String[] array)
throws IOException
fromIndex - the index of the first element, inclusive, to be sortedarray - Destination arrayIOException - if I/O error occurpublic void close()
throws IOException
SharedStringTableclose 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 SharedStringTableIOException - if I/O error occurCopyright © 2020. All rights reserved.