Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Interface FallbackSyntheticSourceBlockLoader.Reader<T>
- Type Parameters:
T-
- All Known Implementing Classes:
FallbackSyntheticSourceBlockLoader.SingleValueReader
- Enclosing class:
FallbackSyntheticSourceBlockLoader
public static interface FallbackSyntheticSourceBlockLoader.Reader<T>
Field-specific implementation that converts data stored in _ignored_source field to block loader values.
-
Method Summary
Modifier and TypeMethodDescriptionvoidconvertValue(Object value, List<T> accumulator) Converts a raw stored value for this field to a value in a format suitable for block loader and adds it to the provided accumulator.voidparse(XContentParser parser, List<T> accumulator) Parses one or more complex values using a provided parser and adds them to the provided accumulator.voidwriteToBlock(List<T> values, BlockLoader.Builder blockBuilder)
-
Method Details
-
convertValue
Converts a raw stored value for this field to a value in a format suitable for block loader and adds it to the provided accumulator.- Parameters:
value- raw decoded value from _ignored_source field (synthetic _source value)accumulator- list containing the result of conversion
-
parse
Parses one or more complex values using a provided parser and adds them to the provided accumulator.- Parameters:
parser- parser of a value from _ignored_source field (synthetic _source value)accumulator- list containing the results of parsing- Throws:
IOException
-
writeToBlock
-