Package com.apple.foundationdb.record
Interface PlanHashable
-
- All Known Subinterfaces:
AtomKeyExpression
,Comparisons.Comparison
,ComponentWithChildren
,ComponentWithComparison
,ComponentWithNoChildren
,ComponentWithSingleChild
,Element
,KeyExpression
,KeyExpressionWithChild
,KeyExpressionWithChildren
,KeyExpressionWithoutChildren
,QueryableKeyExpression
,QueryComponent
,QueryPlan<T>
,QueryPredicate
,RecordQueryLoadByKeysPlan.KeysSource
,RecordQueryPlan
,RecordQueryPlanWithChild
,RecordQueryPlanWithChildren
,RecordQueryPlanWithComparisons
,RecordQueryPlanWithIndex
,RecordQueryPlanWithNoChildren
,RecordQueryPlanWithRequiredFields
,SyntheticRecordFromStoredRecordPlan
,SyntheticRecordPlan
- All Known Implementing Classes:
AndComponent
,AndOrComponent
,AndOrPredicate
,AndPredicate
,BaseField
,BaseKeyExpression
,BaseNestedField
,CollateFunctionKeyExpression
,CollateFunctionKeyExpressionFactoryJRE.CollateFunctionKeyExpressionJRE
,Comparisons.ListComparison
,Comparisons.MultiColumnComparison
,Comparisons.NullComparison
,Comparisons.ParameterComparison
,Comparisons.SimpleComparison
,Comparisons.TextComparison
,Comparisons.TextContainsAllPrefixesComparison
,Comparisons.TextWithMaxDistanceComparison
,ComposedBitmapIndexQueryPlan
,ComposedBitmapIndexQueryPlan.ComposerBase
,ElementKeyExpression
,ElementPredicate
,EmptyComparison
,EmptyKeyExpression
,FieldElement
,FieldKeyExpression
,FieldWithComparison
,FunctionKeyExpression
,GroupingKeyExpression
,IndexAggregateFunction
,IndexRecordFunction
,IndexScanType
,KeyWithValueExpression
,ListKeyExpression
,LiteralElement
,LiteralKeyExpression
,NestedField
,NestingKeyExpression
,NotComponent
,NotPredicate
,OneOfThemWithComparison
,OneOfThemWithComponent
,OrComponent
,OrPredicate
,QueryKeyExpressionWithComparison
,QueryRecordFunction
,QueryRecordFunctionWithComparison
,RecordFunction
,RecordQueryCoveringIndexPlan
,RecordQueryFetchFromPartialRecordPlan
,RecordQueryFilterPlan
,RecordQueryIndexPlan
,RecordQueryInJoinPlan
,RecordQueryInParameterJoinPlan
,RecordQueryIntersectionPlan
,RecordQueryInValuesJoinPlan
,RecordQueryLoadByKeysPlan
,RecordQueryPredicateFilterPlan
,RecordQueryScanPlan
,RecordQueryScoreForRankPlan
,RecordQueryScoreForRankPlan.ScoreForRank
,RecordQueryTextIndexPlan
,RecordQueryTypeFilterPlan
,RecordQueryUnionPlan
,RecordQueryUnionPlanBase
,RecordQueryUnorderedDistinctPlan
,RecordQueryUnorderedPrimaryKeyDistinctPlan
,RecordQueryUnorderedUnionPlan
,RecordTypeElement
,RecordTypeKeyComparison
,RecordTypeKeyExpression
,ScanComparisons
,ScanComparisons.Builder
,SplitKeyExpression
,StoreRecordFunction
,TextScan
,ThenKeyExpression
,TimeWindowAggregateFunction
,TimeWindowRecordFunction
,ValueElement
,VersionElement
,VersionKeyExpression
@API(UNSTABLE) public interface PlanHashable
A more stable version ofObject.hashCode()
.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static int
combineHashes(List<Integer> hashes)
static int
iterablePlanHash(Iterable<?> objects)
static int
objectPlanHash(Object obj)
static int
objectsPlanHash(Object... objects)
int
planHash()
Return a hash similar tohashCode
, but with the additional guarantee that is is stable across JVMs.static int
planHash(PlanHashable... hashables)
static int
planHash(Iterable<? extends PlanHashable> hashables)
static int
planHashUnordered(Iterable<? extends PlanHashable> hashables)
static int
stringHashUnordered(Iterable<String> strings)
-
-
-
Method Detail
-
planHash
int planHash()
Return a hash similar tohashCode
, but with the additional guarantee that is is stable across JVMs.- Returns:
- a stable hash code
-
planHash
static int planHash(@Nonnull Iterable<? extends PlanHashable> hashables)
-
planHash
static int planHash(PlanHashable... hashables)
-
planHashUnordered
static int planHashUnordered(@Nonnull Iterable<? extends PlanHashable> hashables)
-
objectsPlanHash
static int objectsPlanHash(Object... objects)
-
-