public class CassandraFilter extends Filter implements CassandraRel
Filter
relational expression in Cassandra.| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
CassandraFilter.Translator
Translates
RexNode expressions into Cassandra expression strings. |
CassandraRel.Implementor| Modifier and Type | Field and Description |
|---|---|
private List<String> |
clusteringKeys |
private RelCollation |
implicitCollation |
private List<RelFieldCollation> |
implicitFieldCollations |
private String |
match |
private List<String> |
partitionKeys |
private Boolean |
singlePartition |
digest, id, rowType, traitSetCONVENTION| Constructor and Description |
|---|
CassandraFilter(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode child,
RexNode condition,
List<String> partitionKeys,
List<String> clusteringKeys,
List<RelFieldCollation> implicitFieldCollations) |
| Modifier and Type | Method and Description |
|---|---|
RelOptCost |
computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) |
CassandraFilter |
copy(RelTraitSet traitSet,
RelNode input,
RexNode condition) |
RelCollation |
getImplicitCollation()
Get the resulting collation by the clustering keys after filtering.
|
void |
implement(CassandraRel.Implementor implementor) |
boolean |
isSinglePartition()
Check if the filter restricts to a single partition.
|
accept, copy, estimateFilteredRows, estimateFilteredRows, estimateRowCount, explainTerms, getChildExps, getCondition, isValidchildrenAccept, deriveRowType, getInput, getInputs, replaceInputaccept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, explain, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraitSet, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, metadata, onRegister, recomputeDigest, register, sole, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeSelfCost, copy, estimateRowCount, explain, getChildExps, getCollationList, getConvention, getCorrelVariable, getExpectedInputRowType, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getTable, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, replaceInputgetCluster, getDescription, getDigest, getId, getTraitSetprivate Boolean singlePartition
private List<RelFieldCollation> implicitFieldCollations
private RelCollation implicitCollation
private String match
public CassandraFilter(RelOptCluster cluster, RelTraitSet traitSet, RelNode child, RexNode condition, List<String> partitionKeys, List<String> clusteringKeys, List<RelFieldCollation> implicitFieldCollations)
public RelOptCost computeSelfCost(RelOptPlanner planner, RelMetadataQuery mq)
computeSelfCost in interface RelNodecomputeSelfCost in class Filterpublic CassandraFilter copy(RelTraitSet traitSet, RelNode input, RexNode condition)
public void implement(CassandraRel.Implementor implementor)
implement in interface CassandraRelpublic boolean isSinglePartition()
public RelCollation getImplicitCollation()
Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.