Class SimpleTextTermVectorsReader
Reads plain-text term vectors.
FOR RECREATIONAL USE ONLY
Note
This API is experimental and might change in incompatible ways in the next release.
Implements
Inherited Members
Namespace: Lucene.Net.Codecs.SimpleText
Assembly: Lucene.Net.Codecs.dll
Syntax
public class SimpleTextTermVectorsReader : TermVectorsReader, IDisposable
Constructors
SimpleTextTermVectorsReader(Directory, SegmentInfo, IOContext)
Reads plain-text term vectors.
FOR RECREATIONAL USE ONLY
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public SimpleTextTermVectorsReader(Directory directory, SegmentInfo si, IOContext context)
Parameters
Type | Name | Description |
---|---|---|
Directory | directory | |
SegmentInfo | si | |
IOContext | context |
Methods
CheckIntegrity()
Checks consistency of this reader.
Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public override void CheckIntegrity()
Overrides
Clone()
Create a clone that one caller at a time may use to read term vectors.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
object |
Overrides
Dispose(bool)
Implementations must override and should dispose all resources used by this instance.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
Overrides
Get(int)
Returns term vectors for this document, or null
if
term vectors were not indexed. If offsets are
available they are in an Lucene.Net.Analysis.TokenAttributes.IOffsetAttribute
available from the Lucene.Net.Index.DocsAndPositionsEnum.
Declaration
public override Fields Get(int doc)
Parameters
Type | Name | Description |
---|---|---|
int | doc |
Returns
Type | Description |
---|---|
Fields |
Overrides
RamBytesUsed()
Returns approximate RAM bytes used.
Declaration
public override long RamBytesUsed()
Returns
Type | Description |
---|---|
long |