T
- the result type of the function@API(value=MAINTAINED) public class QueryRecordFunction<T> extends Object implements PlanHashable
Constructor and Description |
---|
QueryRecordFunction(RecordFunction<T> function) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
QueryComponent |
equalsValue(Object comparand)
Checks if the calculated value has a value equal to the given comparand.
|
<M extends Message> |
eval(FDBRecordStoreBase<M> store,
EvaluationContext context,
FDBStoredRecord<M> record) |
RecordFunction<T> |
getFunction() |
QueryComponent |
greaterThan(Object comparand)
Checks if the calculated value has a value greater than the given comparand.
|
QueryComponent |
greaterThanOrEquals(Object comparand)
Checks if the calculated value has a value greater than or equal to the given comparand.
|
int |
hashCode() |
QueryComponent |
in(List<?> comparand)
Checks if the result for this function is in the given list.
|
QueryComponent |
in(String param)
Checks if the result for this function is in the list that is bound to the given param.
|
QueryComponent |
lessThan(Object comparand)
Checks if the calculated value has a value less than the given comparand.
|
QueryComponent |
lessThanOrEquals(Object comparand)
Checks if the calculated value has a value less than or equal to the given comparand.
|
QueryComponent |
notEquals(Object comparand)
Checks if the calculated value has a value not equal to the given comparand.
|
int |
planHash()
Return a hash similar to
hashCode , but with the additional guarantee that is is stable across JVMs. |
String |
toString() |
QueryComponent |
withComparison(Comparisons.Type type,
Object comparand) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
combineHashes, iterablePlanHash, objectPlanHash, objectsPlanHash, planHash, planHash, planHashUnordered, stringHashUnordered
public QueryRecordFunction(@Nonnull RecordFunction<T> function)
public RecordFunction<T> getFunction()
@Nonnull public QueryComponent equalsValue(@Nonnull Object comparand)
comparand
- the object to compare with the value in the calculated value@Nonnull public QueryComponent notEquals(@Nonnull Object comparand)
comparand
- the object to compare with the value in the calculated value@Nonnull public QueryComponent greaterThan(@Nonnull Object comparand)
comparand
- the object to compare with the value in the calculated value@Nonnull public QueryComponent greaterThanOrEquals(@Nonnull Object comparand)
comparand
- the object to compare with the value in the calculated value@Nonnull public QueryComponent lessThan(@Nonnull Object comparand)
comparand
- the object to compare with the value in the calculated value@Nonnull public QueryComponent lessThanOrEquals(@Nonnull Object comparand)
comparand
- the object to compare with the value in the calculated value@Nonnull public QueryComponent in(@Nonnull List<?> comparand)
comparand
- a list of elements@Nonnull public QueryComponent in(@Nonnull String param)
param
- a param that will be bound to a list in the execution context@Nonnull public QueryComponent withComparison(@Nonnull Comparisons.Type type, @Nonnull Object comparand)
public <M extends Message> CompletableFuture<T> eval(@Nonnull FDBRecordStoreBase<M> store, @Nonnull EvaluationContext context, @Nullable FDBStoredRecord<M> record)
public int planHash()
PlanHashable
hashCode
, but with the additional guarantee that is is stable across JVMs.planHash
in interface PlanHashable