Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class FallbackSyntheticSourceBlockLoader.SingleValueReader<T>
java.lang.Object
org.elasticsearch.index.mapper.FallbackSyntheticSourceBlockLoader.SingleValueReader<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
FallbackSyntheticSourceBlockLoader.Reader<T>
- Enclosing class:
FallbackSyntheticSourceBlockLoader
public abstract static class FallbackSyntheticSourceBlockLoader.SingleValueReader<T>
extends Object
implements FallbackSyntheticSourceBlockLoader.Reader<T>
Reader for field types that don't parse arrays (arrays are always treated as multiple values)
as opposed to field types that treat arrays as special cases (for example point).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
parse
(XContentParser parser, List<T> accumulator) Parses one or more complex values using a provided parser and adds them to the provided accumulator.protected abstract void
parseNonNullValue
(XContentParser parser, List<T> accumulator) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.index.mapper.FallbackSyntheticSourceBlockLoader.Reader
convertValue, writeToBlock
-
Constructor Details
-
SingleValueReader
-
-
Method Details
-
parse
Description copied from interface:FallbackSyntheticSourceBlockLoader.Reader
Parses one or more complex values using a provided parser and adds them to the provided accumulator.- Specified by:
parse
in interfaceFallbackSyntheticSourceBlockLoader.Reader<T>
- Parameters:
parser
- parser of a value from _ignored_source field (synthetic _source value)accumulator
- list containing the results of parsing- Throws:
IOException
-
parseNonNullValue
protected abstract void parseNonNullValue(XContentParser parser, List<T> accumulator) throws IOException - Throws:
IOException
-