public class IndexSharedStringTable extends SharedStringTable
defaultBufferSize, shouldDelete| 构造器和说明 |
|---|
IndexSharedStringTable()
Create a temp file to storage the index
|
IndexSharedStringTable(Path path)
Constructor a IndexSharedStringTable with a exists index file
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
checkCapacityAndGrow()
Check remaining data and grow if shortage
|
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, grow, hasFullValue, iterator, mark, position, read, reset, size, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic IndexSharedStringTable()
throws IOException
IOException - if I/O error occur.public IndexSharedStringTable(Path path) throws IOException
path - the index file pathIOException - if file not exists or I/O error occur.public 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 occurprotected boolean checkCapacityAndGrow()
checkCapacityAndGrow 在类中 SharedStringTableCopyright © 2025. All rights reserved.