Module org.elasticsearch.server
Class BlockScriptReader
java.lang.Object
org.elasticsearch.index.mapper.blockloader.script.BlockScriptReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Releasable,BlockLoader.Reader,BlockLoader.RowStrideReader
- Direct Known Subclasses:
BooleanScriptBlockDocValuesReader,DateScriptBlockDocValuesReader,DoubleScriptBlockDocValuesReader,IpScriptBlockDocValuesReader,KeywordScriptBlockDocValuesReader,LongScriptBlockDocValuesReader
A reader that supports reading doc-values from a Lucene segment in Block fashion.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleancanReuse(int startingDocID) Checks if the reader can be used to read a range documents starting with the given docID by the current thread.final voidclose()protected abstract intdocId()abstract StringtoString()A string representation of theBlockLoader.Reader.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.index.mapper.BlockLoader.RowStrideReader
read
-
Field Details
-
breaker
-
-
Constructor Details
-
BlockScriptReader
-
-
Method Details
-
docId
protected abstract int docId() -
canReuse
public final boolean canReuse(int startingDocID) Checks if the reader can be used to read a range documents starting with the given docID by the current thread.- Specified by:
canReusein interfaceBlockLoader.Reader
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-
toString
Description copied from interface:BlockLoader.ReaderA string representation of theBlockLoader.Reader. It's important that this have a nice implementation because this is used in theprofile.- Specified by:
toStringin interfaceBlockLoader.Reader- Overrides:
toStringin classObject
-