public final class CompressingTermVectorsReader extends TermVectorsReader implements java.io.Closeable
| Constructor and Description |
|---|
CompressingTermVectorsReader(Directory d,
SegmentInfo si,
java.lang.String segmentSuffix,
FieldInfos fn,
IOContext context,
java.lang.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.
|
java.util.Collection<Accountable> |
getChildResources()
Returns nested resources of this class.
|
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
java.lang.String |
toString() |
getMergeInstancepublic CompressingTermVectorsReader(Directory d, SegmentInfo si, java.lang.String segmentSuffix, FieldInfos fn, IOContext context, java.lang.String formatName, CompressionMode compressionMode) throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic TermVectorsReader clone()
TermVectorsReaderclone in class TermVectorsReaderpublic Fields get(int doc) throws java.io.IOException
TermVectorsReaderOffsetAttribute
available from the PostingsEnum.get in class TermVectorsReaderjava.io.IOExceptionpublic long ramBytesUsed()
AccountableramBytesUsed in interface Accountablepublic java.util.Collection<Accountable> getChildResources()
AccountablegetChildResources in interface AccountableAccountablespublic void checkIntegrity()
throws java.io.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 TermVectorsReaderjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.