public class SimpleTextTermVectorsReader extends TermVectorsReader
FOR RECREATIONAL USE ONLY
Constructor and Description |
---|
SimpleTextTermVectorsReader(Directory directory,
SegmentInfo si,
IOContext context) |
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() |
getMergeInstance
public SimpleTextTermVectorsReader(Directory directory, SegmentInfo si, IOContext context) throws IOException
IOException
public Fields get(int doc) throws IOException
TermVectorsReader
OffsetAttribute
available from the PostingsEnum
.get
in class TermVectorsReader
IOException
public TermVectorsReader clone()
TermVectorsReader
clone
in class TermVectorsReader
public void close() throws IOException
IOException
public long ramBytesUsed()
Accountable
public Collection<Accountable> getChildResources()
Accountable
Accountables
public void checkIntegrity() throws IOException
TermVectorsReader
Note 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 TermVectorsReader
IOException
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.