Class DeltaBaseTermStateSerializer

java.lang.Object
org.apache.lucene.codecs.uniformsplit.DeltaBaseTermStateSerializer
All Implemented Interfaces:
Accountable

public class DeltaBaseTermStateSerializer extends Object implements Accountable
TermState serializer which encodes each file pointer as a delta relative to a base file pointer. It differs from Lucene90PostingsWriter.encodeTerm(org.apache.lucene.store.DataOutput, org.apache.lucene.index.FieldInfo, org.apache.lucene.codecs.BlockTermState, boolean) which encodes each file pointer as a delta relative to the previous file pointer.

It automatically sets the base file pointer to the first valid file pointer for doc start FP, pos start FP, pay start FP. These base file pointers have to be reset by the caller before starting to write a new block.

WARNING: This API is experimental and might change in incompatible ways in the next release.