public override void StartTerm() { docIndex.Mark(); if (indexOptions != IndexOptions.DOCS_ONLY) { freqIndex.Mark(); } if (indexOptions == IndexOptions.DOCS_AND_FREQS_AND_POSITIONS) { posIndex.Mark(); payloadStart = payloadOut.Position; // LUCENENET specific: Renamed from getFilePointer() to match FileStream lastPayloadLength = -1; } skipListWriter.ResetSkip(docIndex, freqIndex, posIndex); }
public override void StartTerm() { docIndex.Mark(); if (indexOptions != IndexOptions.DOCS_ONLY) { freqIndex.Mark(); } if (indexOptions == IndexOptions.DOCS_AND_FREQS_AND_POSITIONS) { posIndex.Mark(); payloadStart = payloadOut.GetFilePointer(); lastPayloadLength = -1; } skipListWriter.ResetSkip(docIndex, freqIndex, posIndex); }
public override void StartTerm() { DOC_INDEX.Mark(); if (INDEX_OPTIONS != FieldInfo.IndexOptions.DOCS_ONLY) { FREQ_INDEX.Mark(); } if (INDEX_OPTIONS == FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS) { POS_INDEX.Mark(); PAYLOAD_START = PAYLOAD_OUT.FilePointer; LAST_PAYLOAD_LENGTH = -1; } SKIP_LIST_WRITER.ResetSkip(DOC_INDEX, FREQ_INDEX, POS_INDEX); }