Package org.apache.lucene.codecs
Class TermVectorsFormat
java.lang.Object
org.apache.lucene.codecs.TermVectorsFormat
- Direct Known Subclasses:
Lucene90CompressingTermVectorsFormat
Controls the format of term vectors
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TermVectorsReadervectorsReader(Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, IOContext context) Returns aTermVectorsReaderto read term vectors.abstract TermVectorsWritervectorsWriter(Directory directory, SegmentInfo segmentInfo, IOContext context) Returns aTermVectorsWriterto write term vectors.
-
Constructor Details
-
TermVectorsFormat
protected TermVectorsFormat()Sole constructor. (For invocation by subclass constructors, typically implicit.)
-
-
Method Details
-
vectorsReader
public abstract TermVectorsReader vectorsReader(Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, IOContext context) throws IOException Returns aTermVectorsReaderto read term vectors.- Throws:
IOException
-
vectorsWriter
public abstract TermVectorsWriter vectorsWriter(Directory directory, SegmentInfo segmentInfo, IOContext context) throws IOException Returns aTermVectorsWriterto write term vectors.- Throws:
IOException
-