Class GeoPointWithinDistanceComponent
java.lang.Object
com.apple.foundationdb.record.spatial.common.GeoPointWithinDistanceComponent
- All Implemented Interfaces:
PlanHashable,ComponentWithNoChildren,QueryComponent
@API(EXPERIMENTAL)
public class GeoPointWithinDistanceComponent
extends Object
implements ComponentWithNoChildren
Query filter for points (latitude, longitude) within a given distance of a given center.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.apple.foundationdb.record.PlanHashable
PlanHashable.PlanHashKind, PlanHashable.PlanHashMode -
Field Summary
Fields inherited from interface com.apple.foundationdb.record.PlanHashable
CURRENT_FOR_CONTINUATION, CURRENT_LEGACY -
Constructor Summary
ConstructorsConstructorDescriptionGeoPointWithinDistanceComponent(DoubleValueOrParameter centerLatitude, DoubleValueOrParameter centerLongitude, DoubleValueOrParameter distance, String latitudeFieldName, String longitudeFieldName) -
Method Summary
Modifier and TypeMethodDescriptionbooleanevalMessage(FDBRecordStoreBase<M> store, EvaluationContext context, FDBRecord<M> rec, Message message) expand(Quantifier.ForEach baseQuantifier, Supplier<Quantifier.ForEach> outerQuantifierSupplier, List<String> fieldNamePrefix) inthashCode()inttoString()voidvalidate(Descriptors.Descriptor descriptor) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.apple.foundationdb.record.PlanHashable
planHash, planHashMethods inherited from interface com.apple.foundationdb.record.query.expressions.QueryComponent
eval, evalAsync, evalMessageAsync, expand, isAsync, withParameterRelationshipMap
-
Constructor Details
-
GeoPointWithinDistanceComponent
public GeoPointWithinDistanceComponent(@Nonnull DoubleValueOrParameter centerLatitude, @Nonnull DoubleValueOrParameter centerLongitude, @Nonnull DoubleValueOrParameter distance, @Nonnull String latitudeFieldName, @Nonnull String longitudeFieldName)
-
-
Method Details
-
evalMessage
@Nullable public <M extends Message> Boolean evalMessage(@Nonnull FDBRecordStoreBase<M> store, @Nonnull EvaluationContext context, @Nullable FDBRecord<M> rec, @Nullable Message message) - Specified by:
evalMessagein interfaceQueryComponent
-
validate
- Specified by:
validatein interfaceQueryComponent
-
expand
@Nonnull public GraphExpansion expand(@Nonnull Quantifier.ForEach baseQuantifier, @Nonnull Supplier<Quantifier.ForEach> outerQuantifierSupplier, @Nonnull List<String> fieldNamePrefix) - Specified by:
expandin interfaceQueryComponent
-
planHash
- Specified by:
planHashin interfacePlanHashable
-
toString
-
equals
-
hashCode
public int hashCode()
-