Class CompressingTermVectorsReader
java.lang.Object
org.apache.lucene.codecs.TermVectorsReader
org.apache.lucene.codecs.compressing.CompressingTermVectorsReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Cloneable
-
Constructor Summary
ConstructorsConstructorDescriptionCompressingTermVectorsReader
(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode) Sole constructor. -
Method Summary
-
Constructor Details
-
CompressingTermVectorsReader
public CompressingTermVectorsReader(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode) throws IOException Sole constructor.- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
clone
Description copied from class:TermVectorsReader
Create a clone that one caller at a time may use to read term vectors.- Specified by:
clone
in classTermVectorsReader
-
get
Description copied from class:TermVectorsReader
Returns term vectors for this document, or null if term vectors were not indexed. If offsets are available they are in anOffsetAttribute
available from theDocsAndPositionsEnum
.- Specified by:
get
in classTermVectorsReader
- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()Description copied from class:TermVectorsReader
Returns approximate RAM bytes used- Specified by:
ramBytesUsed
in classTermVectorsReader
-