public final class CompressingTermVectorsReader extends TermVectorsReader implements Closeable
| Constructor and Description |
|---|
CompressingTermVectorsReader(Directory d,
SegmentInfo si,
String segmentSuffix,
FieldInfos fn,
IOContext context,
String formatName,
CompressionMode compressionMode)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkIntegrity()
Checks consistency of this reader.
|
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.
|
Collection<Accountable> |
getChildResources()
Returns nested resources of this class.
|
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
String |
toString() |
getMergeInstancepublic CompressingTermVectorsReader(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic TermVectorsReader clone()
TermVectorsReaderclone in class TermVectorsReaderpublic Fields get(int doc) throws IOException
TermVectorsReaderOffsetAttribute
available from the PostingsEnum.get in class TermVectorsReaderIOExceptionpublic long ramBytesUsed()
AccountableramBytesUsed in interface Accountablepublic Collection<Accountable> getChildResources()
AccountablegetChildResources in interface AccountableAccountablespublic void checkIntegrity()
throws IOException
TermVectorsReaderNote that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
checkIntegrity in class TermVectorsReaderIOExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.