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
-
Method Summary
Modifier and TypeMethodDescriptionabstract TermVectorsReader
vectorsReader
(Directory directory, SegmentInfo segmentInfo, FieldInfos fieldInfos, IOContext context) Returns aTermVectorsReader
to read term vectors.abstract TermVectorsWriter
vectorsWriter
(Directory directory, SegmentInfo segmentInfo, IOContext context) Returns aTermVectorsWriter
to 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 aTermVectorsReader
to read term vectors.- Throws:
IOException
-
vectorsWriter
public abstract TermVectorsWriter vectorsWriter(Directory directory, SegmentInfo segmentInfo, IOContext context) throws IOException Returns aTermVectorsWriter
to write term vectors.- Throws:
IOException
-