Class GeophileSpatialFunctionKeyExpression
java.lang.Object
com.apple.foundationdb.record.metadata.expressions.BaseKeyExpression
com.apple.foundationdb.record.metadata.expressions.FunctionKeyExpression
com.apple.foundationdb.record.spatial.geophile.GeophileSpatialFunctionKeyExpression
- All Implemented Interfaces:
AtomKeyExpression,KeyExpression,KeyExpressionWithChild,KeyExpressionWithChildren,PlanHashable
- Direct Known Subclasses:
GeophileSpatialFunctionKeyExpression.GeoJsonZ,GeophileSpatialFunctionKeyExpression.GeoPointZ,GeophileSpatialFunctionKeyExpression.GeoWKBZ,GeophileSpatialFunctionKeyExpression.GeoWKTZ
@API(EXPERIMENTAL)
public abstract class GeophileSpatialFunctionKeyExpression
extends FunctionKeyExpression
Spatial function key expressions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA serialized JTS geometry in GeoJson text format.static classA geospatial point.static classA serialized JTS geometry in WKB binary format.static classA serialized JTS geometry in WKT text format.Nested classes/interfaces inherited from class com.apple.foundationdb.record.metadata.expressions.FunctionKeyExpression
FunctionKeyExpression.BiFunctionBuilder, FunctionKeyExpression.Builder, FunctionKeyExpression.Factory, FunctionKeyExpression.RegistryNested classes/interfaces inherited from class com.apple.foundationdb.record.metadata.expressions.BaseKeyExpression
BaseKeyExpression.IllegalSubKeyException, BaseKeyExpression.UnsplittableKeyExpressionExceptionNested classes/interfaces inherited from interface com.apple.foundationdb.record.metadata.expressions.KeyExpression
KeyExpression.DeserializationException, KeyExpression.FanType, KeyExpression.InvalidExpressionException, KeyExpression.InvalidResultException, KeyExpression.NoSuchArgumentException, KeyExpression.SerializationExceptionNested classes/interfaces inherited from interface com.apple.foundationdb.record.PlanHashable
PlanHashable.PlanHashKind, PlanHashable.PlanHashMode -
Field Summary
FieldsFields inherited from class com.apple.foundationdb.record.metadata.expressions.FunctionKeyExpression
arguments, nameFields inherited from interface com.apple.foundationdb.record.PlanHashable
CURRENT_FOR_CONTINUATION, CURRENT_LEGACY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGeophileSpatialFunctionKeyExpression(String name, KeyExpression arguments) -
Method Summary
Modifier and TypeMethodDescriptionboolean<M extends Message>
List<Key.Evaluated>evaluateFunction(FDBRecord<M> record, Message message, Key.Evaluated arguments) intcom.geophile.z.SpacegetSpace()protected abstract com.geophile.z.SpatialObjectparseSpatialObject(Key.Evaluated arguments) protected booleanshouldSwapLatLong(Key.Evaluated arguments) Methods inherited from class com.apple.foundationdb.record.metadata.expressions.FunctionKeyExpression
basePlanHash, create, equals, equalsAtomic, evaluateMessage, expand, fromProto, getArguments, getChild, getMaxArguments, getMinArguments, getName, groupBy, hashCode, resolveAndEncapsulateFunction, toKeyExpression, toProto, toString, toValue, validateMethods inherited from class com.apple.foundationdb.record.metadata.expressions.BaseKeyExpression
getSubKey, getSubKeyImpl, isPrefixKeyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.apple.foundationdb.record.metadata.expressions.KeyExpression
evaluate, evaluateMessageSingleton, evaluateSingleton, getSubKey, hasLosslessNormalization, hasProperInterfaces, hasRecordTypeKey, isPrefixKey, needsCopyingToPartialRecord, normalizeKeyForPositions, versionColumnsMethods inherited from interface com.apple.foundationdb.record.metadata.expressions.KeyExpressionWithChild
getChildrenMethods inherited from interface com.apple.foundationdb.record.PlanHashable
planHash, planHash, planHash
-
Field Details
-
SPACE_LAT_LON
public static final com.geophile.z.Space SPACE_LAT_LON
-
-
Constructor Details
-
GeophileSpatialFunctionKeyExpression
protected GeophileSpatialFunctionKeyExpression(@Nonnull String name, @Nonnull KeyExpression arguments)
-
-
Method Details
-
getSpace
@Nonnull public com.geophile.z.Space getSpace() -
parseSpatialObject
@Nullable protected abstract com.geophile.z.SpatialObject parseSpatialObject(@Nonnull Key.Evaluated arguments) throws org.locationtech.jts.io.ParseException - Throws:
org.locationtech.jts.io.ParseException
-
evaluateFunction
@Nonnull public <M extends Message> List<Key.Evaluated> evaluateFunction(@Nullable FDBRecord<M> record, @Nullable Message message, @Nonnull Key.Evaluated arguments) - Specified by:
evaluateFunctionin classFunctionKeyExpression
-
createsDuplicates
public boolean createsDuplicates() -
getColumnSize
public int getColumnSize() -
shouldSwapLatLong
-