Class AbstractBlockPackedWriter
java.lang.Object
org.apache.cassandra.index.sai.disk.v1.bitpack.AbstractBlockPackedWriter
- Direct Known Subclasses:
BlockPackedWriter,MonotonicBlockPackedWriter
Modified copy of
org.apache.lucene.util.packed.AbstractBlockPackedWriter to use DirectWriter for
optimised reads that doesn't require seeking through the whole file to open a thread-exclusive reader.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final ResettableByteBuffersIndexOutputprotected final long[]protected booleanprotected final org.apache.lucene.store.IndexOutput -
Method Summary
-
Field Details
-
indexOutput
protected final org.apache.lucene.store.IndexOutput indexOutput -
blockValues
protected final long[] blockValues -
blockMetaWriter
-
blockIndex
protected int blockIndex -
finished
protected boolean finished
-
-
Method Details
-
add
Append a new long.- Throws:
IOException
-
finish
Flush all buffered data to disk. This instance is not usable anymore after this method has been called.- Returns:
- a file offset to the block metadata
- Throws:
IOException
-
flushBlock
- Throws:
IOException
-