private static class CassandraRules.CassandraSortRule extends RelOptRule
Sort to a
CassandraSort.| Modifier and Type | Field and Description |
|---|---|
private static RelOptRuleOperand |
CASSANDRA_OP |
private static com.google.common.base.Predicate<CassandraFilter> |
FILTER_PREDICATE |
private static CassandraRules.CassandraSortRule |
INSTANCE |
private static com.google.common.base.Predicate<Sort> |
SORT_PREDICATE |
description, operands, relBuilderFactory| Modifier | Constructor and Description |
|---|---|
private |
CassandraSortRule() |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
collationsCompatible(RelCollation sortCollation,
RelCollation implicitCollation)
Check if it is possible to exploit native CQL sorting for a given collation.
|
RelNode |
convert(Sort sort,
CassandraFilter filter) |
boolean |
matches(RelOptRuleCall call) |
void |
onMatch(RelOptRuleCall call) |
private RelFieldCollation.Direction |
reverseDirection(RelFieldCollation.Direction direction)
Find the reverse of a given collation direction.
|
any, convert, convert, convertList, convertOperand, equals, equals, getOperand, getOperands, getOutConvention, getOutTrait, hashCode, none, operand, operand, operand, operand, operand, some, toString, unorderedprivate static final com.google.common.base.Predicate<Sort> SORT_PREDICATE
private static final com.google.common.base.Predicate<CassandraFilter> FILTER_PREDICATE
private static final RelOptRuleOperand CASSANDRA_OP
private static final CassandraRules.CassandraSortRule INSTANCE
public RelNode convert(Sort sort, CassandraFilter filter)
public boolean matches(RelOptRuleCall call)
matches in class RelOptRuleprivate boolean collationsCompatible(RelCollation sortCollation, RelCollation implicitCollation)
private RelFieldCollation.Direction reverseDirection(RelFieldCollation.Direction direction)
public void onMatch(RelOptRuleCall call)
onMatch in class RelOptRuleConverterRuleCopyright © 2012–2017 The Apache Software Foundation. All rights reserved.