org.elasticsearch.index.mapper.geo
Class MultiValueGeoPointFieldData

java.lang.Object
  extended by org.elasticsearch.index.field.data.FieldData<GeoPointDocFieldData>
      extended by org.elasticsearch.index.mapper.geo.GeoPointFieldData
          extended by org.elasticsearch.index.mapper.geo.MultiValueGeoPointFieldData

public class MultiValueGeoPointFieldData
extends GeoPointFieldData


Nested Class Summary
 
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.geo.GeoPointFieldData
GeoPointFieldData.PointValueProc, GeoPointFieldData.ValueInDocProc, GeoPointFieldData.ValueProc
 
Nested classes/interfaces inherited from class org.elasticsearch.index.field.data.FieldData
FieldData.OrdinalInDocProc, FieldData.StringValueInDocProc, FieldData.StringValueProc
 
Field Summary
 
Fields inherited from class org.elasticsearch.index.mapper.geo.GeoPointFieldData
EMPTY_ARRAY, lat, lon
 
Constructor Summary
MultiValueGeoPointFieldData(String fieldName, int[][] ordinals, double[] lat, double[] lon)
           
 
Method Summary
protected  long computeSizeInBytes()
           
 void forEachOrdinalInDoc(int docId, FieldData.OrdinalInDocProc proc)
           
 void forEachValueInDoc(int docId, FieldData.StringValueInDocProc proc)
           
 void forEachValueInDoc(int docId, GeoPointFieldData.ValueInDocProc proc)
           
 boolean hasValue(int docId)
          Is there a value associated with this document id.
 double latValue(int docId)
           
 double[] latValues(int docId)
           
 double lonValue(int docId)
           
 double[] lonValues(int docId)
           
 boolean multiValued()
          Is the field data a multi valued one (has multiple values / terms per document id) or not.
 GeoPoint value(int docId)
           
 GeoPoint[] values(int docId)
           
 
Methods inherited from class org.elasticsearch.index.mapper.geo.GeoPointFieldData
arcDistance, createFieldData, distance, distanceGeohash, docFieldData, factorDistance, forEachValue, forEachValue, forEachValue, load, stringValue, type
 
Methods inherited from class org.elasticsearch.index.field.data.FieldData
fieldName, load, sizeInBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiValueGeoPointFieldData

public MultiValueGeoPointFieldData(String fieldName,
                                   int[][] ordinals,
                                   double[] lat,
                                   double[] lon)
Method Detail

computeSizeInBytes

protected long computeSizeInBytes()
Overrides:
computeSizeInBytes in class GeoPointFieldData

multiValued

public boolean multiValued()
Description copied from class: FieldData
Is the field data a multi valued one (has multiple values / terms per document id) or not.

Specified by:
multiValued in class FieldData<GeoPointDocFieldData>

hasValue

public boolean hasValue(int docId)
Description copied from class: FieldData
Is there a value associated with this document id.

Specified by:
hasValue in class FieldData<GeoPointDocFieldData>

forEachValueInDoc

public void forEachValueInDoc(int docId,
                              FieldData.StringValueInDocProc proc)
Specified by:
forEachValueInDoc in class FieldData<GeoPointDocFieldData>

forEachValueInDoc

public void forEachValueInDoc(int docId,
                              GeoPointFieldData.ValueInDocProc proc)
Specified by:
forEachValueInDoc in class GeoPointFieldData

forEachOrdinalInDoc

public void forEachOrdinalInDoc(int docId,
                                FieldData.OrdinalInDocProc proc)
Specified by:
forEachOrdinalInDoc in class FieldData<GeoPointDocFieldData>

value

public GeoPoint value(int docId)
Specified by:
value in class GeoPointFieldData

values

public GeoPoint[] values(int docId)
Specified by:
values in class GeoPointFieldData

latValue

public double latValue(int docId)
Specified by:
latValue in class GeoPointFieldData

lonValue

public double lonValue(int docId)
Specified by:
lonValue in class GeoPointFieldData

latValues

public double[] latValues(int docId)
Specified by:
latValues in class GeoPointFieldData

lonValues

public double[] lonValues(int docId)
Specified by:
lonValues in class GeoPointFieldData


Copyright © 2009-2012. All Rights Reserved.