Class Lucene41PostingsWriter
Concrete class that writes docId(maybe frq,pos,offset,payloads) list with postings format.
Postings list for each term will be stored separately.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Implements
IDisposable
Inherited Members
Namespace: Lucene.Net.Codecs.Lucene41
Assembly: Lucene.Net.dll
Syntax
public sealed class Lucene41PostingsWriter : PostingsWriterBase, IDisposable
Constructors
| Improve this Doc View SourceLucene41PostingsWriter(SegmentWriteState)
Creates a postings writer with
PackedInts.COMPACT
Declaration
public Lucene41PostingsWriter(SegmentWriteState state)
Parameters
Type | Name | Description |
---|---|---|
Segment |
state |
Lucene41PostingsWriter(SegmentWriteState, Single)
Creates a postings writer with the specified PackedInts overhead ratio
Declaration
public Lucene41PostingsWriter(SegmentWriteState state, float acceptableOverheadRatio)
Parameters
Type | Name | Description |
---|---|---|
Segment |
state | |
System. |
acceptableOverheadRatio |
Methods
| Improve this Doc View SourceAddPosition(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. |
position | |
Bytes |
payload | |
System. |
startOffset | |
System. |
endOffset |
Overrides
| Improve this Doc View SourceDispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System. |
disposing |
Overrides
| Improve this Doc View SourceEncodeTerm(Int64[], DataOutput, FieldInfo, BlockTermState, Boolean)
Declaration
public override void EncodeTerm(long[] longs, DataOutput out, FieldInfo fieldInfo, BlockTermState state, bool absolute)
Parameters
Type | Name | Description |
---|---|---|
System. |
longs | |
Data |
out | |
Field |
fieldInfo | |
Block |
state | |
System. |
absolute |
Overrides
| Improve this Doc View SourceFinishDoc()
Declaration
public override void FinishDoc()
Overrides
| Improve this Doc View SourceFinishTerm(BlockTermState)
Called when we are done adding docs to this term.
Declaration
public override void FinishTerm(BlockTermState state)
Parameters
Type | Name | Description |
---|---|---|
Block |
state |
Overrides
| Improve this Doc View SourceInit(IndexOutput)
Declaration
public override void Init(IndexOutput termsOut)
Parameters
Type | Name | Description |
---|---|---|
Index |
termsOut |
Overrides
| Improve this Doc View SourceNewTermState()
Declaration
public override BlockTermState NewTermState()
Returns
Type | Description |
---|---|
Block |
Overrides
| Improve this Doc View SourceSetField(FieldInfo)
Declaration
public override int SetField(FieldInfo fieldInfo)
Parameters
Type | Name | Description |
---|---|---|
Field |
fieldInfo |
Returns
Type | Description |
---|---|
System. |
Overrides
| Improve this Doc View SourceStartDoc(Int32, Int32)
Declaration
public override void StartDoc(int docId, int termDocFreq)
Parameters
Type | Name | Description |
---|---|---|
System. |
docId | |
System. |
termDocFreq |
Overrides
| Improve this Doc View SourceStartTerm()
Declaration
public override void StartTerm()
Overrides
Implements
IDisposable
See Also
Lucene.Net.Codecs.Lucene41.Lucene41SkipWriter