Package org.elasticsearch.index.mapper
Class AbstractPointGeometryFieldMapper.PointParser<T>
java.lang.Object
org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.Parser<T>
org.elasticsearch.index.mapper.AbstractPointGeometryFieldMapper.PointParser<T>
- Enclosing class:
- AbstractPointGeometryFieldMapper<T>
protected abstract static class AbstractPointGeometryFieldMapper.PointParser<T>
extends AbstractGeometryFieldMapper.Parser<T>
A base parser implementation for point formats
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
PointParser(String field, Supplier<T> pointSupplier, CheckedBiFunction<org.elasticsearch.common.xcontent.XContentParser,T,T,IOException> objectParser, T nullValue, boolean ignoreZValue, boolean ignoreMalformed)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
parse(org.elasticsearch.common.xcontent.XContentParser parser, org.elasticsearch.core.CheckedConsumer<T,IOException> consumer, Consumer<Exception> onMalformed)
Parse the given xContent value to one or more objects of typeAbstractGeometryFieldMapper.Parser
.protected abstract void
protected abstract T
-
Field Details
-
field
-
ignoreMalformed
protected final boolean ignoreMalformed
-
-
Constructor Details
-
PointParser
protected PointParser(String field, Supplier<T> pointSupplier, CheckedBiFunction<org.elasticsearch.common.xcontent.XContentParser,T,T,IOException> objectParser, T nullValue, boolean ignoreZValue, boolean ignoreMalformed)
-
-
Method Details
-
validate
-
reset
-
parse
public void parse(org.elasticsearch.common.xcontent.XContentParser parser, org.elasticsearch.core.CheckedConsumer<T,IOException> consumer, Consumer<Exception> onMalformed) throws IOExceptionDescription copied from class:AbstractGeometryFieldMapper.Parser
Parse the given xContent value to one or more objects of typeAbstractGeometryFieldMapper.Parser
. The value can be in any supported format.- Specified by:
parse
in classAbstractGeometryFieldMapper.Parser<T>
- Throws:
IOException
-