| Package | Description |
|---|---|
| org.apache.calcite.adapter.enumerable |
Query optimizer rules for Java calling convention.
|
| org.apache.calcite.interpreter |
Provides an implementation of relational expressions using an interpreter.
|
| org.apache.calcite.jdbc |
JDBC driver for Calcite.
|
| org.apache.calcite.rel |
Defines relational expressions.
|
| org.apache.calcite.rel.core |
Defines core relational expressions.
|
| org.apache.calcite.rel.metadata |
Defines metadata interfaces and utilities for relational
expressions.
|
| org.apache.calcite.rel.mutable |
Defines mutable relational expressions.
|
| org.apache.calcite.rel.rules |
Provides a core set of planner rules.
|
| org.apache.calcite.schema |
Schema SPI.
|
| org.apache.calcite.schema.impl |
Utilities to help implement Calcite's SPIs.
|
| org.apache.calcite.util |
Provides utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
static EnumerableMergeJoin |
EnumerableMergeJoin.create(RelNode left,
RelNode right,
RexLiteral condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys,
JoinRelType joinType) |
static EnumerableSemiJoin |
EnumerableSemiJoin.create(RelNode left,
RelNode right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys)
Creates an EnumerableSemiJoin.
|
static EnumerableJoin |
EnumerableJoin.create(RelNode left,
RelNode right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys,
JoinRelType joinType,
Set<String> variablesStopped)
Deprecated.
|
static EnumerableJoin |
EnumerableJoin.create(RelNode left,
RelNode right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys,
Set<CorrelationId> variablesSet,
JoinRelType joinType)
Creates an EnumerableJoin.
|
| Constructor and Description |
|---|
EnumerableJoin(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys,
JoinRelType joinType,
Set<String> variablesStopped)
Deprecated.
|
EnumerableJoin(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys,
Set<CorrelationId> variablesSet,
JoinRelType joinType)
Creates an EnumerableJoin.
|
EnumerableMergeJoin(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys,
JoinRelType joinType,
Set<String> variablesStopped)
Deprecated.
|
EnumerableMergeJoin(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys,
Set<CorrelationId> variablesSet,
JoinRelType joinType) |
EnumerableSemiJoin(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys)
Creates an EnumerableSemiJoin.
|
| Modifier and Type | Field and Description |
|---|---|
ImmutableIntList |
Bindables.BindableTableScan.projects |
| Modifier and Type | Method and Description |
|---|---|
(package private) static TableScanNode |
TableScanNode.create(Compiler compiler,
TableScan rel,
com.google.common.collect.ImmutableList<RexNode> filters,
ImmutableIntList projects)
Creates a TableScanNode.
|
private static TableScanNode |
TableScanNode.createEnumerable(Compiler compiler,
TableScan rel,
Enumerable<Row> enumerable,
ImmutableIntList acceptedProjects,
List<RexNode> rejectedFilters,
ImmutableIntList rejectedProjects) |
private static TableScanNode |
TableScanNode.createFilterable(Compiler compiler,
TableScan rel,
com.google.common.collect.ImmutableList<RexNode> filters,
ImmutableIntList projects,
FilterableTable filterableTable) |
private static TableScanNode |
TableScanNode.createProjectableFilterable(Compiler compiler,
TableScan rel,
com.google.common.collect.ImmutableList<RexNode> filters,
ImmutableIntList projects,
ProjectableFilterableTable pfTable) |
private static TableScanNode |
TableScanNode.createQueryable(Compiler compiler,
TableScan rel,
com.google.common.collect.ImmutableList<RexNode> filters,
ImmutableIntList projects,
QueryableTable queryableTable) |
private static TableScanNode |
TableScanNode.createScannable(Compiler compiler,
TableScan rel,
com.google.common.collect.ImmutableList<RexNode> filters,
ImmutableIntList projects,
ScannableTable scannableTable) |
| Constructor and Description |
|---|
BindableTableScan(RelOptCluster cluster,
RelTraitSet traitSet,
RelOptTable table,
com.google.common.collect.ImmutableList<RexNode> filters,
ImmutableIntList projects)
Creates a BindableTableScan.
|
| Modifier and Type | Field and Description |
|---|---|
ImmutableIntList |
CalcitePrepare.AnalyzeViewResult.columnMapping |
| Constructor and Description |
|---|
AnalyzeViewResult(CalcitePrepareImpl prepare,
SqlValidator validator,
String sql,
SqlNode sqlNode,
RelDataType rowType,
RelRoot root,
Table table,
com.google.common.collect.ImmutableList<String> tablePath,
RexNode constraint,
ImmutableIntList columnMapping,
boolean modifiable) |
| Modifier and Type | Field and Description |
|---|---|
private static ImmutableIntList |
RelDistributions.EMPTY |
private ImmutableIntList |
RelDistributions.RelDistributionImpl.keys |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
RelCollations.contains(List<RelCollation> collations,
ImmutableIntList keys)
Returns whether one of a list of collations indicates that the collection
is sorted on the given list of keys.
|
| Constructor and Description |
|---|
RelDistributionImpl(RelDistribution.Type type,
ImmutableIntList keys) |
| Modifier and Type | Field and Description |
|---|---|
ImmutableIntList |
EquiJoin.leftKeys |
ImmutableIntList |
JoinInfo.leftKeys |
ImmutableIntList |
EquiJoin.rightKeys |
ImmutableIntList |
JoinInfo.rightKeys |
| Modifier and Type | Method and Description |
|---|---|
ImmutableIntList |
EquiJoin.getLeftKeys() |
static ImmutableIntList |
Window.getProjectOrdinals(List<RexNode> exprs) |
ImmutableIntList |
EquiJoin.getRightKeys() |
ImmutableIntList |
TableScan.identity()
Returns an identity projection.
|
static ImmutableIntList |
TableScan.identity(RelOptTable table)
Returns an identity projection for the given table.
|
| Modifier and Type | Method and Description |
|---|---|
List<ImmutableIntList> |
JoinInfo.keys() |
| Modifier and Type | Method and Description |
|---|---|
static SemiJoin |
SemiJoin.create(RelNode left,
RelNode right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys)
Creates a SemiJoin.
|
static JoinInfo |
JoinInfo.of(ImmutableIntList leftKeys,
ImmutableIntList rightKeys)
Creates an equi-join.
|
| Constructor and Description |
|---|
EquiJoin(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys,
JoinRelType joinType,
Set<String> variablesStopped)
Deprecated.
|
EquiJoin(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys,
Set<CorrelationId> variablesSet,
JoinRelType joinType)
Creates an EquiJoin.
|
EquiJoinInfo(ImmutableIntList leftKeys,
ImmutableIntList rightKeys) |
JoinInfo(ImmutableIntList leftKeys,
ImmutableIntList rightKeys)
Creates a JoinInfo.
|
NonEquiJoinInfo(ImmutableIntList leftKeys,
ImmutableIntList rightKeys,
RexNode remaining) |
SemiJoin(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode left,
RelNode right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys)
Creates a SemiJoin.
|
| Modifier and Type | Method and Description |
|---|---|
static List<RelCollation> |
RelMdCollation.mergeJoin(RelMetadataQuery mq,
RelNode left,
RelNode right,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys)
Helper method to determine a
Join's collation assuming that it
uses a merge-join algorithm. |
| Modifier and Type | Field and Description |
|---|---|
ImmutableIntList |
MutableSemiJoin.leftKeys |
ImmutableIntList |
MutableSemiJoin.rightKeys |
| Modifier and Type | Method and Description |
|---|---|
static MutableSemiJoin |
MutableSemiJoin.of(RelDataType rowType,
MutableRel left,
MutableRel right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys)
Creates a MutableSemiJoin.
|
| Constructor and Description |
|---|
MutableSemiJoin(RelDataType rowType,
MutableRel left,
MutableRel right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys) |
| Modifier and Type | Field and Description |
|---|---|
com.google.common.collect.ImmutableMap<Integer,ImmutableIntList> |
MultiJoin.joinFieldRefCountsMap |
| Modifier and Type | Method and Description |
|---|---|
private com.google.common.collect.ImmutableMap<Integer,ImmutableIntList> |
JoinToMultiJoinRule.addOnJoinFieldRefCounts(List<RelNode> multiJoinInputs,
int nTotalFields,
RexNode joinCondition,
List<int[]> origJoinFieldRefCounts)
Adds on to the existing join condition reference counts the references
from the new join condition.
|
com.google.common.collect.ImmutableMap<Integer,ImmutableIntList> |
MultiJoin.getJoinFieldRefCountsMap() |
| Modifier and Type | Method and Description |
|---|---|
private LoptJoinTree |
LoptOptimizeJoinRule.createReplacementJoin(RelBuilder relBuilder,
LoptMultiJoin multiJoin,
LoptSemiJoinOptimizer semiJoinOpt,
LoptJoinTree currJoinTree,
int leftIdx,
int factorToAdd,
ImmutableIntList newKeys,
Integer[] replacementKeys,
List<RexNode> filtersToAdd)
Creates a replacement join, projecting either dummy columns or
replacement keys from the factor that doesn't actually need to be joined.
|
| Constructor and Description |
|---|
EquiJoin(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys,
JoinRelType joinType,
Set<String> variablesStopped)
Deprecated.
|
| Constructor and Description |
|---|
MultiJoin(RelOptCluster cluster,
List<RelNode> inputs,
RexNode joinFilter,
RelDataType rowType,
boolean isFullOuterJoin,
List<RexNode> outerJoinConditions,
List<JoinRelType> joinTypes,
List<ImmutableBitSet> projFields,
com.google.common.collect.ImmutableMap<Integer,ImmutableIntList> joinFieldRefCountsMap,
RexNode postJoinFilter)
Constructs a MultiJoin.
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableIntList |
ModifiableView.getColumnMapping()
Returns the column mapping onto another table.
|
| Modifier and Type | Field and Description |
|---|---|
private ImmutableIntList |
ModifiableViewTable.columnMapping |
ImmutableIntList |
StarTable.fieldCounts
Number of fields in each table's row type.
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableIntList |
ModifiableViewTable.getColumnMapping() |
private static ImmutableIntList |
ModifiableViewTable.getNewColumnMapping(Table underlying,
ImmutableIntList oldColumnMapping,
List<RelDataTypeField> extendedColumns,
RelDataTypeFactory typeFactory)
Creates a mapping from the view index to the index in the underlying table.
|
| Modifier and Type | Method and Description |
|---|---|
protected ModifiableViewTable |
ModifiableViewTable.extend(Table extendedTable,
RelProtoDataType protoRowType,
ImmutableIntList newColumnMapping) |
private static ImmutableIntList |
ModifiableViewTable.getNewColumnMapping(Table underlying,
ImmutableIntList oldColumnMapping,
List<RelDataTypeField> extendedColumns,
RelDataTypeFactory typeFactory)
Creates a mapping from the view index to the index in the underlying table.
|
| Constructor and Description |
|---|
ModifiableViewTable(Type elementType,
RelProtoDataType rowType,
String viewSql,
List<String> schemaPath,
List<String> viewPath,
Table table,
Path tablePath,
RexNode constraint,
ImmutableIntList columnMapping)
Creates a ModifiableViewTable.
|
| Modifier and Type | Class and Description |
|---|---|
private static class |
ImmutableIntList.EmptyImmutableIntList
Special sub-class of
ImmutableIntList that is always
empty and has only one instance. |
| Modifier and Type | Field and Description |
|---|---|
private static ImmutableIntList |
ImmutableIntList.EMPTY |
| Modifier and Type | Method and Description |
|---|---|
ImmutableIntList |
ImmutableIntList.append(int element)
Returns a copy of this list with one element added.
|
ImmutableIntList |
ImmutableIntList.append(Integer e) |
ImmutableIntList |
IntList.asImmutable()
Deprecated.
|
private static ImmutableIntList |
ImmutableIntList.copyFromCollection(Collection<? extends Number> list) |
static ImmutableIntList |
ImmutableIntList.copyOf(Iterable<? extends Number> list)
Creates an ImmutableIntList from an iterable of
Number. |
static ImmutableIntList |
ImmutableIntList.copyOf(Iterator<? extends Number> list)
Creates an ImmutableIntList from an iterator of
Number. |
static ImmutableIntList |
ImmutableIntList.copyOf(Number... numbers)
Creates an ImmutableIntList from an array of
Number. |
static ImmutableIntList |
ImmutableIntList.identity(int count)
Returns the identity list [0, ..., count - 1].
|
static ImmutableIntList |
ImmutableIntList.of()
Returns an empty ImmutableIntList.
|
static ImmutableIntList |
ImmutableIntList.of(int... ints)
Creates an ImmutableIntList from an array of
int. |
| Modifier and Type | Method and Description |
|---|---|
ImmutableBitSet.Builder |
ImmutableBitSet.Builder.addAll(ImmutableIntList integers)
Sets all bits in a given list of
ints. |
static ImmutableBitSet |
ImmutableBitSet.of(ImmutableIntList bits)
Creates an ImmutableBitSet with given bits set.
|
static BitSet |
BitSets.of(ImmutableIntList bits)
Creates a BitSet with given bits set.
|
static void |
BitSets.populate(BitSet bitSet,
ImmutableIntList list)
Populates a
BitSet from an
ImmutableIntList. |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.