| 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.interpreter |
Provides an implementation of relational expressions using an interpreter.
|
| 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.plan.hep |
Provides a heuristic planner implementation for the interfaces in
org.apache.calcite.plan. |
| org.apache.calcite.plan.volcano |
Optimizes relational expressions.
|
| org.apache.calcite.prepare |
Preparation of queries (parsing, planning and implementation).
|
| org.apache.calcite.rel |
Defines relational expressions.
|
| org.apache.calcite.rel.core |
Defines core relational expressions.
|
| org.apache.calcite.rel.logical |
Defines logical relational expressions.
|
| org.apache.calcite.rel.metadata |
Defines metadata interfaces and utilities for relational
expressions.
|
| org.apache.calcite.rel.rules |
Provides a core set of planner rules.
|
| org.apache.calcite.schema |
Schema SPI.
|
| 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.
|
| org.apache.calcite.util.mapping |
Support for algebraic maps.
|
| Modifier and Type | Method and Description |
|---|---|
EnumerableAggregate |
EnumerableAggregate.copy(RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls) |
EnumerableCorrelate |
EnumerableCorrelate.copy(RelTraitSet traitSet,
RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
SemiJoinType joinType) |
| Modifier and Type | Method and Description |
|---|---|
EnumerableAggregate |
EnumerableAggregate.copy(RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls) |
| Constructor and Description |
|---|
EnumerableAggregate(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode child,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls) |
EnumerableCorrelate(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
SemiJoinType joinType) |
| Constructor and Description |
|---|
EnumerableAggregate(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode child,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls) |
| Modifier and Type | Method and Description |
|---|---|
JdbcRules.JdbcAggregate |
JdbcRules.JdbcAggregate.copy(RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls) |
| Modifier and Type | Method and Description |
|---|---|
JdbcRules.JdbcAggregate |
JdbcRules.JdbcAggregate.copy(RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls) |
| Constructor and Description |
|---|
JdbcRules.JdbcAggregate(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls) |
| Constructor and Description |
|---|
JdbcRules.JdbcAggregate(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls) |
| Modifier and Type | Method and Description |
|---|---|
Bindables.BindableAggregate |
Bindables.BindableAggregate.copy(RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls) |
| Modifier and Type | Method and Description |
|---|---|
Bindables.BindableAggregate |
Bindables.BindableAggregate.copy(RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls) |
| Constructor and Description |
|---|
Bindables.BindableAggregate(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls) |
| Constructor and Description |
|---|
Bindables.BindableAggregate(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls) |
| Modifier and Type | Field and Description |
|---|---|
ImmutableBitSet |
Lattice.Tile.bitSet |
ImmutableBitSet |
TileKey.dimensions |
| Modifier and Type | Method and Description |
|---|---|
ImmutableBitSet |
Lattice.Measure.argBitSet()
Returns the set of distinct argument ordinals.
|
ImmutableBitSet |
Lattice.Tile.bitSet() |
| 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.
|
String |
Lattice.sql(ImmutableBitSet groupSet,
List<Lattice.Measure> aggCallList) |
| Constructor and Description |
|---|
TileKey(Lattice lattice,
ImmutableBitSet dimensions,
com.google.common.collect.ImmutableList<Lattice.Measure> measures)
Creates a TileKey.
|
| Modifier and Type | Method and Description |
|---|---|
static ImmutableBitSet |
RelOptUtil.InputFinder.bits(List<RexNode> exprs,
RexNode expr)
Returns a bit set describing the inputs used by a collection of
project expressions and an optional condition.
|
static ImmutableBitSet |
RelOptUtil.InputFinder.bits(RexNode node)
Returns a bit set describing the inputs used by an expression.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
static boolean |
Strong.is(RexNode node,
ImmutableBitSet nullColumns)
Returns whether the analyzed expression will return null if a given set
of input columns are null.
|
boolean |
RelOptAbstractTable.isKey(ImmutableBitSet columns) |
boolean |
RelOptTable.isKey(ImmutableBitSet columns)
Returns whether the given columns are a key or a superset of a unique key
of this table.
|
static Strong |
Strong.of(ImmutableBitSet nullColumns) |
static void |
RelOptUtil.splitFilters(ImmutableBitSet childBitmap,
RexNode predicate,
List<RexNode> pushable,
List<RexNode> notPushable)
Splits a filter into two lists, depending on whether or not the filter
only references its child input
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
HepRelVertex.isKey(ImmutableBitSet columns) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RelSubset.isKey(ImmutableBitSet columns) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RelOptTableImpl.isKey(ImmutableBitSet columns) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableBitSet |
RelInput.getBitSet(String tag) |
| Modifier and Type | Method and Description |
|---|---|
List<ImmutableBitSet> |
RelInput.getBitSetList(String tag) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
AbstractRelNode.isKey(ImmutableBitSet columns) |
boolean |
RelNode.isKey(ImmutableBitSet columns)
Returns whether the result of this relational expression is uniquely
identified by this columns with the given ordinals.
|
| Modifier and Type | Field and Description |
|---|---|
protected ImmutableBitSet |
Aggregate.groupSet |
ImmutableBitSet |
Window.Group.keys |
protected ImmutableBitSet |
Correlate.requiredColumns |
| Modifier and Type | Field and Description |
|---|---|
com.google.common.collect.ImmutableList<ImmutableBitSet> |
Aggregate.groupSets |
| Modifier and Type | Method and Description |
|---|---|
ImmutableBitSet |
Aggregate.getGroupSet()
Returns a bit set of the grouping fields.
|
ImmutableBitSet |
Correlate.getRequiredColumns()
Returns the required columns in left relation required for the correlation
in the right.
|
ImmutableBitSet |
JoinInfo.leftSet() |
ImmutableBitSet |
JoinInfo.rightSet() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<ImmutableBitSet> |
Aggregate.getGroupSets()
Returns the list of grouping sets computed by this Aggregate.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Aggregate |
Aggregate.copy(RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Creates a copy of this aggregate.
|
abstract Correlate |
Correlate.copy(RelTraitSet traitSet,
RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
SemiJoinType joinType) |
RelNode |
RelFactories.AggregateFactory.createAggregate(RelNode child,
boolean indicator,
ImmutableBitSet groupSet,
com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Creates an aggregate.
|
static RelDataType |
Aggregate.deriveRowType(RelDataTypeFactory typeFactory,
RelDataType inputRowType,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Computes the row type of an
Aggregate before it exists. |
static Aggregate.Group |
Aggregate.Group.induce(ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets) |
boolean |
Intersect.isKey(ImmutableBitSet columns) |
boolean |
Minus.isKey(ImmutableBitSet columns) |
boolean |
SetOp.isKey(ImmutableBitSet columns) |
boolean |
TableScan.isKey(ImmutableBitSet columns) |
RelNode |
TableScan.project(ImmutableBitSet fieldsUsed,
Set<RelDataTypeField> extraFields,
RelFactories.ProjectFactory projectFactory)
Projects a subset of the fields of the table, and also asks for "extra"
fields that were not included in the table's official type.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Aggregate |
Aggregate.copy(RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Creates a copy of this aggregate.
|
RelNode |
RelFactories.AggregateFactory.createAggregate(RelNode child,
boolean indicator,
ImmutableBitSet groupSet,
com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Creates an aggregate.
|
static RelDataType |
Aggregate.deriveRowType(RelDataTypeFactory typeFactory,
RelDataType inputRowType,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Computes the row type of an
Aggregate before it exists. |
static Aggregate.Group |
Aggregate.Group.induce(ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets) |
| Constructor and Description |
|---|
Aggregate(RelOptCluster cluster,
RelTraitSet traits,
RelNode child,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Creates an Aggregate.
|
Correlate(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
SemiJoinType joinType)
Creates a Correlate.
|
Window.Group(ImmutableBitSet keys,
boolean isRows,
RexWindowBound lowerBound,
RexWindowBound upperBound,
RelCollation orderKeys,
List<Window.RexWinAggCall> aggCalls) |
| Constructor and Description |
|---|
Aggregate(RelOptCluster cluster,
RelTraitSet traits,
RelNode child,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Creates an Aggregate.
|
| Modifier and Type | Method and Description |
|---|---|
LogicalAggregate |
LogicalAggregate.copy(RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls) |
LogicalCorrelate |
LogicalCorrelate.copy(RelTraitSet traitSet,
RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
SemiJoinType joinType) |
static LogicalAggregate |
LogicalAggregate.create(RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Creates a LogicalAggregate.
|
static LogicalCorrelate |
LogicalCorrelate.create(RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
SemiJoinType joinType)
Creates a LogicalCorrelate.
|
| Modifier and Type | Method and Description |
|---|---|
LogicalAggregate |
LogicalAggregate.copy(RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls) |
static LogicalAggregate |
LogicalAggregate.create(RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Creates a LogicalAggregate.
|
| Constructor and Description |
|---|
LogicalAggregate(RelOptCluster cluster,
RelNode child,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Deprecated.
|
LogicalAggregate(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode child,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Creates a LogicalAggregate.
|
LogicalCorrelate(RelOptCluster cluster,
RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
SemiJoinType joinType)
Deprecated.
|
LogicalCorrelate(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
SemiJoinType joinType)
Creates a LogicalCorrelate.
|
| Constructor and Description |
|---|
LogicalAggregate(RelOptCluster cluster,
RelNode child,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Deprecated.
|
LogicalAggregate(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode child,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Creates a LogicalAggregate.
|
| Modifier and Type | Method and Description |
|---|---|
Set<ImmutableBitSet> |
RelMdUniqueKeys.getUniqueKeys(Aggregate rel,
boolean ignoreNulls) |
Set<ImmutableBitSet> |
BuiltInMetadata.UniqueKeys.getUniqueKeys(boolean ignoreNulls)
Determines the set of unique minimal keys for this expression.
|
Set<ImmutableBitSet> |
RelMdUniqueKeys.getUniqueKeys(Correlate rel,
boolean ignoreNulls) |
Set<ImmutableBitSet> |
RelMdUniqueKeys.getUniqueKeys(Filter rel,
boolean ignoreNulls) |
Set<ImmutableBitSet> |
RelMdUniqueKeys.getUniqueKeys(Join rel,
boolean ignoreNulls) |
Set<ImmutableBitSet> |
RelMdUniqueKeys.getUniqueKeys(Project rel,
boolean ignoreNulls) |
static Set<ImmutableBitSet> |
RelMetadataQuery.getUniqueKeys(RelNode rel)
Returns the
BuiltInMetadata.UniqueKeys.getUniqueKeys(boolean)
statistic. |
Set<ImmutableBitSet> |
RelMdUniqueKeys.getUniqueKeys(RelNode rel,
boolean ignoreNulls) |
static Set<ImmutableBitSet> |
RelMetadataQuery.getUniqueKeys(RelNode rel,
boolean ignoreNulls)
Returns the
BuiltInMetadata.UniqueKeys.getUniqueKeys(boolean)
statistic. |
Set<ImmutableBitSet> |
RelMdUniqueKeys.getUniqueKeys(SemiJoin rel,
boolean ignoreNulls) |
Set<ImmutableBitSet> |
RelMdUniqueKeys.getUniqueKeys(Sort rel,
boolean ignoreNulls) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
RelMdUtil.areColumnsDefinitelyUnique(RelNode rel,
ImmutableBitSet colMask)
Returns true if the columns represented in a bit mask are definitely
known to form a unique column set.
|
static boolean |
RelMdUtil.areColumnsDefinitelyUniqueWhenNullsFiltered(RelNode rel,
ImmutableBitSet colMask)
Returns true if the columns represented in a bit mask are definitely
known to form a unique column set, when nulls have been filtered from
the columns.
|
Boolean |
RelMdColumnUniqueness.areColumnsUnique(Aggregate rel,
ImmutableBitSet columns,
boolean ignoreNulls) |
Boolean |
RelMdColumnUniqueness.areColumnsUnique(Correlate rel,
ImmutableBitSet columns,
boolean ignoreNulls) |
Boolean |
RelMdColumnUniqueness.areColumnsUnique(Exchange rel,
ImmutableBitSet columns,
boolean ignoreNulls) |
Boolean |
RelMdColumnUniqueness.areColumnsUnique(Filter rel,
ImmutableBitSet columns,
boolean ignoreNulls) |
Boolean |
BuiltInMetadata.ColumnUniqueness.areColumnsUnique(ImmutableBitSet columns,
boolean ignoreNulls)
Determines whether a specified set of columns from a specified relational
expression are unique.
|
Boolean |
RelMdColumnUniqueness.areColumnsUnique(Join rel,
ImmutableBitSet columns,
boolean ignoreNulls) |
Boolean |
RelMdColumnUniqueness.areColumnsUnique(Project rel,
ImmutableBitSet columns,
boolean ignoreNulls) |
static Boolean |
RelMetadataQuery.areColumnsUnique(RelNode rel,
ImmutableBitSet columns)
|
Boolean |
RelMdColumnUniqueness.areColumnsUnique(RelNode rel,
ImmutableBitSet columns,
boolean ignoreNulls) |
static Boolean |
RelMetadataQuery.areColumnsUnique(RelNode rel,
ImmutableBitSet columns,
boolean ignoreNulls)
|
Boolean |
RelMdColumnUniqueness.areColumnsUnique(SemiJoin rel,
ImmutableBitSet columns,
boolean ignoreNulls) |
Boolean |
RelMdColumnUniqueness.areColumnsUnique(Sort rel,
ImmutableBitSet columns,
boolean ignoreNulls) |
Double |
RelMdDistinctRowCount.getDistinctRowCount(Aggregate rel,
ImmutableBitSet groupKey,
RexNode predicate) |
Double |
RelMdDistinctRowCount.getDistinctRowCount(Exchange rel,
ImmutableBitSet groupKey,
RexNode predicate) |
Double |
RelMdDistinctRowCount.getDistinctRowCount(Filter rel,
ImmutableBitSet groupKey,
RexNode predicate) |
Double |
BuiltInMetadata.DistinctRowCount.getDistinctRowCount(ImmutableBitSet groupKey,
RexNode predicate)
Estimates the number of rows which would be produced by a GROUP BY on the
set of columns indicated by groupKey, where the input to the GROUP BY has
been pre-filtered by predicate.
|
Double |
RelMdDistinctRowCount.getDistinctRowCount(Join rel,
ImmutableBitSet groupKey,
RexNode predicate) |
Double |
RelMdDistinctRowCount.getDistinctRowCount(Project rel,
ImmutableBitSet groupKey,
RexNode predicate) |
Double |
RelMdDistinctRowCount.getDistinctRowCount(RelNode rel,
ImmutableBitSet groupKey,
RexNode predicate) |
static Double |
RelMetadataQuery.getDistinctRowCount(RelNode rel,
ImmutableBitSet groupKey,
RexNode predicate)
|
Double |
RelMdDistinctRowCount.getDistinctRowCount(SemiJoin rel,
ImmutableBitSet groupKey,
RexNode predicate) |
Double |
RelMdDistinctRowCount.getDistinctRowCount(Sort rel,
ImmutableBitSet groupKey,
RexNode predicate) |
Double |
RelMdDistinctRowCount.getDistinctRowCount(Union rel,
ImmutableBitSet groupKey,
RexNode predicate) |
Double |
RelMdDistinctRowCount.getDistinctRowCount(Values rel,
ImmutableBitSet groupKey,
RexNode predicate) |
static Double |
RelMdUtil.getJoinDistinctRowCount(RelNode joinRel,
JoinRelType joinType,
ImmutableBitSet groupKey,
RexNode predicate,
boolean useMaxNdv)
Computes the number of distinct rows for a set of keys returned from a
join.
|
static Double |
RelMdUtil.getJoinPopulationSize(RelNode joinRel,
ImmutableBitSet groupKey)
Computes the population size for a set of keys returned from a join
|
Double |
RelMdPopulationSize.getPopulationSize(Aggregate rel,
ImmutableBitSet groupKey) |
Double |
RelMdPopulationSize.getPopulationSize(Exchange rel,
ImmutableBitSet groupKey) |
Double |
RelMdPopulationSize.getPopulationSize(Filter rel,
ImmutableBitSet groupKey) |
Double |
BuiltInMetadata.PopulationSize.getPopulationSize(ImmutableBitSet groupKey)
Estimates the distinct row count in the original source for the given
groupKey, ignoring any filtering being applied by the expression. |
Double |
RelMdPopulationSize.getPopulationSize(Join rel,
ImmutableBitSet groupKey) |
Double |
RelMdPopulationSize.getPopulationSize(Project rel,
ImmutableBitSet groupKey) |
Double |
RelMdPopulationSize.getPopulationSize(RelNode rel,
ImmutableBitSet groupKey) |
static Double |
RelMetadataQuery.getPopulationSize(RelNode rel,
ImmutableBitSet groupKey)
Returns the
BuiltInMetadata.PopulationSize.getPopulationSize(org.apache.calcite.util.ImmutableBitSet)
statistic. |
Double |
RelMdPopulationSize.getPopulationSize(SemiJoin rel,
ImmutableBitSet groupKey) |
Double |
RelMdPopulationSize.getPopulationSize(Sort rel,
ImmutableBitSet groupKey) |
Double |
RelMdPopulationSize.getPopulationSize(Union rel,
ImmutableBitSet groupKey) |
Double |
RelMdPopulationSize.getPopulationSize(Values rel,
ImmutableBitSet groupKey) |
static void |
RelMdUtil.setAggChildKeys(ImmutableBitSet groupKey,
Aggregate aggRel,
ImmutableBitSet.Builder childKey)
Takes a bitmap representing a set of input references and extracts the
ones that reference the group by columns in an aggregate.
|
static void |
RelMdUtil.setLeftRightBitmaps(ImmutableBitSet groupKey,
ImmutableBitSet.Builder leftMask,
ImmutableBitSet.Builder rightMask,
int nFieldsOnLeft)
Separates a bit-mask representing a join into masks representing the left
and right inputs into the join.
|
static void |
RelMdUtil.splitCols(List<RexNode> projExprs,
ImmutableBitSet groupKey,
ImmutableBitSet.Builder baseCols,
ImmutableBitSet.Builder projCols)
Forms two bitmaps by splitting the columns in a bitmap according to
whether or not the column references the child input or is an expression
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableBitSet |
LoptMultiJoin.getFactorsRefByFactor(int factIdx) |
ImmutableBitSet |
LoptMultiJoin.getFactorsRefByJoinFilter(RexNode joinFilter) |
ImmutableBitSet |
LoptMultiJoin.getFieldsRefByJoinFilter(RexNode joinFilter) |
ImmutableBitSet |
LoptMultiJoin.getOuterJoinFactors(int factIdx) |
ImmutableBitSet |
LoptMultiJoin.getProjFields(int factIdx) |
| Modifier and Type | Method and Description |
|---|---|
List<ImmutableBitSet> |
MultiJoin.getProjFields() |
| 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 |
|---|---|
boolean |
Statistic.isKey(ImmutableBitSet columns)
Returns whether the given set of columns is a unique key, or a superset
of a unique key, of the table.
|
| Modifier and Type | Method and Description |
|---|---|
static Statistic |
Statistics.of(double rowCount,
List<ImmutableBitSet> keys)
Returns a statistic with a given row count and set of unique keys.
|
static Statistic |
Statistics.of(double rowCount,
List<ImmutableBitSet> keys,
List<RelCollation> collations)
Returns a statistic with a given row count and set of unique keys.
|
| Modifier and Type | Field and Description |
|---|---|
ImmutableBitSet |
AggregatingSelectScope.groupSet |
| Modifier and Type | Field and Description |
|---|---|
com.google.common.collect.ImmutableList<ImmutableBitSet> |
AggregatingSelectScope.groupSets |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.ImmutableList<ImmutableBitSet> |
SqlValidatorUtil.cube(List<ImmutableBitSet> bitSets)
Computes the cube of bit sets.
|
static com.google.common.collect.ImmutableList<ImmutableBitSet> |
SqlValidatorUtil.rollup(List<ImmutableBitSet> bitSets)
Computes the rollup of bit sets.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
SqlValidatorUtil.analyzeGroupItem(SqlValidatorScope scope,
List<SqlNode> groupExprs,
Map<Integer,Integer> groupExprProjection,
com.google.common.collect.ImmutableList.Builder<com.google.common.collect.ImmutableList<ImmutableBitSet>> topBuilder,
SqlNode groupExpr)
Analyzes an expression in a GROUP BY clause.
|
static com.google.common.collect.ImmutableList<ImmutableBitSet> |
SqlValidatorUtil.cube(List<ImmutableBitSet> bitSets)
Computes the cube of bit sets.
|
static com.google.common.collect.ImmutableList<ImmutableBitSet> |
SqlValidatorUtil.rollup(List<ImmutableBitSet> bitSets)
Computes the rollup of bit sets.
|
| Modifier and Type | Method and Description |
|---|---|
protected RelNode |
SqlToRelConverter.createAggregate(SqlToRelConverter.Blackboard bb,
boolean indicator,
ImmutableBitSet groupSet,
com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Creates an Aggregate.
|
| Modifier and Type | Field and Description |
|---|---|
static Comparator<ImmutableBitSet> |
ImmutableBitSet.COMPARATOR
Compares bit sets topologically, so that enclosing bit sets come first,
using natural ordering to break ties.
|
static com.google.common.base.Function<? super BitSet,ImmutableBitSet> |
ImmutableBitSet.FROM_BIT_SET |
static com.google.common.collect.Ordering<ImmutableBitSet> |
ImmutableBitSet.ORDERING |
| Modifier and Type | Method and Description |
|---|---|
ImmutableBitSet |
ImmutableBitSet.Builder.build()
Builds an ImmutableBitSet from the contents of this Builder.
|
ImmutableBitSet |
ImmutableBitSet.Builder.build(ImmutableBitSet bitSet)
Builds an ImmutableBitSet from the contents of this Builder, using
an existing ImmutableBitSet if it happens to have the same contents.
|
ImmutableBitSet |
ImmutableBitSet.clear(int i)
Returns a bit set the same as this but with a given bit cleared.
|
ImmutableBitSet |
ImmutableBitSet.except(ImmutableBitSet that)
Returns a bit set with all the bits in this set that are not in
another.
|
ImmutableBitSet |
ImmutableBitSet.intersect(ImmutableBitSet that)
Returns a bit set with all the bits set in both this set and in
another.
|
static ImmutableBitSet |
ImmutableBitSet.of()
Creates an ImmutableBitSet with no bits.
|
static ImmutableBitSet |
ImmutableBitSet.of(ImmutableIntList bits)
Creates an ImmutableBitSet with given bits set.
|
static ImmutableBitSet |
ImmutableBitSet.of(int... bits) |
static ImmutableBitSet |
ImmutableBitSet.of(Iterable<Integer> bits) |
static ImmutableBitSet |
ImmutableBitSet.range(int toIndex)
Creates an ImmutableBitSet with bits between 0 and
toIndex set. |
static ImmutableBitSet |
ImmutableBitSet.range(int fromIndex,
int toIndex)
Creates an ImmutableBitSet with bits from
fromIndex (inclusive) to
specified toIndex (exclusive) set to true. |
ImmutableBitSet |
ImmutableBitSet.set(int i)
Returns a bit set the same as this but with a given bit set.
|
ImmutableBitSet |
ImmutableBitSet.union(ImmutableBitSet other)
Returns the union of this bit set with another.
|
static ImmutableBitSet |
ImmutableBitSet.union(Iterable<? extends ImmutableBitSet> sets)
Returns the union of a number of bit sets.
|
static ImmutableBitSet |
ImmutableBitSet.valueOf(long... longs)
Returns a new immutable bit set containing all the bits in the given long
array.
|
static ImmutableBitSet |
ImmutableBitSet.valueOf(LongBuffer longs)
Returns a new immutable bit set containing all the bits in the given long
buffer.
|
| Modifier and Type | Method and Description |
|---|---|
static SortedMap<Integer,ImmutableBitSet> |
ImmutableBitSet.closure(SortedMap<Integer,ImmutableBitSet> equivalence)
Computes the closure of a map from integers to bits.
|
Iterable<ImmutableBitSet> |
ImmutableBitSet.powerSet()
Computes the power set (set of all sets) of this bit set.
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableBitSet.Builder |
ImmutableBitSet.Builder.addAll(ImmutableBitSet bitSet)
Sets all bits in a given bit set.
|
ImmutableBitSet |
ImmutableBitSet.Builder.build(ImmutableBitSet bitSet)
Builds an ImmutableBitSet from the contents of this Builder, using
an existing ImmutableBitSet if it happens to have the same contents.
|
static ImmutableBitSet.Builder |
ImmutableBitSet.builder(ImmutableBitSet bitSet) |
int |
ImmutableBitSet.compareTo(ImmutableBitSet o)
Compares this ImmutableBitSet with another, using a lexicographic
ordering.
|
static boolean |
BitSets.contains(BitSet set0,
ImmutableBitSet set1)
Returns true if all bits set in the second parameter are also set in the
first.
|
boolean |
ImmutableBitSet.contains(ImmutableBitSet set1)
Returns true if all bits set in the second parameter are also set in the
first.
|
ImmutableBitSet |
ImmutableBitSet.except(ImmutableBitSet that)
Returns a bit set with all the bits in this set that are not in
another.
|
ImmutableBitSet |
ImmutableBitSet.intersect(ImmutableBitSet that)
Returns a bit set with all the bits set in both this set and in
another.
|
void |
ImmutableBitSet.Builder.intersect(ImmutableBitSet that) |
boolean |
ImmutableBitSet.intersects(ImmutableBitSet set)
Returns true if the specified
ImmutableBitSet has any bits set to
true that are also set to true in this
ImmutableBitSet. |
ImmutableBitSet.Builder |
ImmutableBitSet.Builder.removeAll(ImmutableBitSet bitSet)
Clears all bits in a given bit set.
|
static Iterable<Integer> |
BitSets.toIter(ImmutableBitSet bitSet) |
ImmutableBitSet |
ImmutableBitSet.union(ImmutableBitSet other)
Returns the union of this bit set with another.
|
boolean |
ImmutableBitSet.Builder.wouldEqual(ImmutableBitSet bitSet)
Returns whether the bit set that would be created by this Builder would
equal a given bit set.
|
| Modifier and Type | Method and Description |
|---|---|
static SortedMap<Integer,ImmutableBitSet> |
ImmutableBitSet.closure(SortedMap<Integer,ImmutableBitSet> equivalence)
Computes the closure of a map from integers to bits.
|
static ImmutableBitSet |
ImmutableBitSet.union(Iterable<? extends ImmutableBitSet> sets)
Returns the union of a number of bit sets.
|
| Constructor and Description |
|---|
ImmutableBitSet.Builder(ImmutableBitSet bitSet) |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableBitSet |
Mappings.apply(Mapping mapping,
ImmutableBitSet bitSet)
Applies a mapping to an
ImmutableBitSet. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableBitSet |
Mappings.apply(Mapping mapping,
ImmutableBitSet bitSet)
Applies a mapping to an
ImmutableBitSet. |
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.