public interface ShapeParser
Modifier and Type | Field | Description |
---|---|---|
static ParseField |
FIELD_COORDINATES |
|
static ParseField |
FIELD_GEOMETRIES |
|
static ParseField |
FIELD_ORIENTATION |
|
static ParseField |
FIELD_TYPE |
Modifier and Type | Method | Description |
---|---|---|
static ShapeBuilder |
parse(XContentParser parser) |
Create a new
ShapeBuilder from XContent |
static ShapeBuilder |
parse(XContentParser parser,
GeoShapeFieldMapper shapeMapper) |
Create a new
ShapeBuilder from XContent |
static final ParseField FIELD_TYPE
static final ParseField FIELD_COORDINATES
static final ParseField FIELD_GEOMETRIES
static final ParseField FIELD_ORIENTATION
static ShapeBuilder parse(XContentParser parser, GeoShapeFieldMapper shapeMapper) throws java.io.IOException
ShapeBuilder
from XContent
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 SpatialContextShapeBuilder
read from the parser or null
if the parsers current token has been null
java.io.IOException
- if the input could not be readstatic ShapeBuilder parse(XContentParser parser) throws java.io.IOException
ShapeBuilder
from XContent
parser
- parser to read the GeoShape fromShapeBuilder
read from the parser or null
if the parsers current token has been null
java.io.IOException
- if the input could not be read