@Deprecated public class ScanContext extends org.plasma.query.visitor.DefaultQueryVisitor
Based on the various access methods, if a client determines that an HBase
partial row-key scan is possible based, a PartialRowKeyScanAssembler
may be invoked using the current scan context resulting is a precise set of
composite start/stop row keys. These are used in HBase client scan API start and stop row.
| Modifier and Type | Field and Description |
|---|---|
protected ScanLiterals |
fuzzyKeyScanLiterals
Deprecated.
|
protected DataGraphMapping |
graph
Deprecated.
|
protected boolean |
hasContiguousPartialKeyScanFieldValues
Deprecated.
|
protected boolean |
hasOnlyPartialKeyScanSupportedLogicalOperators
Deprecated.
|
protected boolean |
hasOnlyPartialKeyScanSupportedRelationalOperators
Deprecated.
|
protected ScanLiterals |
partialKeyScanLiterals
Deprecated.
|
protected org.plasma.sdo.PlasmaType |
rootType
Deprecated.
|
| Constructor and Description |
|---|
ScanContext(org.plasma.sdo.PlasmaType rootType,
org.plasma.query.model.Where where,
StoreMappingContext mappingContext)
Deprecated.
Conducts an initial traversal while capturing and analyzing the
characteristics of a query in order to leverage the important HBase partial
row-key scan capability for every possible predicate expression.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUseFuzzyKeyScan()
Deprecated.
|
boolean |
canUsePartialKeyScan()
Deprecated.
Returns whether an HBase partial row-key scan is possible under the current
scan context.
|
ScanLiterals |
getFuzzyKeyScanLiterals()
Deprecated.
|
ScanLiterals |
getPartialKeyScanLiterals()
Deprecated.
Return the current scan literals.
|
boolean |
hasContiguousFieldValues()
Deprecated.
Returns whether the underlying query predicates represent a contiguous set
of composite row-key fields making a partial row-key scan possible.
|
boolean |
hasOnlyPartialKeyScanSupportedLogicalOperators()
Deprecated.
Returns whether the underlying query contains only logical operators
supportable for under a partial row-key scan.
|
boolean |
hasOnlyPartialKeyScanSupportedRelationalOperators()
Deprecated.
Returns whether the underlying query contains only relational operators
supportable for under a partial row-key scan.
|
void |
start(org.plasma.query.model.GroupOperator operator)
Deprecated.
Process the traversal start event for a query
GroupOperator within an
expression creating context
information useful for determining an HBase scan strategy. |
void |
start(org.plasma.query.model.LogicalOperator operator)
Deprecated.
Process the traversal start event for a query
LogicalOperator within an
expression creating context
information useful for determining an HBase scan strategy. |
void |
start(org.plasma.query.model.PredicateOperator operator)
Deprecated.
Process the traversal start event for a query
WildcardOperator within an
expression creating context
information useful for determining an HBase scan strategy. |
void |
start(org.plasma.query.model.RelationalOperator operator)
Deprecated.
Process the traversal start event for a query
RelationalOperator within
an expression creating context
information useful for determining an HBase scan strategy. |
end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, getContext, start, start, start, start, start, start, start, start, start, start, start, start, start, start, start, start, start, start, start, start, startprotected org.plasma.sdo.PlasmaType rootType
protected DataGraphMapping graph
protected ScanLiterals partialKeyScanLiterals
protected ScanLiterals fuzzyKeyScanLiterals
protected boolean hasContiguousPartialKeyScanFieldValues
protected boolean hasOnlyPartialKeyScanSupportedLogicalOperators
protected boolean hasOnlyPartialKeyScanSupportedRelationalOperators
public ScanContext(org.plasma.sdo.PlasmaType rootType,
org.plasma.query.model.Where where,
StoreMappingContext mappingContext)
rootType - the root typewhere - the predicatespublic ScanLiterals getPartialKeyScanLiterals()
public ScanLiterals getFuzzyKeyScanLiterals()
public boolean canUsePartialKeyScan()
public boolean canUseFuzzyKeyScan()
public boolean hasContiguousFieldValues()
public boolean hasOnlyPartialKeyScanSupportedLogicalOperators()
public boolean hasOnlyPartialKeyScanSupportedRelationalOperators()
public void start(org.plasma.query.model.PredicateOperator operator)
WildcardOperator within an
expression creating context
information useful for determining an HBase scan strategy.start in interface org.plasma.query.visitor.QueryVisitorstart in class org.plasma.query.visitor.DefaultQueryVisitorliteral - the expression literalGraphServiceException - if an unknown wild card operator is encountered.public void start(org.plasma.query.model.LogicalOperator operator)
LogicalOperator within an
expression creating context
information useful for determining an HBase scan strategy.start in interface org.plasma.query.visitor.QueryVisitorstart in class org.plasma.query.visitor.DefaultQueryVisitorliteral - the expression literalGraphServiceException - if an unknown logical operator is encountered.public void start(org.plasma.query.model.RelationalOperator operator)
RelationalOperator within
an expression creating context
information useful for determining an HBase scan strategy.start in interface org.plasma.query.visitor.QueryVisitorstart in class org.plasma.query.visitor.DefaultQueryVisitorliteral - the expression literalGraphServiceException - if an unknown relational operator is encountered.public void start(org.plasma.query.model.GroupOperator operator)
GroupOperator within an
expression creating context
information useful for determining an HBase scan strategy.start in interface org.plasma.query.visitor.QueryVisitorstart in class org.plasma.query.visitor.DefaultQueryVisitorliteral - the expression literalGraphServiceException - if an unknown group operator is encountered.Copyright © 2021. All Rights Reserved.