Module org.elasticsearch.server
Class BytesRefsFromCustomBinaryBlockLoader.AbstractBytesRefsFromBinary
java.lang.Object
org.elasticsearch.index.mapper.blockloader.docvalues.BlockDocValuesReader
org.elasticsearch.index.mapper.blockloader.docvalues.BytesRefsFromCustomBinaryBlockLoader.AbstractBytesRefsFromBinary
- All Implemented Interfaces:
BlockLoader.AllReader,BlockLoader.ColumnAtATimeReader,BlockLoader.Reader,BlockLoader.RowStrideReader
- Enclosing class:
BytesRefsFromCustomBinaryBlockLoader
public abstract static class BytesRefsFromCustomBinaryBlockLoader.AbstractBytesRefsFromBinary
extends BlockDocValuesReader
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.blockloader.docvalues.BlockDocValuesReader
BlockDocValuesReader.DocValuesBlockLoader, BlockDocValuesReader.NumericDocValuesAccessor, BlockDocValuesReader.ToDouble -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.lucene.index.BinaryDocValues -
Constructor Summary
ConstructorsConstructorDescriptionAbstractBytesRefsFromBinary(org.apache.lucene.index.BinaryDocValues docValues) -
Method Summary
Modifier and TypeMethodDescriptionintdocId()abstract voidread(int docId, BlockLoader.BytesRefBuilder builder) 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, int offset, boolean nullsFiltered) Reads the values of all documents indocs.Methods inherited from class org.elasticsearch.index.mapper.blockloader.docvalues.BlockDocValuesReader
canReuse, toString
-
Field Details
-
docValues
protected final org.apache.lucene.index.BinaryDocValues docValues
-
-
Constructor Details
-
AbstractBytesRefsFromBinary
public AbstractBytesRefsFromBinary(org.apache.lucene.index.BinaryDocValues docValues)
-
-
Method Details
-
read
public BlockLoader.Block read(BlockLoader.BlockFactory factory, BlockLoader.Docs docs, int offset, boolean nullsFiltered) throws IOException Description copied from interface:BlockLoader.ColumnAtATimeReaderReads the values of all documents indocs.- Parameters:
nullsFiltered- iftrue, then target docs are guaranteed to have a value for the field; otherwise, the guarantee is unknown. This enables optimizations for block loaders, treating the field as dense (every document has value) even if it is sparse in the index. For example, "FROM index | WHERE x != null | STATS sum(x)", after filtering out documents without value for field x, all target documents returned from the source operator will have a value for field x whether x is dense or sparse in the index.- 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.- Throws:
IOException
-
docId
public int docId()- Specified by:
docIdin classBlockDocValuesReader
-
read
- Throws:
IOException
-