Class CompressingTermVectorsReader
- java.lang.Object
-
- org.apache.lucene.codecs.TermVectorsReader
-
- org.apache.lucene.codecs.compressing.CompressingTermVectorsReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Cloneable
public final class CompressingTermVectorsReader extends TermVectorsReader implements java.io.Closeable
-
-
Constructor Summary
Constructors Constructor Description CompressingTermVectorsReader(Directory d, SegmentInfo si, java.lang.String segmentSuffix, FieldInfos fn, IOContext context, java.lang.String formatName, CompressionMode compressionMode)
Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TermVectorsReader
clone()
Create a clone that one caller at a time may use to read term vectors.void
close()
Fields
get(int doc)
Returns term vectors for this document, or null if term vectors were not indexed.long
ramBytesUsed()
Returns approximate RAM bytes used
-
-
-
Constructor Detail
-
CompressingTermVectorsReader
public CompressingTermVectorsReader(Directory d, SegmentInfo si, java.lang.String segmentSuffix, FieldInfos fn, IOContext context, java.lang.String formatName, CompressionMode compressionMode) throws java.io.IOException
Sole constructor.- Throws:
java.io.IOException
-
-
Method Detail
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
clone
public TermVectorsReader 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
public Fields get(int doc) throws java.io.IOException
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:
java.io.IOException
-
ramBytesUsed
public long ramBytesUsed()
Description copied from class:TermVectorsReader
Returns approximate RAM bytes used- Specified by:
ramBytesUsed
in classTermVectorsReader
-
-