Class StoreRecordFunction<T>
- java.lang.Object
-
- com.apple.foundationdb.record.RecordFunction<T>
-
- com.apple.foundationdb.record.metadata.StoreRecordFunction<T>
-
- Type Parameters:
T
- the type of the result value
- All Implemented Interfaces:
PlanHashable
,QueryHashable
@API(MAINTAINED) public class StoreRecordFunction<T> extends RecordFunction<T>
Record function that should be evaluated for some record against anFDBRecordStoreBase
instance.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.apple.foundationdb.record.PlanHashable
PlanHashable.PlanHashKind
-
Nested classes/interfaces inherited from interface com.apple.foundationdb.record.QueryHashable
QueryHashable.QueryHashKind
-
-
Constructor Summary
Constructors Constructor Description StoreRecordFunction(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
int
planHash(PlanHashable.PlanHashKind hashKind)
Return a hash similar tohashCode
, but with the additional guarantee that is is stable across JVMs.int
queryHash(QueryHashable.QueryHashKind hashKind)
Return a hash similar tohashCode
, but with the additional guarantee that is is stable across JVMs.String
toString()
-
Methods inherited from class com.apple.foundationdb.record.RecordFunction
basePlanHash, baseQueryHash, getName, validate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.apple.foundationdb.record.PlanHashable
planHash
-
-
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classRecordFunction<T>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classRecordFunction<T>
-
planHash
public int planHash(@Nonnull PlanHashable.PlanHashKind hashKind)
Description copied from interface:PlanHashable
Return a hash similar tohashCode
, but with the additional guarantee that is is stable across JVMs.- Parameters:
hashKind
- the "kind" of hash to calculate. Each kind of hash has a particular logic with regards to included and excluded items.- Returns:
- a stable hash code
-
queryHash
public int queryHash(@Nonnull QueryHashable.QueryHashKind hashKind)
Description copied from interface:QueryHashable
Return a hash similar tohashCode
, but with the additional guarantee that is is stable across JVMs.- Parameters:
hashKind
- the "kind" of hash to calculate. Each kind of hash has a particular logic with regards to included and excluded items.- Returns:
- a stable hash code
-
-