Class CompressingTermVectorsReader
- java.lang.Object
-
- org.apache.lucene.codecs.TermVectorsReader
-
- org.apache.lucene.codecs.compressing.CompressingTermVectorsReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Cloneable
public final class CompressingTermVectorsReader extends TermVectorsReader implements Closeable
-
-
Constructor Summary
Constructors Constructor Description CompressingTermVectorsReader(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode)Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TermVectorsReaderclone()Create a clone that one caller at a time may use to read term vectors.voidclose()Fieldsget(int doc)Returns term vectors for this document, or null if term vectors were not indexed.longramBytesUsed()Returns approximate RAM bytes used
-
-
-
Constructor Detail
-
CompressingTermVectorsReader
public CompressingTermVectorsReader(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode) throws IOException
Sole constructor.- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
clone
public TermVectorsReader clone()
Description copied from class:TermVectorsReaderCreate a clone that one caller at a time may use to read term vectors.- Specified by:
clonein classTermVectorsReader
-
get
public Fields get(int doc) throws IOException
Description copied from class:TermVectorsReaderReturns term vectors for this document, or null if term vectors were not indexed. If offsets are available they are in anOffsetAttributeavailable from theDocsAndPositionsEnum.- Specified by:
getin classTermVectorsReader- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()
Description copied from class:TermVectorsReaderReturns approximate RAM bytes used- Specified by:
ramBytesUsedin classTermVectorsReader
-
-