Package org.apache.lucene.document
Class LatLonShapeDocValuesField
- java.lang.Object
- 
- org.apache.lucene.document.Field
- 
- org.apache.lucene.document.ShapeDocValuesField
- 
- org.apache.lucene.document.LatLonShapeDocValuesField
 
 
 
- 
- All Implemented Interfaces:
- IndexableField
 
 public final class LatLonShapeDocValuesField extends ShapeDocValuesField Concrete implementation of aShapeDocValuesFieldfor geographic geometries.This field should be instantiated through LatLonShape.createDocValueField(String, Line)- LatLonShape.createDocValueField(String, Polygon)for indexing a geographic polygon doc value field.
- LatLonShape.createDocValueField(String, Line)for indexing a geographic linestring doc value.
- LatLonShape.createDocValueField(String, double, double)for indexing a lat, lon geographic point doc value.
- LatLonShape.createDocValueField(String, List)for indexing a geographic doc value from a precomputed tessellation.
- LatLonShape.createDocValueField(String, BytesRef)for indexing a geographic doc value from existing encoding.
 LatLonShape, vertex values are indexed with some loss of precision from the originaldoublevalues.- See Also:
- PointValues,- LatLonDocValuesField
- WARNING: This API is experimental and might change in incompatible ways in the next release.
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.lucene.document.FieldField.Store
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.lucene.document.ShapeDocValuesFieldFIELD_TYPE, shapeDocValues
 - 
Fields inherited from class org.apache.lucene.document.FieldfieldsData, name, tokenStream, type
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedLatLonShapeDocValuesField(String name, List<ShapeField.DecodedTriangle> tessellation)constructs aLatLonShapeDocValueFieldfrom a pre-tessellated geometryprotectedLatLonShapeDocValuesField(String name, BytesRef binaryValue)Creates aLatLonShapeDocValueFieldfrom a given serialized value
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doubledecodeX(int encoded)decodes x coordinates from encoded spaceprotected doubledecodeY(int encoded)decodes y coordinates from encoded spaceRectanglegetBoundingBox()retrieves the bounding box for the geometryPointgetCentroid()retrieves the centroid location for the geometry- 
Methods inherited from class org.apache.lucene.document.ShapeDocValuesFieldfieldType, getHighestDimensionType, name, newGeometryQuery, numberOfTerms, stringValue, tokenStream
 - 
Methods inherited from class org.apache.lucene.document.FieldbinaryValue, getCharSequenceValue, invertableType, numericValue, readerValue, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, storedValue, tokenStreamValue, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
LatLonShapeDocValuesFieldprotected LatLonShapeDocValuesField(String name, List<ShapeField.DecodedTriangle> tessellation) constructs aLatLonShapeDocValueFieldfrom a pre-tessellated geometry
 
- 
 - 
Method Detail- 
getCentroidpublic Point getCentroid() retrieves the centroid location for the geometry- Specified by:
- getCentroidin class- ShapeDocValuesField
 
 - 
getBoundingBoxpublic Rectangle getBoundingBox() retrieves the bounding box for the geometry- Specified by:
- getBoundingBoxin class- ShapeDocValuesField
 
 - 
decodeXprotected double decodeX(int encoded) Description copied from class:ShapeDocValuesFielddecodes x coordinates from encoded space- Specified by:
- decodeXin class- ShapeDocValuesField
 
 - 
decodeYprotected double decodeY(int encoded) Description copied from class:ShapeDocValuesFielddecodes y coordinates from encoded space- Specified by:
- decodeYin class- ShapeDocValuesField
 
 
- 
 
-