Class SimpleTextPointsReader
java.lang.Object
org.apache.lucene.codecs.PointsReader
org.apache.lucene.codecs.simpletext.SimpleTextPointsReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Accountable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IndexInput(package private) final Map<String, SimpleTextBKDReader> (package private) final SegmentReadState(package private) final BytesRefBuilderFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks consistency of this reader.voidclose()ReturnPointValuesfor the givenfield.private SimpleTextBKDReaderinitReader(long fp) private intprivate longlongReturn the memory usage of this object in bytes.private voidreadLine(IndexInput in) private booleanstartsWith(BytesRef prefix) private StringstripPrefix(BytesRef prefix) toString()Methods inherited from class org.apache.lucene.codecs.PointsReader
getMergeInstanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
dataIn
-
readState
-
readers
-
scratch
-
-
Constructor Details
-
SimpleTextPointsReader
- Throws:
IOException
-
-
Method Details
-
initReader
- Throws:
IOException
-
readLine
- Throws:
IOException
-
startsWith
-
parseInt
-
parseLong
-
stripPrefix
-
getValues
Description copied from class:PointsReaderReturnPointValuesfor the givenfield.- Specified by:
getValuesin classPointsReader- Throws:
IOException
-
checkIntegrity
Description copied from class:PointsReaderChecks consistency of this reader.Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
- Specified by:
checkIntegrityin classPointsReader- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal. -
close
- Throws:
IOException
-
toString
-