Class SepPostingsWriter
Writes frq to .frq, docs to .doc, pos to .pos, payloads to .pyl, skip data to .skp
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Implements
System.IDisposable
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: Lucene.Net.Codecs.Sep
Assembly: Lucene.Net.Codecs.dll
Syntax
public sealed class SepPostingsWriter : PostingsWriterBase, IDisposable
  Constructors
| Improve this Doc View SourceSepPostingsWriter(SegmentWriteState, Int32StreamFactory)
Declaration
public SepPostingsWriter(SegmentWriteState state, Int32StreamFactory factory)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SegmentWriteState | state | |
| Int32StreamFactory | factory | 
SepPostingsWriter(SegmentWriteState, Int32StreamFactory, Int32)
Declaration
public SepPostingsWriter(SegmentWriteState state, Int32StreamFactory factory, int skipInterval)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SegmentWriteState | state | |
| Int32StreamFactory | factory | |
| System.Int32 | skipInterval | 
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.Int32 | position | |
| BytesRef | payload | |
| System.Int32 | startOffset | |
| System.Int32 | endOffset | 
Overrides
| Improve this Doc View SourceDispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | disposing | 
Overrides
| Improve this Doc View SourceEncodeTerm(Int64[], DataOutput, FieldInfo, BlockTermState, Boolean)
Declaration
public override void EncodeTerm(long[] longs, DataOutput output, FieldInfo fi, BlockTermState state, bool absolute)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int64[] | longs | |
| DataOutput | output | |
| FieldInfo | fi | |
| BlockTermState | state | |
| System.Boolean | absolute | 
Overrides
| Improve this Doc View SourceFinishDoc()
Called when we are done adding positions & payloads.
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 | 
|---|---|---|
| BlockTermState | state | 
Overrides
| Improve this Doc View SourceInit(IndexOutput)
Declaration
public override void Init(IndexOutput termsOut)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IndexOutput | termsOut | 
Overrides
| Improve this Doc View SourceNewTermState()
Declaration
public override BlockTermState NewTermState()
  Returns
| Type | Description | 
|---|---|
| BlockTermState | 
Overrides
| Improve this Doc View SourceSetField(FieldInfo)
Declaration
public override int SetField(FieldInfo fieldInfo)
  Parameters
| Type | Name | Description | 
|---|---|---|
| FieldInfo | fieldInfo | 
Returns
| Type | Description | 
|---|---|
| System.Int32 | 
Overrides
| Improve this Doc View SourceStartDoc(Int32, Int32)
Adds a new doc in this term.  If this returns null
then we just skip consuming positions/payloads. 
Declaration
public override void StartDoc(int docID, int termDocFreq)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | docID | |
| System.Int32 | termDocFreq | 
Overrides
| Improve this Doc View SourceStartTerm()
Declaration
public override void StartTerm()
  Overrides
Implements
      System.IDisposable