public final class Geo3DPoint extends Field
This field defines static factory methods for creating a shape query:
newShapeQuery() for matching all points inside a specified shape
PointValuesField.Store| Modifier and Type | Field and Description |
|---|---|
static FieldType |
TYPE
Indexing
FieldType. |
boost, fieldsData, name, tokenStream, type| Constructor and Description |
|---|
Geo3DPoint(String name,
double lat,
double lon)
Creates a new Geo3DPoint field with the specified lat, lon (in radians).
|
Geo3DPoint(String name,
double x,
double y,
double z)
Creates a new Geo3DPoint field with the specified x,y,z.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
decodeDimension(byte[] value,
int offset)
Decode single dimension
|
static void |
encodeDimension(double value,
byte[] bytes,
int offset)
Encode single dimension
|
static Query |
newShapeQuery(String field,
GeoShape shape)
Returns a query matching all points inside the provided shape.
|
String |
toString() |
binaryValue, boost, fieldType, name, numericValue, readerValue, setBoost, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValuepublic Geo3DPoint(String name, double lat, double lon)
IllegalArgumentException - if the field name is null or lat or lon are out of boundspublic Geo3DPoint(String name, double x, double y, double z)
IllegalArgumentException - if the field name is null or lat or lon are out of boundspublic static void encodeDimension(double value,
byte[] bytes,
int offset)
public static double decodeDimension(byte[] value,
int offset)
public static Query newShapeQuery(String field, GeoShape shape)
field - field name. must not be null.shape - Which GeoShape to matchCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.