Interface ShapeParser
public interface ShapeParser
first point of entry for a shape parser
-
Field Summary
Fields Modifier and Type Field Description static ParseField
FIELD_COORDINATES
static ParseField
FIELD_GEOMETRIES
static ParseField
FIELD_ORIENTATION
static ParseField
FIELD_TYPE
-
Method Summary
Static Methods Modifier and Type Method Description static ShapeBuilder
parse(java.lang.Object value)
static ShapeBuilder
parse(XContentParser parser)
Create a newShapeBuilder
fromXContent
static ShapeBuilder
parse(XContentParser parser, AbstractGeometryFieldMapper shapeMapper)
Create a newShapeBuilder
fromXContent
-
Field Details
-
Method Details
-
parse
static ShapeBuilder parse(XContentParser parser, AbstractGeometryFieldMapper shapeMapper) throws java.io.IOExceptionCreate a newShapeBuilder
fromXContent
- Parameters:
parser
- parser to read the GeoShape fromshapeMapper
- document field mapper reference required for spatial parameters relevant to the shape construction process (e.g., orientation) todo: refactor to place build specific parameters in the SpatialContext- Returns:
ShapeBuilder
read from the parser or null if the parsers current token has beennull
- Throws:
java.io.IOException
- if the input could not be read
-
parse
Create a newShapeBuilder
fromXContent
- Parameters:
parser
- parser to read the GeoShape from- Returns:
ShapeBuilder
read from the parser or null if the parsers current token has beennull
- Throws:
java.io.IOException
- if the input could not be read
-
parse
- Throws:
java.io.IOException
-