| Package | Description |
|---|---|
| org.apache.calcite.adapter.elasticsearch |
Base classes for a query provider based on an Elasticsearch DB.
|
| org.apache.calcite.adapter.enumerable |
Query optimizer rules for Java calling convention.
|
| org.apache.calcite.adapter.jdbc |
Query provider based on a JDBC data source.
|
| org.apache.calcite.interpreter |
Provides an implementation of relational expressions using an interpreter.
|
| org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
| org.apache.calcite.plan.hep |
Provides a heuristic planner implementation for the interfaces in
org.apache.calcite.plan. |
| org.apache.calcite.rel |
Defines relational expressions.
|
| org.apache.calcite.rel.convert |
Defines relational expressions and rules for converting between calling
conventions.
|
| Constructor and Description |
|---|
ElasticsearchConverterRule(Class<? extends RelNode> clazz,
RelTrait in,
Convention out,
String description) |
| Modifier and Type | Class and Description |
|---|---|
class |
EnumerableConvention
Family of calling conventions that return results as an
Enumerable. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
EnumerableConvention.satisfies(RelTrait trait) |
| Modifier and Type | Class and Description |
|---|---|
class |
JdbcConvention
Calling convention for relational operations that occur in a JDBC
database.
|
| Constructor and Description |
|---|
JdbcConverterRule(Class<? extends RelNode> clazz,
RelTrait in,
JdbcConvention out,
String description) |
| Modifier and Type | Class and Description |
|---|---|
class |
BindableConvention
Calling convention that returns results as an
Enumerable of object arrays. |
class |
InterpretableConvention
Calling convention that returns results as an
Enumerable of object arrays. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
InterpretableConvention.satisfies(RelTrait trait) |
boolean |
BindableConvention.satisfies(RelTrait trait) |
| Modifier and Type | Class and Description |
|---|---|
class |
RelTraitDef<T extends RelTrait>
RelTraitDef represents a class of
RelTraits. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Convention
Calling convention trait.
|
interface |
RelMultipleTrait
Trait for which a given relational expression can have multiple values.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
Convention.Impl
Default implementation.
|
(package private) class |
RelCompositeTrait<T extends RelMultipleTrait>
A trait that consists of a list of traits, all of the same type.
|
private static class |
RelCompositeTrait.EmptyCompositeTrait<T extends RelMultipleTrait>
Composite trait with 0 elements.
|
| Modifier and Type | Field and Description |
|---|---|
private static RelTrait[] |
RelTraitSet.EMPTY_TRAITS |
private RelTrait |
RelOptRuleOperand.trait |
private RelTrait[] |
RelTraitSet.traits |
| Modifier and Type | Field and Description |
|---|---|
(package private) Map<List<RelTrait>,RelTraitSet> |
RelTraitSet.Cache.map |
private Set<RelTrait> |
AbstractRelOptPlanner.traits |
| Modifier and Type | Method and Description |
|---|---|
<T extends RelTrait> |
RelTraitSet.canonize(T trait)
Converts a trait to canonical form.
|
<T extends RelTrait> |
RelTraitSet.getTrait(RelTraitDef<T> traitDef)
Retrieves a RelTrait of the given type from the set.
|
<T extends RelTrait> |
RelTraitSet.isEnabled(RelTraitDef<T> traitDef)
Returns whether a given kind of trait is enabled.
|
<T extends RelTrait> |
RelTraitSet.replaceIf(RelTraitDef<T> def,
com.google.common.base.Supplier<T> traitSupplier)
If a given trait is enabled, replaces it by calling the given function.
|
| Modifier and Type | Method and Description |
|---|---|
RelTrait |
RelTraitSet.get(int index) |
RelTrait |
RelOptRule.getOutTrait()
Returns the trait which will be modified as a result of firing this rule,
or null if the rule is not a converter rule.
|
RelTrait |
RelTraitSet.getTrait(int index)
Retrieves a RelTrait from the set.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<RelTrait> |
RelTraitSet.difference(RelTraitSet traitSet)
Returns a list of traits that are in
traitSet but not in this
RelTraitSet. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends RelNode> |
RelOptUtil.addTrait(T rel,
RelTrait trait) |
boolean |
RelTraitSet.comprises(RelTrait... relTraits)
Returns whether this trait set comprises precisely the list of given
traits.
|
boolean |
RelTraitSet.contains(RelTrait trait)
Returns whether this trait set contains a given trait.
|
boolean |
RelTraitSet.containsIfApplicable(RelTrait trait)
Returns whether this trait set contains the given trait, or whether the
trait is not present because its
RelTraitDef is not enabled. |
private static <T> boolean |
RelTraitSet.containsShallow(T[] ts,
RelTrait seek)
Returns whether an element occurs within an array.
|
static RelNode |
RelOptRule.convert(RelNode rel,
RelTrait toTrait)
Converts one trait of a relational expression, if it does not
already have that trait.
|
protected static List<RelNode> |
RelOptRule.convertList(List<RelNode> rels,
RelTrait trait)
Converts a list of relational expressions.
|
protected static <R extends RelNode> |
RelOptRule.convertOperand(Class<R> clazz,
com.google.common.base.Predicate<? super R> predicate,
RelTrait trait)
Creates an operand for a converter rule.
|
static <R extends RelNode> |
RelOptRule.operand(Class<R> clazz,
RelTrait trait,
com.google.common.base.Predicate<? super R> predicate,
RelOptRuleOperandChildren operandList)
Creates an operand that matches a relational expression that has a
particular trait and predicate.
|
static <R extends RelNode> |
RelOptRule.operand(Class<R> clazz,
RelTrait trait,
com.google.common.base.Predicate<? super R> predicate,
RelOptRuleOperand first,
RelOptRuleOperand... rest)
Creates an operand that matches a relational expression that has no
children.
|
static <R extends RelNode> |
RelOptRule.operand(Class<R> clazz,
RelTrait trait,
RelOptRuleOperandChildren operandList)
Creates an operand that matches a relational expression that has no
children.
|
RelTraitSet |
RelTraitSet.plus(RelTrait trait)
Returns this trait set with a given trait added or overridden.
|
RelTraitSet |
RelTraitSet.plusAll(RelTrait[] traits) |
RelTraitSet |
RelTraitSet.replace(int index,
RelTrait trait)
Replaces an existing RelTrait in the set.
|
RelTraitSet |
RelTraitSet.replace(RelTrait trait)
Returns a trait set consisting of the current set plus a new trait.
|
boolean |
RelTrait.satisfies(RelTrait trait)
Returns whether this trait satisfies a given trait.
|
boolean |
RelCompositeTrait.satisfies(RelTrait trait) |
boolean |
RelCompositeTrait.EmptyCompositeTrait.satisfies(RelTrait trait) |
boolean |
Convention.Impl.satisfies(RelTrait trait) |
RelTraitSet |
RelOptCluster.traitSetOf(RelTrait... traits)
Deprecated.
For
traitSetOf(t1, t2),
use RelOptCluster.traitSet()().replace(t1).replace(t2). |
RelTraitSet |
RelOptCluster.traitSetOf(RelTrait trait) |
| Modifier and Type | Method and Description |
|---|---|
(package private) RelTraitSet |
RelTraitSet.Cache.getOrAdd(List<RelTrait> traits) |
| Constructor and Description |
|---|
ConverterRelOptRuleOperand(Class<R> clazz,
RelTrait in,
com.google.common.base.Predicate<? super R> predicate) |
RelOptRuleOperand(Class<R> clazz,
RelTrait trait,
com.google.common.base.Predicate<? super R> predicate,
RelOptRuleOperandChildPolicy childPolicy,
com.google.common.collect.ImmutableList<RelOptRuleOperand> children)
Private constructor.
|
RelOptRuleOperand(Class<R> clazz,
RelTrait trait,
com.google.common.base.Predicate<? super R> predicate,
RelOptRuleOperandChildren children)
Deprecated.
Use
RelOptRule.operand(Class, RelOptRuleOperandChildren) or one of its
overloaded methods. |
RelTraitSet(RelTraitSet.Cache cache,
RelTrait[] traits)
Constructs a RelTraitSet with the given set of RelTraits.
|
| Modifier and Type | Method and Description |
|---|---|
private HepRelVertex |
HepPlanner.applyTransformationResults(HepRelVertex vertex,
HepRuleCall call,
RelTrait parentTrait) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
RelCollation
Description of the physical ordering of a relational expression.
|
interface |
RelDistribution
Description of the physical distribution of a relational expression.
|
| Modifier and Type | Class and Description |
|---|---|
class |
RelCollationImpl
Simple implementation of
RelCollation. |
private static class |
RelDistributions.RelDistributionImpl
Implementation of
RelDistribution. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RelDistributions.RelDistributionImpl.satisfies(RelTrait trait) |
boolean |
RelCollationImpl.satisfies(RelTrait trait) |
| Modifier and Type | Field and Description |
|---|---|
private RelTrait |
ConverterRule.inTrait |
private RelTrait |
ConverterRule.outTrait |
| Modifier and Type | Method and Description |
|---|---|
RelTrait |
ConverterRule.getInTrait() |
RelTrait |
ConverterRule.getOutTrait() |
| Constructor and Description |
|---|
ConverterRule(Class<? extends RelNode> clazz,
RelTrait in,
RelTrait out,
String description)
Creates a
ConverterRule. |
ConverterRule(Class<R> clazz,
com.google.common.base.Predicate<? super R> predicate,
RelTrait in,
RelTrait out,
RelBuilderFactory relBuilderFactory,
String description)
Creates a
ConverterRule with a predicate. |
ConverterRule(Class<R> clazz,
com.google.common.base.Predicate<? super R> predicate,
RelTrait in,
RelTrait out,
String description)
Deprecated.
|
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.