Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class BlockDocValuesReader.BytesRefsFromBinary
java.lang.Object
org.elasticsearch.index.mapper.BlockDocValuesReader
org.elasticsearch.index.mapper.BlockDocValuesReader.BytesRefsFromBinary
- All Implemented Interfaces:
BlockLoader.AllReader,BlockLoader.ColumnAtATimeReader,BlockLoader.Reader,BlockLoader.RowStrideReader
- Enclosing class:
BlockDocValuesReader
Read BinaryDocValues with no additional structure in the BytesRefs.
Each BytesRef from the doc values maps directly to a value in the block loader.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.BlockDocValuesReader
BlockDocValuesReader.BooleansBlockLoader, BlockDocValuesReader.BytesRefsFromBinary, BlockDocValuesReader.BytesRefsFromCustomBinaryBlockLoader, BlockDocValuesReader.BytesRefsFromOrdsBlockLoader, BlockDocValuesReader.DenseVectorBlockLoader, BlockDocValuesReader.DenseVectorFromBinaryBlockLoader, BlockDocValuesReader.DocValuesBlockLoader, BlockDocValuesReader.DoublesBlockLoader, BlockDocValuesReader.IntsBlockLoader, BlockDocValuesReader.LongsBlockLoader, BlockDocValuesReader.ToDouble -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.lucene.index.BinaryDocValues -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdocId()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.toString()Methods inherited from class org.elasticsearch.index.mapper.BlockDocValuesReader
canReuse
-
Field Details
-
docValues
protected final org.apache.lucene.index.BinaryDocValues docValues
-
-
Constructor Details
-
BytesRefsFromBinary
public BytesRefsFromBinary(org.apache.lucene.index.BinaryDocValues docValues)
-
-
Method Details
-
toString
- Specified by:
toStringin classBlockDocValuesReader
-
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
-