| Package | Description |
|---|---|
| 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.jdbc |
JDBC driver for Calcite.
|
| org.apache.calcite.materialize |
Management of materialized query results.
|
| org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
| org.apache.calcite.rel |
Defines relational expressions.
|
| org.apache.calcite.rel.core |
Defines core relational expressions.
|
| org.apache.calcite.rel.externalize |
Facilities to externalize
RelNodes to and from
XML and JSON format. |
| org.apache.calcite.rex |
Provides a language for representing row-expressions.
|
| org.apache.calcite.sql.validate |
SQL validation.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| org.apache.calcite.util |
Provides utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
Pair<Expression,Expression> |
PhysTypeImpl.generateCollationKey(List<RelFieldCollation> collations) |
Pair<Expression,Expression> |
PhysType.generateCollationKey(List<RelFieldCollation> collations)
Returns a lambda to create a collation key and a comparator.
|
| Constructor and Description |
|---|
RexToLixTranslator.InputGetterImpl(List<Pair<Expression,PhysType>> inputs) |
| Constructor and Description |
|---|
JdbcImplementor.AliasContext(List<Pair<String,RelDataType>> aliases,
boolean qualified) |
| Modifier and Type | Method and Description |
|---|---|
Pair<String,Table> |
CalciteSchema.getTable(String tableName,
boolean caseSensitive)
Returns a table with the given name.
|
Pair<String,Table> |
CalciteSchema.getTableBasedOnNullaryFunction(String tableName,
boolean caseSensitive)
Returns a tables derived from explicit and implicit functions
that take zero parameters.
|
Pair<String,Table> |
CalciteSchema.getTableBySql(String sql)
Returns a table that materializes the given SQL statement.
|
| Modifier and Type | Method and Description |
|---|---|
Pair<CalciteSchema.TableEntry,TileKey> |
MaterializationService.defineTile(Lattice lattice,
ImmutableBitSet groupSet,
List<Lattice.Measure> measureList,
CalciteSchema schema,
boolean create,
boolean exact)
Defines a tile.
|
| Modifier and Type | Method and Description |
|---|---|
static Pair<RelNode,Boolean> |
RelOptUtil.createExistsPlan(RelNode seekRel,
RelOptUtil.SubqueryType subqueryType,
RelOptUtil.Logic logic,
boolean needsOuterJoin)
Creates a plan suitable for use in
EXISTS or IN
statements. |
Pair<CalciteSchema.TableEntry,TileKey> |
RelOptLattice.getAggregate(RelOptPlanner planner,
ImmutableBitSet groupSet,
List<Lattice.Measure> measureList)
Retrieves a materialized table that will satisfy an aggregate query on
the star table.
|
| Modifier and Type | Method and Description |
|---|---|
static RelNode |
RelOptUtil.createProject(RelNode child,
List<Pair<RexNode,String>> projectList,
boolean optimize)
Creates a relational expression which projects a list of (expression, name)
pairs.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RelWriter.explain(RelNode rel,
List<Pair<String,Object>> valueList)
Prints an explanation of a node, with a list of (term, value) pairs.
|
| Modifier and Type | Method and Description |
|---|---|
List<Pair<RexNode,String>> |
Project.getNamedProjects()
Returns a list of (expression, name) pairs.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
RelWriterImpl.explain_(RelNode rel,
List<Pair<String,Object>> values) |
protected void |
RelJsonWriter.explain_(RelNode rel,
List<Pair<String,Object>> values) |
protected void |
RelXmlWriter.explain_(RelNode rel,
List<Pair<String,Object>> values) |
void |
RelWriterImpl.explain(RelNode rel,
List<Pair<String,Object>> valueList) |
void |
RelJsonWriter.explain(RelNode rel,
List<Pair<String,Object>> valueList) |
| Modifier and Type | Class and Description |
|---|---|
class |
RexFieldCollation
Expression combined with sort flags (DESCENDING, NULLS LAST).
|
| Modifier and Type | Method and Description |
|---|---|
static Pair<String,String> |
RexUtil.makeKey(RexNode expr)
Creates a key for
RexNode which is the same as another key of
another RexNode only if the two have both the same type and textual
representation. |
static Pair<RexNode,String> |
RexInputRef.of2(int index,
List<RelDataTypeField> fields)
Creates a reference to a given field in a list of fields.
|
Pair<com.google.common.collect.ImmutableList<RexNode>,com.google.common.collect.ImmutableList<RexNode>> |
RexProgram.split()
Splits this program into a list of project expressions and a list of
filter expressions.
|
| Modifier and Type | Method and Description |
|---|---|
List<Pair<RexLocalRef,String>> |
RexProgram.getNamedProjects()
Returns a list of project expressions and their field names.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<Pair<String,SqlValidatorNamespace>> |
ListScope.children
List of child
SqlValidatorNamespace objects and their names. |
| Modifier and Type | Method and Description |
|---|---|
Pair<String,SqlValidatorNamespace> |
SqlValidatorScope.findQualifyingTableName(String columnName,
SqlNode ctx)
Finds the table alias which is implicitly qualifying an unqualified
column name.
|
Pair<String,SqlValidatorNamespace> |
DelegatingScope.findQualifyingTableName(String columnName,
SqlNode ctx) |
Pair<String,SqlValidatorNamespace> |
ListScope.findQualifyingTableName(String columnName,
SqlNode ctx) |
protected static Pair<SqlIdentifier,SqlNodeList> |
IdentifierNamespace.split(SqlNode node) |
| Modifier and Type | Method and Description |
|---|---|
List<Pair<SqlNode,SqlMonotonicity>> |
SqlValidatorNamespace.getMonotonicExprs()
Returns a list of expressions which are monotonic in this namespace.
|
List<Pair<SqlNode,SqlMonotonicity>> |
IdentifierNamespace.getMonotonicExprs() |
List<Pair<SqlNode,SqlMonotonicity>> |
DelegatingNamespace.getMonotonicExprs() |
| Modifier and Type | Class and Description |
|---|---|
protected static class |
RelFieldTrimmer.TrimResult
Result of an attempt to trim columns from a relational expression.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SqlToRelConverter.Blackboard.flatten(List<RelNode> rels,
int systemFieldCount,
int[] start,
List<Pair<RelNode,Integer>> relOffsetList) |
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2> Pair<T1,T2> |
Pair.of(T1 left,
T2 right)
Creates a Pair of appropriate type.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Iterable<Pair<T,T>> |
Pair.adjacents(Iterable<T> iterable)
Returns an iterator that iterates over (i, i + 1) pairs in an iterable.
|
static <T> Iterable<Pair<T,T>> |
Pair.firstAnd(Iterable<T> iterable)
Returns an iterator that iterates over (0, i) pairs in an iterable for
i > 0.
|
static <K,V> Iterable<Pair<K,V>> |
Pair.zip(Iterable<K> ks,
Iterable<V> vs)
Converts two iterables into an iterable of
Pairs. |
static <K,V> List<Pair<K,V>> |
Pair.zip(K[] ks,
V[] vs)
Converts two arrays into a list of
Pairs. |
static <K,V> List<Pair<K,V>> |
Pair.zip(List<K> ks,
List<V> vs)
Converts two lists into a list of
Pairs,
whose length is the lesser of the lengths of the
source lists. |
static <K,V> List<Pair<K,V>> |
Pair.zip(List<K> ks,
List<V> vs,
boolean strict)
Converts two lists into a list of
Pairs. |
| Modifier and Type | Method and Description |
|---|---|
int |
Pair.compareTo(Pair<T1,T2> that) |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
Pair.toMap(Collection<Pair<K,V>> pairs)
Converts a collection of Pairs into a Map.
|
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.