Package org.apache.lucene.codecs
Class TermVectorsFormat
- java.lang.Object
-
- org.apache.lucene.codecs.TermVectorsFormat
-
- Direct Known Subclasses:
CompressingTermVectorsFormat
,Lucene40TermVectorsFormat
public abstract class TermVectorsFormat extends Object
Controls the format of term vectors
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TermVectorsFormat()
Sole constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract 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.
-
-
-
Method Detail
-
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
-
-