N - the adapter field typepublic abstract class LatLonFieldMapper<N> extends SpatialFieldMapper<N>
| Modifier and Type | Class and Description |
|---|---|
static class |
LatLonFieldMapper.DoubleLatLonFieldMapper
Maps `Double` latitude and longitude adapter fields to a `Geometry` index field.
|
static class |
LatLonFieldMapper.FloatLatLonFieldMapper
Maps `Float` latitude and longitude adapter fields to a `Geometry` index field.
|
IndexFieldMapper.IndexFieldOptions| Modifier and Type | Field and Description |
|---|---|
protected boolean |
xAxisFirst |
adapterFields, indexFieldName| Constructor and Description |
|---|
LatLonFieldMapper() |
| Modifier and Type | Method and Description |
|---|---|
short |
adapterFieldCount() |
protected int |
byteLength() |
String[] |
getIndexOrderedAdapterFields() |
Set<String> |
getLowerCaseSuggestedFieldNames() |
protected org.locationtech.jts.geom.Geometry |
getNativeGeometry(List<N> nativeFieldValues)
Builds a `Geometry` from the native adapter field values.
|
void |
initFromOptions(List<FieldDescriptor<N>> inputFieldDescriptors,
IndexFieldMapper.IndexFieldOptions options) |
protected void |
readBytes(ByteBuffer buffer) |
protected abstract void |
setField(String fieldName,
Double Value,
RowBuilder<?> rowBuilder) |
void |
toAdapter(org.locationtech.jts.geom.Geometry indexFieldValue,
RowBuilder<?> rowBuilder) |
protected abstract org.locationtech.jts.geom.Coordinate |
toCoordinate(N xValue,
N yValue) |
protected void |
writeBytes(ByteBuffer buffer) |
indexFieldType, toIndex, transformFieldDescriptorsadapterFieldType, fromBinary, getAdapterFields, indexFieldName, init, isCompatibleWith, toBinarypublic void initFromOptions(List<FieldDescriptor<N>> inputFieldDescriptors, IndexFieldMapper.IndexFieldOptions options)
initFromOptions in class SpatialFieldMapper<N>public String[] getIndexOrderedAdapterFields()
getIndexOrderedAdapterFields in class IndexFieldMapper<N,org.locationtech.jts.geom.Geometry>public void toAdapter(org.locationtech.jts.geom.Geometry indexFieldValue,
RowBuilder<?> rowBuilder)
toAdapter in class IndexFieldMapper<N,org.locationtech.jts.geom.Geometry>protected abstract void setField(String fieldName, Double Value, RowBuilder<?> rowBuilder)
protected org.locationtech.jts.geom.Geometry getNativeGeometry(List<N> nativeFieldValues)
SpatialFieldMappergetNativeGeometry in class SpatialFieldMapper<N>nativeFieldValues - the adapter field valuesprotected abstract org.locationtech.jts.geom.Coordinate toCoordinate(N xValue, N yValue)
public short adapterFieldCount()
adapterFieldCount in class IndexFieldMapper<N,org.locationtech.jts.geom.Geometry>public Set<String> getLowerCaseSuggestedFieldNames()
getLowerCaseSuggestedFieldNames in class IndexFieldMapper<N,org.locationtech.jts.geom.Geometry>protected int byteLength()
byteLength in class SpatialFieldMapper<N>protected void writeBytes(ByteBuffer buffer)
writeBytes in class SpatialFieldMapper<N>protected void readBytes(ByteBuffer buffer)
readBytes in class SpatialFieldMapper<N>Copyright © 2013–2021. All rights reserved.