Module org.elasticsearch.server
Interface DocOffsetsCodec.Encoder
- Enclosing class:
DocOffsetsCodec
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An encoder to store doc offsets in a more space-efficient format for storage.
-
Method Summary
Modifier and TypeMethodDescriptionvoidencode(int[] docOffsets, int numDocsInCurrentBlock, org.apache.lucene.store.DataOutput output) Encodes doc offsets in a more space efficient format for storage.
-
Method Details
-
encode
void encode(int[] docOffsets, int numDocsInCurrentBlock, org.apache.lucene.store.DataOutput output) throws IOException Encodes doc offsets in a more space efficient format for storage.- Parameters:
docOffsets- an array of document offsets to encodenumDocsInCurrentBlock- the number of documents in the current block to encodeoutput- theDataOutputto which the encoded data is written- Throws:
IOException- if an I/O error occurs during the encoding process
-