Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class BlockLoader.ConstantNullsReader
java.lang.Object
org.elasticsearch.index.mapper.BlockLoader.ConstantNullsReader
- All Implemented Interfaces:
BlockLoader.AllReader,BlockLoader.ColumnAtATimeReader,BlockLoader.Reader,BlockLoader.RowStrideReader
- Enclosing interface:
BlockLoader
Implementation of
BlockLoader.ColumnAtATimeReader and BlockLoader.RowStrideReader that always
loads null.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanReuse(int startingDocID) Checks if the reader can be used to read a range documents starting with the given docID by the current thread.voidread(int docId, BlockLoader.StoredFields storedFields, BlockLoader.Builder builder) Reads the values of the given document into the builder.read(BlockLoader.BlockFactory factory, BlockLoader.Docs docs) Reads the values of all documents indocs.toString()
-
Constructor Details
-
ConstantNullsReader
public ConstantNullsReader()
-
-
Method Details
-
read
public BlockLoader.Block read(BlockLoader.BlockFactory factory, BlockLoader.Docs docs) throws IOException Description copied from interface:BlockLoader.ColumnAtATimeReaderReads the values of all documents indocs.- Specified by:
readin interfaceBlockLoader.ColumnAtATimeReader- Throws:
IOException
-
read
public void read(int docId, BlockLoader.StoredFields storedFields, BlockLoader.Builder builder) throws IOException Description copied from interface:BlockLoader.RowStrideReaderReads the values of the given document into the builder.- Specified by:
readin interfaceBlockLoader.RowStrideReader- Throws:
IOException
-
canReuse
public boolean canReuse(int startingDocID) Description copied from interface:BlockLoader.ReaderChecks 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
-
toString
-