public static interface Comparisons.Comparison extends PlanHashable
Modifier and Type | Method and Description |
---|---|
Boolean |
eval(FDBRecordStoreBase<?> store,
EvaluationContext context,
Object value)
Evaluate this comparison for the value taken from the target record.
|
default Object |
getComparand()
Get the comparison value without any bindings.
|
Object |
getComparand(FDBRecordStoreBase<?> store,
EvaluationContext context)
Get the comparison value from the evaluation context.
|
Comparisons.Type |
getType()
Get the comparison type.
|
String |
typelessString()
Get the printed representation of the comparison less the comparison operator itself.
|
void |
validate(Descriptors.FieldDescriptor descriptor,
boolean fannedOut)
Validate that this comparison is compatible with a given record field.
|
combineHashes, iterablePlanHash, objectPlanHash, objectsPlanHash, planHash, planHash, planHash, planHashUnordered, stringHashUnordered
@Nullable Boolean eval(@Nonnull FDBRecordStoreBase<?> store, @Nonnull EvaluationContext context, @Nullable Object value)
store
- the record store for the querycontext
- the evaluation context for getting the other comparison valuevalue
- the value taken from the recordvoid validate(@Nonnull Descriptors.FieldDescriptor descriptor, boolean fannedOut)
descriptor
- the Protobuf descriptor for the proposed comparison fieldfannedOut
- whether a repeated field fans out into multiple comparisons or is treated as a single list value@Nonnull Comparisons.Type getType()
@Nullable default Object getComparand()
@Nullable Object getComparand(@Nullable FDBRecordStoreBase<?> store, @Nullable EvaluationContext context)
store
- the record store for the querycontext
- the context for query evaluation