Interface ShapeParser
-
public interface ShapeParserfirst point of entry for a shape parser
-
-
Field Summary
Fields Modifier and Type Field Description static ParseFieldFIELD_COORDINATESstatic ParseFieldFIELD_GEOMETRIESstatic ParseFieldFIELD_ORIENTATIONstatic ParseFieldFIELD_TYPE
-
Method Summary
Static Methods Modifier and Type Method Description static ShapeBuilderparse(XContentParser parser)Create a newShapeBuilderfromXContentstatic ShapeBuilderparse(XContentParser parser, BaseGeoShapeFieldMapper shapeMapper)Create a newShapeBuilderfromXContent
-
-
-
Field Detail
-
FIELD_TYPE
static final ParseField FIELD_TYPE
-
FIELD_COORDINATES
static final ParseField FIELD_COORDINATES
-
FIELD_GEOMETRIES
static final ParseField FIELD_GEOMETRIES
-
FIELD_ORIENTATION
static final ParseField FIELD_ORIENTATION
-
-
Method Detail
-
parse
static ShapeBuilder parse(XContentParser parser, BaseGeoShapeFieldMapper shapeMapper) throws java.io.IOException
Create a newShapeBuilderfromXContent- 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:
ShapeBuilderread from the parser or null if the parsers current token has beennull- Throws:
java.io.IOException- if the input could not be read
-
parse
static ShapeBuilder parse(XContentParser parser) throws java.io.IOException
Create a newShapeBuilderfromXContent- Parameters:
parser- parser to read the GeoShape from- Returns:
ShapeBuilderread from the parser or null if the parsers current token has beennull- Throws:
java.io.IOException- if the input could not be read
-
-