Class Lucene40TermVectorsWriter
Lucene 4.0 Term Vectors writer.
It writes .tvd, .tvf, and .tvx files.
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.Lucene40
Assembly: Lucene.Net.dll
Syntax
public sealed class Lucene40TermVectorsWriter : TermVectorsWriter, IDisposable
Constructors
| Improve this Doc View SourceLucene40TermVectorsWriter(Directory, String, IOContext)
Sole constructor.
Declaration
public Lucene40TermVectorsWriter(Directory directory, string segment, IOContext context)
Parameters
Type | Name | Description |
---|---|---|
Directory | directory | |
System.String | segment | |
IOContext | context |
Properties
| Improve this Doc View SourceComparer
Declaration
public override IComparer<BytesRef> Comparer { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IComparer<BytesRef> |
Overrides
Methods
| Improve this Doc View SourceAbort()
Declaration
public override void Abort()
Overrides
| Improve this Doc View SourceAddPosition(Int32, Int32, Int32, BytesRef)
Declaration
public override void AddPosition(int position, int startOffset, int endOffset, BytesRef payload)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | position | |
System.Int32 | startOffset | |
System.Int32 | endOffset | |
BytesRef | payload |
Overrides
| Improve this Doc View SourceAddProx(Int32, DataInput, DataInput)
Declaration
public override void AddProx(int numProx, DataInput positions, DataInput offsets)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | numProx | |
DataInput | positions | |
DataInput | offsets |
Overrides
| Improve this Doc View SourceDispose(Boolean)
Close all streams.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
| Improve this Doc View SourceFinish(FieldInfos, Int32)
Declaration
public override void Finish(FieldInfos fis, int numDocs)
Parameters
Type | Name | Description |
---|---|---|
FieldInfos | fis | |
System.Int32 | numDocs |
Overrides
| Improve this Doc View SourceFinishDocument()
Declaration
public override void FinishDocument()
Overrides
| Improve this Doc View SourceFinishTerm()
Declaration
public override void FinishTerm()
Overrides
| Improve this Doc View SourceMerge(MergeState)
Declaration
public override int Merge(MergeState mergeState)
Parameters
Type | Name | Description |
---|---|---|
MergeState | mergeState |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceStartDocument(Int32)
Declaration
public override void StartDocument(int numVectorFields)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | numVectorFields |
Overrides
| Improve this Doc View SourceStartField(FieldInfo, Int32, Boolean, Boolean, Boolean)
Declaration
public override void StartField(FieldInfo info, int numTerms, bool positions, bool offsets, bool payloads)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | info | |
System.Int32 | numTerms | |
System.Boolean | positions | |
System.Boolean | offsets | |
System.Boolean | payloads |
Overrides
| Improve this Doc View SourceStartTerm(BytesRef, Int32)
Declaration
public override void StartTerm(BytesRef term, int freq)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | term | |
System.Int32 | freq |
Overrides
Implements
System.IDisposable