Class PrimaryAccessExpansionVisitor
- java.lang.Object
-
- com.apple.foundationdb.record.query.plan.temp.ValueIndexLikeExpansionVisitor
-
- com.apple.foundationdb.record.query.plan.temp.PrimaryAccessExpansionVisitor
-
- All Implemented Interfaces:
ExpansionVisitor<ValueIndexLikeExpansionVisitor.VisitorState>
,KeyExpressionVisitor<ValueIndexLikeExpansionVisitor.VisitorState,GraphExpansion>
public class PrimaryAccessExpansionVisitor extends ValueIndexLikeExpansionVisitor
Class to expand primary data access into a candidate. The visitation methods are left unchanged from the super classValueIndexLikeExpansionVisitor
, this class merely provides a specificexpand(com.apple.foundationdb.record.query.plan.temp.Quantifier.ForEach, com.apple.foundationdb.record.metadata.expressions.KeyExpression, boolean)
method.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.apple.foundationdb.record.query.plan.temp.ValueIndexLikeExpansionVisitor
ValueIndexLikeExpansionVisitor.VisitorState
-
Nested classes/interfaces inherited from interface com.apple.foundationdb.record.query.plan.temp.KeyExpressionVisitor
KeyExpressionVisitor.Result, KeyExpressionVisitor.State
-
-
Constructor Summary
Constructors Constructor Description PrimaryAccessExpansionVisitor(Set<String> availableRecordTypes, Set<String> recordTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrimaryScanMatchCandidate
expand(Quantifier.ForEach baseQuantifier, KeyExpression primaryKey, boolean isReverse)
Method that expands a data structure into a data flow graph-
Methods inherited from class com.apple.foundationdb.record.query.plan.temp.ValueIndexLikeExpansionVisitor
getCurrentState, pop, pop, push, visitExpression, visitExpression, visitExpression, visitExpression, visitExpression, visitExpression, visitExpression
-
-
-
-
Method Detail
-
expand
@Nonnull public PrimaryScanMatchCandidate expand(@Nonnull Quantifier.ForEach baseQuantifier, @Nullable KeyExpression primaryKey, boolean isReverse)
Description copied from interface:ExpansionVisitor
Method that expands a data structure into a data flow graph- Parameters:
baseQuantifier
- a quantifier representing the base data accessprimaryKey
- the primary key of the data object the caller wants to accessisReverse
- an indicator whether the result set is expected to be returned in reverse order- Returns:
- a new
MatchCandidate
that can be used for matching.
-
-