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 TypeMethodDescriptionboolean
canReuse
(int startingDocID) Checks if the reader can be used to read a range documents starting with the given docID by the current thread.void
read
(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.ColumnAtATimeReader
Reads the values of all documents indocs
.- Specified by:
read
in interfaceBlockLoader.ColumnAtATimeReader
- Throws:
IOException
-
read
public void read(int docId, BlockLoader.StoredFields storedFields, BlockLoader.Builder builder) throws IOException Description copied from interface:BlockLoader.RowStrideReader
Reads the values of the given document into the builder.- Specified by:
read
in interfaceBlockLoader.RowStrideReader
- Throws:
IOException
-
canReuse
public boolean canReuse(int startingDocID) Description copied from interface:BlockLoader.Reader
Checks if the reader can be used to read a range documents starting with the given docID by the current thread.- Specified by:
canReuse
in interfaceBlockLoader.Reader
-
toString
-