Class Lucene40PostingsWriter
Concrete class that writes the 4.0 frq/prx postings format.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
Lucene40PostingsWriter
Assembly: Lucene.Net.TestFramework.dll
Syntax
public sealed class Lucene40PostingsWriter : PostingsWriterBase
Constructors
|
Improve this Doc
View Source
Lucene40PostingsWriter(SegmentWriteState)
Creates a Lucene40PostingsWriter, with the
Lucene.Net.Codecs.Lucene40.Lucene40PostingsWriter.DEFAULT_SKIP_INTERVAL.
Declaration
public Lucene40PostingsWriter(SegmentWriteState state)
Parameters
Type |
Name |
Description |
SegmentWriteState |
state |
|
|
Improve this Doc
View Source
Lucene40PostingsWriter(SegmentWriteState, Int32)
Declaration
public Lucene40PostingsWriter(SegmentWriteState state, int skipInterval)
Parameters
Type |
Name |
Description |
SegmentWriteState |
state |
|
System.Int32 |
skipInterval |
|
Methods
|
Improve this Doc
View Source
AddPosition(Int32, BytesRef, Int32, Int32)
Add a new position
& payload
.
Declaration
public override void AddPosition(int position, BytesRef payload, int startOffset, int endOffset)
Parameters
Type |
Name |
Description |
System.Int32 |
position |
|
BytesRef |
payload |
|
System.Int32 |
startOffset |
|
System.Int32 |
endOffset |
|
|
Improve this Doc
View Source
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
|
Improve this Doc
View Source
EncodeTerm(Int64[], DataOutput, FieldInfo, BlockTermState, Boolean)
Declaration
public override void EncodeTerm(long[] empty, DataOutput out, FieldInfo fieldInfo, BlockTermState state, bool absolute)
Parameters
Type |
Name |
Description |
System.Int64[] |
empty |
|
DataOutput |
out |
|
FieldInfo |
fieldInfo |
|
BlockTermState |
state |
|
System.Boolean |
absolute |
|
|
Improve this Doc
View Source
FinishDoc()
Declaration
public override void FinishDoc()
|
Improve this Doc
View Source
FinishTerm(BlockTermState)
Called when we are done adding docs to this term.
Declaration
public override void FinishTerm(BlockTermState state)
Parameters
Type |
Name |
Description |
BlockTermState |
state |
|
|
Improve this Doc
View Source
Init(IndexOutput)
Declaration
public override void Init(IndexOutput termsOut)
Parameters
Type |
Name |
Description |
IndexOutput |
termsOut |
|
|
Improve this Doc
View Source
NewTermState()
Declaration
public override BlockTermState NewTermState()
Returns
Type |
Description |
BlockTermState |
|
|
Improve this Doc
View Source
SetField(FieldInfo)
Declaration
public override int SetField(FieldInfo fieldInfo)
Parameters
Type |
Name |
Description |
FieldInfo |
fieldInfo |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
StartDoc(Int32, Int32)
Declaration
public override void StartDoc(int docID, int termDocFreq)
Parameters
Type |
Name |
Description |
System.Int32 |
docID |
|
System.Int32 |
termDocFreq |
|
|
Improve this Doc
View Source
StartTerm()
Declaration
public override void StartTerm()