java.lang.Object
org.elasticsearch.script.DocBasedScript
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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic interface
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ScriptContext<GeoPointFieldScript.Factory>static final String[]static final GeoPointFieldScript.FactoryFields inherited from class org.elasticsearch.script.AbstractFieldScriptfieldName, MAX_VALUES, sourceLookupFields inherited from class org.elasticsearch.script.DocBasedScriptdocReader
- 
Constructor SummaryConstructorsConstructorDescriptionGeoPointFieldScript(String fieldName, Map<String, Object> params, SearchLookup searchLookup, org.apache.lucene.index.LeafReaderContext ctx) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected final voidemit(double lat, double lon) protected voidemitFromObject(Object value) extractFromSource(String path) static GeoPointFieldScript.FactoryleafAdapter(Function<SearchLookup, CompositeFieldScript.LeafFactory> parentFactory) voidrunGeoPointForDoc(int doc, Consumer<GeoPoint> consumer) Consumers must copy the emitted GeoPoint(s) if stored.Methods inherited from class org.elasticsearch.script.AbstractLongFieldScriptcount, emit, runForDoc, runForDoc, valuesMethods inherited from class org.elasticsearch.script.AbstractFieldScriptcheckMaxSize, emitFromCompositeScript, emitFromSource, emitValueFromCompositeScript, execute, getParamsMethods inherited from class org.elasticsearch.script.DocBasedScriptdocAsMap, field, fields, getDoc, setDocument
- 
Field Details- 
CONTEXT
- 
PARSE_FROM_SOURCE
- 
PARAMETERS
 
- 
- 
Constructor Details- 
GeoPointFieldScriptpublic GeoPointFieldScript(String fieldName, Map<String, Object> params, SearchLookup searchLookup, org.apache.lucene.index.LeafReaderContext ctx) 
 
- 
- 
Method Details- 
leafAdapterpublic static GeoPointFieldScript.Factory leafAdapter(Function<SearchLookup, CompositeFieldScript.LeafFactory> parentFactory) 
- 
runGeoPointForDocConsumers must copy the emitted GeoPoint(s) if stored.
- 
extractFromSource- Overrides:
- extractFromSourcein class- AbstractFieldScript
 
- 
emitFromObject- Specified by:
- emitFromObjectin class- AbstractFieldScript
 
- 
emitprotected final void emit(double lat, double lon) 
 
-