Package org.opensearch.index.mapper
Class AbstractPointGeometryFieldMapper.PointParser<P extends AbstractPointGeometryFieldMapper.ParsedPoint>
java.lang.Object
org.opensearch.index.mapper.AbstractGeometryFieldMapper.Parser<List<P>>
org.opensearch.index.mapper.AbstractPointGeometryFieldMapper.PointParser<P>
- Enclosing class:
- AbstractPointGeometryFieldMapper<Parsed,
Processed>
public static class AbstractPointGeometryFieldMapper.PointParser<P extends AbstractPointGeometryFieldMapper.ParsedPoint>
extends AbstractGeometryFieldMapper.Parser<List<P>>
A parser implementation that can parse the various point formats
- Opensearch.internal:
-
Constructor Summary
ConstructorsConstructorDescriptionPointParser
(String field, Supplier<P> pointSupplier, CheckedBiFunction<org.opensearch.common.xcontent.XContentParser, P, P, IOException> objectParser, P nullValue, boolean ignoreZValue, boolean ignoreMalformed) -
Method Summary
Modifier and TypeMethodDescriptionGiven a parsed value and a format string, formats the value into a plain Java object.parse
(org.opensearch.common.xcontent.XContentParser parser) Parse the given xContent value to an object of typeAbstractGeometryFieldMapper.Parser
.Methods inherited from class org.opensearch.index.mapper.AbstractGeometryFieldMapper.Parser
parseAndFormatObject
-
Constructor Details
-
PointParser
public PointParser(String field, Supplier<P> pointSupplier, CheckedBiFunction<org.opensearch.common.xcontent.XContentParser, P, P, IOException> objectParser, P nullValue, boolean ignoreZValue, boolean ignoreMalformed)
-
-
Method Details
-
parse
public List<P> parse(org.opensearch.common.xcontent.XContentParser parser) throws IOException, ParseException Description copied from class:AbstractGeometryFieldMapper.Parser
Parse the given xContent value to an object of typeAbstractGeometryFieldMapper.Parser
. The value can be in any supported format.- Specified by:
parse
in classAbstractGeometryFieldMapper.Parser<List<P extends AbstractPointGeometryFieldMapper.ParsedPoint>>
- Throws:
IOException
ParseException
-
format
Description copied from class:AbstractGeometryFieldMapper.Parser
Given a parsed value and a format string, formats the value into a plain Java object. Supported formats include 'geojson' and 'wkt'. The different formats are defined as subclasses ofGeometryFormat
.- Specified by:
format
in classAbstractGeometryFieldMapper.Parser<List<P extends AbstractPointGeometryFieldMapper.ParsedPoint>>
-