Package org.elasticsearch.script
Class GeoPointFieldScript
org.elasticsearch.script.AbstractFieldScript
org.elasticsearch.script.AbstractLongFieldScript
org.elasticsearch.script.GeoPointFieldScript
Script producing geo points. Similarly to what
LatLonDocValuesField
does,
it encodes the points as a long value.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
static interface
-
Field Summary
Fields inherited from class org.elasticsearch.script.AbstractFieldScript
fieldName, leafSearchLookup, MAX_VALUES
-
Constructor Summary
ConstructorDescriptionfieldName, <,> params, SearchLookup searchLookup, org.apache.lucene.index.LeafReaderContext ctx)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
emit(double lat, double lon)
protected void
value)
protected <>
path)
void
runGeoPointForDoc(int doc, <GeoPoint> consumer)
Consumers must copy the emitted GeoPoint(s) if stored.Methods inherited from class org.elasticsearch.script.AbstractLongFieldScript
count, emit, runForDoc, runForDoc, values
Methods inherited from class org.elasticsearch.script.AbstractFieldScript
checkMaxSize, emitFromSource, execute, getDoc, getParams, setDocument
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
CONTEXT
-
PARSE_FROM_SOURCE
-
PARAMETERS
public static final [] PARAMETERS
-
-
Constructor Details
-
GeoPointFieldScript
public GeoPointFieldScript( fieldName, <,> params, SearchLookup searchLookup, org.apache.lucene.index.LeafReaderContext ctx)
-
-
Method Details
-
runGeoPointForDoc
Consumers must copy the emitted GeoPoint(s) if stored. -
extractFromSource
protected <> extractFromSource( path)- Overrides:
extractFromSource
in classAbstractFieldScript
-
emitFromObject
protected void emitFromObject( value)- Specified by:
emitFromObject
in classAbstractFieldScript
-
emit
protected final void emit(double lat, double lon)
-