public abstract class TermVectorsReader extends java.lang.Object implements java.lang.Cloneable, java.io.Closeable, Accountable
Modifier | Constructor and Description |
---|---|
protected |
TermVectorsReader()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
checkIntegrity()
Checks consistency of this reader.
|
abstract TermVectorsReader |
clone()
Create a clone that one caller at a time may use to
read term vectors.
|
abstract Fields |
get(int doc)
Returns term vectors for this document, or null if
term vectors were not indexed.
|
TermVectorsReader |
getMergeInstance()
Returns an instance optimized for merging.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildResources, ramBytesUsed
protected TermVectorsReader()
public abstract Fields get(int doc) throws java.io.IOException
OffsetAttribute
available from the PostingsEnum
.java.io.IOException
public abstract void checkIntegrity() throws java.io.IOException
Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
java.io.IOException
public abstract TermVectorsReader clone()
clone
in class java.lang.Object
public TermVectorsReader getMergeInstance()
getMergeInstance()
.
The default implementation returns this