Module org.elasticsearch.server
Class BytesRefsFromBinaryBlockLoader.BytesRefsFromBinary
java.lang.Object
org.elasticsearch.index.mapper.blockloader.docvalues.BlockDocValuesReader
org.elasticsearch.index.mapper.blockloader.docvalues.BytesRefsFromCustomBinaryBlockLoader.AbstractBytesRefsFromBinary
org.elasticsearch.index.mapper.blockloader.docvalues.BytesRefsFromBinaryBlockLoader.BytesRefsFromBinary
- All Implemented Interfaces:
Closeable,AutoCloseable,Releasable,BlockLoader.ColumnAtATimeReader,BlockLoader.Reader,BlockLoader.RowStrideReader
- Enclosing class:
BytesRefsFromBinaryBlockLoader
public static class BytesRefsFromBinaryBlockLoader.BytesRefsFromBinary
extends BytesRefsFromCustomBinaryBlockLoader.AbstractBytesRefsFromBinary
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.blockloader.docvalues.BlockDocValuesReader
BlockDocValuesReader.DocValuesBlockLoader, BlockDocValuesReader.NumericDocValuesAccessor, BlockDocValuesReader.ToDouble -
Field Summary
Fields inherited from class org.elasticsearch.index.mapper.blockloader.docvalues.BytesRefsFromCustomBinaryBlockLoader.AbstractBytesRefsFromBinary
docValuesFields inherited from class org.elasticsearch.index.mapper.blockloader.docvalues.BlockDocValuesReader
breaker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidread(int doc, BlockLoader.BytesRefBuilder builder) read(BlockLoader.BlockFactory factory, BlockLoader.Docs docs, int offset, boolean nullsFiltered) Reads the values of all documents indocs.toString()A string representation of theBlockLoader.Reader.Methods inherited from class org.elasticsearch.index.mapper.blockloader.docvalues.BytesRefsFromCustomBinaryBlockLoader.AbstractBytesRefsFromBinary
close, docId, readMethods inherited from class org.elasticsearch.index.mapper.blockloader.docvalues.BlockDocValuesReader
canReuseMethods 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
-
Constructor Details
-
BytesRefsFromBinary
-
-
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- Overrides:
readin classBytesRefsFromCustomBinaryBlockLoader.AbstractBytesRefsFromBinary- 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
- Specified by:
readin classBytesRefsFromCustomBinaryBlockLoader.AbstractBytesRefsFromBinary- Throws:
IOException
-
toString
Description copied from interface:BlockLoader.ReaderA string representation of theBlockLoader.Reader. It's important that this have a nice implementation because this is used in theprofile.- Specified by:
toStringin interfaceBlockLoader.Reader- Specified by:
toStringin classBlockDocValuesReader
-