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:
Closeable,AutoCloseable,Releasable,BlockLoader.ColumnAtATimeReader,BlockLoader.Reader,BlockLoader.RowStrideReader
- Direct Known Subclasses:
BytesRefsFromBinaryBlockLoader.BytesRefsFromBinary
- Enclosing class:
BytesRefsFromCustomBinaryBlockLoader
public abstract static class BytesRefsFromCustomBinaryBlockLoader.AbstractBytesRefsFromBinary
extends BlockDocValuesReader
implements BlockLoader.RowStrideReader
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.blockloader.docvalues.BlockDocValuesReader
BlockDocValuesReader.DocValuesBlockLoader, BlockDocValuesReader.NumericDocValuesAccessor, BlockDocValuesReader.ToDouble -
Field Summary
FieldsFields inherited from class org.elasticsearch.index.mapper.blockloader.docvalues.BlockDocValuesReader
breaker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intdocId()abstract voidread(int docId, BlockLoader.BytesRefBuilder builder) final 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.index.mapper.BlockLoader.Reader
canReuse, toString
-
Field Details
-
docValues
-
-
Constructor Details
-
AbstractBytesRefsFromBinary
-
-
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.- Specified by:
readin interfaceBlockLoader.ColumnAtATimeReader- 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 final 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
-
docId
public int docId()- Specified by:
docIdin classBlockDocValuesReader
-
read
- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-