Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Interface BlockLoader.OptionalColumnAtATimeReader
- Enclosing interface:
BlockLoader
public static interface BlockLoader.OptionalColumnAtATimeReader
An interface for readers that attempt to load all document values in a column-at-a-time fashion.
Unlike BlockLoader.ColumnAtATimeReader, implementations may return null if they are unable
to load the requested values, for example due to unsupported underlying data.
This allows callers to optimistically try optimized loading strategies first, and fall back if necessary.
-
Method Summary
Modifier and TypeMethodDescriptiontryRead(BlockLoader.BlockFactory factory, BlockLoader.Docs docs, int offset) Attempts to read the values of all documents indocsReturnsnullif unable to load the values.
-
Method Details
-
tryRead
@Nullable BlockLoader.Block tryRead(BlockLoader.BlockFactory factory, BlockLoader.Docs docs, int offset) throws IOException Attempts to read the values of all documents indocsReturnsnullif unable to load the values.- Throws:
IOException
-