Class FixedGapTermsIndexWriter
Selects every Nth term as and index term, and hold term bytes (mostly) fully expanded in memory. This terms index supports seeking by ord. See VariableGapTermsIndexWriter for a more memory efficient terms index that does not support seeking by ord.
Note
This API is experimental and might change in incompatible ways in the next release.
Implements
Inherited Members
Namespace: Lucene.Net.Codecs.BlockTerms
Assembly: Lucene.Net.Codecs.dll
Syntax
public class FixedGapTermsIndexWriter : TermsIndexWriterBase, IDisposable
Constructors
FixedGapTermsIndexWriter(SegmentWriteState)
Selects every Nth term as and index term, and hold term bytes (mostly) fully expanded in memory. This terms index supports seeking by ord. See VariableGapTermsIndexWriter for a more memory efficient terms index that does not support seeking by ord.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public FixedGapTermsIndexWriter(SegmentWriteState state)
Parameters
Type | Name | Description |
---|---|---|
SegmentWriteState | state |
Fields
m_output
Selects every Nth term as and index term, and hold term bytes (mostly) fully expanded in memory. This terms index supports seeking by ord. See VariableGapTermsIndexWriter for a more memory efficient terms index that does not support seeking by ord.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
protected IndexOutput m_output
Field Value
Type | Description |
---|---|
IndexOutput |
Methods
AddField(FieldInfo, long)
Selects every Nth term as and index term, and hold term bytes (mostly) fully expanded in memory. This terms index supports seeking by ord. See VariableGapTermsIndexWriter for a more memory efficient terms index that does not support seeking by ord.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public override TermsIndexWriterBase.FieldWriter AddField(FieldInfo field, long termsFilePointer)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | field | |
long | termsFilePointer |
Returns
Type | Description |
---|---|
TermsIndexWriterBase.FieldWriter |
Overrides
Dispose(bool)
Selects every Nth term as and index term, and hold term bytes (mostly) fully expanded in memory. This terms index supports seeking by ord. See VariableGapTermsIndexWriter for a more memory efficient terms index that does not support seeking by ord.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
Overrides
IndexedTermPrefixLength(BytesRef, BytesRef)
NOTE: if your codec does not sort in unicode code
point order, you must override this method, to simply
return indexedTerm.Length
.
Declaration
protected virtual int IndexedTermPrefixLength(BytesRef priorTerm, BytesRef indexedTerm)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | priorTerm | |
BytesRef | indexedTerm |
Returns
Type | Description |
---|---|
int |