public final class CompressingStoredFieldsIndexWriter extends Object implements Closeable
Codecs.
This writer generates a file which can be loaded into memory using memory-efficient data structures to quickly locate the block that contains any document.
In order to have a compact in-memory representation, for every block of 1024 chunks, this index computes the average number of bytes per chunk and for every chunk, only stores the difference between
Data is written as follows:
PackedInts.VERSION_CURRENT as a VIntVInt, this marks the end of blocks since blocks are not allowed to start with 0VInt which is the number of chunks encoded in the blockVIntVIntpacked array of BlockChunks elements of BitsPerDocBaseDelta bits each, representing the deltas from the average doc base using ZigZag encoding.VLongVLongpacked array of BlockChunks elements of BitsPerStartPointerDelta bits each, representing the deltas from the average start pointer using ZigZag encodingCodecFooterNotes
DocBase + AvgChunkDocs * n + DocBaseDeltas[n].StartPointerBase + AvgChunkSize * n + StartPointerDeltas[n].public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.