Class TrieTermsDictionaryWriter
java.lang.Object
org.apache.cassandra.index.sai.disk.v1.trie.TrieTermsDictionaryWriter
- All Implemented Interfaces:
Closeable,AutoCloseable
Writes terms dictionary to disk in a trie format (see
IncrementalTrieWriter).
Allows for variable-length keys. Trie values are 64-bit offsets to the posting file, pointing to the beginning of summary block for that postings list.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ByteComparable term, long postingListOffset) voidclose()longcomplete(org.apache.commons.lang3.mutable.MutableLong footerPointer) complete trie index and write footerlonglong
-
Method Details
-
add
- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
complete
complete trie index and write footer- Returns:
- the position in the file of the root node.
- Throws:
IOException
-
getFilePointer
public long getFilePointer()- Returns:
- current file pointer
-
getStartOffset
public long getStartOffset()- Returns:
- file pointer where index structure begins
-