Package org.elasticsearch.common.geo
Interface GeometryFormat<ParsedFormat>
public interface GeometryFormat<ParsedFormat>
Geometry serializer/deserializer
-
Method Summary
Modifier and Type Method Description ParsedFormat
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
Parser JSON representation of a geometryorg.elasticsearch.common.xcontent.XContentBuilder
toXContent(ParsedFormat geometry, org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
Serializes the geometry into its JSON representation
-
Method Details
-
fromXContent
ParsedFormat fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException, java.text.ParseExceptionParser JSON representation of a geometry- Throws:
java.io.IOException
java.text.ParseException
-
toXContent
org.elasticsearch.common.xcontent.XContentBuilder toXContent(ParsedFormat geometry, org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOExceptionSerializes the geometry into its JSON representation- Throws:
java.io.IOException
-