Uses of Class
org.apache.calcite.util.ImmutableBitSet
-
Packages that use ImmutableBitSet Package Description org.apache.calcite.adapter.druid Query provider based on a Druid database.org.apache.calcite.adapter.elasticsearch Query provider based on an Elasticsearch2 DB.org.apache.calcite.adapter.enumerable Query optimizer rules for Java calling convention.org.apache.calcite.adapter.geode.rel Query provider based on Apache Geode (Gemfire) In Memory Data Gridorg.apache.calcite.adapter.jdbc Query provider based on a JDBC data source.org.apache.calcite.adapter.mongodb Query provider based on a MongoDB database.org.apache.calcite.adapter.pig Pig query provider.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.prepare Preparation of queries (parsing, planning and implementation).org.apache.calcite.profile Utilities to analyze data sets.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.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.sql.validate SQL validation.org.apache.calcite.sql2rel Translates a SQL parse tree to relational expression.org.apache.calcite.tools Provides utility classes.org.apache.calcite.util Provides utility classes.org.apache.calcite.util.mapping Support for algebraic maps. -
-
Uses of ImmutableBitSet in org.apache.calcite.adapter.druid
Methods in org.apache.calcite.adapter.druid with parameters of type ImmutableBitSet Modifier and Type Method Description protected static Pair<java.util.List<DimensionSpec>,java.util.List<VirtualColumn>>
DruidQuery. computeProjectGroupSet(Project projectNode, ImmutableBitSet groupSet, RelDataType inputRowType, DruidQuery druidQuery)
Computes the project group set.private DruidQuery.JsonLimit
DruidQuery. computeSort(java.lang.Integer fetch, java.util.List<java.lang.Integer> collationIndexes, java.util.List<RelFieldCollation.Direction> collationDirections, ImmutableBitSet numericCollationIndexes, java.util.List<java.lang.String> queryOutputFieldNames)
protected DruidQuery.QuerySpec
DruidQuery. getQuery(RelDataType rowType, Filter filter, Project project, ImmutableBitSet groupSet, java.util.List<AggregateCall> aggCalls, java.util.List<java.lang.String> aggNames, java.util.List<java.lang.Integer> collationIndexes, java.util.List<RelFieldCollation.Direction> collationDirections, ImmutableBitSet numericCollationIndexes, java.lang.Integer fetch, Project postProject, Filter havingFilter)
-
Uses of ImmutableBitSet in org.apache.calcite.adapter.elasticsearch
Methods in org.apache.calcite.adapter.elasticsearch with parameters of type ImmutableBitSet Modifier and Type Method Description Aggregate
ElasticsearchAggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Method parameters in org.apache.calcite.adapter.elasticsearch with type arguments of type ImmutableBitSet Modifier and Type Method Description Aggregate
ElasticsearchAggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Constructors in org.apache.calcite.adapter.elasticsearch with parameters of type ImmutableBitSet Constructor Description ElasticsearchAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates a ElasticsearchAggregateConstructor parameters in org.apache.calcite.adapter.elasticsearch with type arguments of type ImmutableBitSet Constructor Description ElasticsearchAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates a ElasticsearchAggregate -
Uses of ImmutableBitSet in org.apache.calcite.adapter.enumerable
Methods in org.apache.calcite.adapter.enumerable that return types with arguments of type ImmutableBitSet Modifier and Type Method Description java.util.List<ImmutableBitSet>
AggContext. groupSets()
Returns the grouping sets we are aggregating on.java.util.List<ImmutableBitSet>
EnumerableAggregate.AggContextImpl. groupSets()
Methods in org.apache.calcite.adapter.enumerable with parameters of type ImmutableBitSet Modifier and Type Method Description EnumerableAggregate
EnumerableAggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
EnumerableCorrelate
EnumerableCorrelate. copy(RelTraitSet traitSet, RelNode left, RelNode right, CorrelationId correlationId, ImmutableBitSet requiredColumns, SemiJoinType joinType)
Method parameters in org.apache.calcite.adapter.enumerable with type arguments of type ImmutableBitSet Modifier and Type Method Description EnumerableAggregate
EnumerableAggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Constructors in org.apache.calcite.adapter.enumerable with parameters of type ImmutableBitSet Constructor Description EnumerableAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode child, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
EnumerableCorrelate(RelOptCluster cluster, RelTraitSet traits, RelNode left, RelNode right, CorrelationId correlationId, ImmutableBitSet requiredColumns, SemiJoinType joinType)
Constructor parameters in org.apache.calcite.adapter.enumerable with type arguments of type ImmutableBitSet Constructor Description EnumerableAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode child, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
-
Uses of ImmutableBitSet in org.apache.calcite.adapter.geode.rel
Methods in org.apache.calcite.adapter.geode.rel with parameters of type ImmutableBitSet Modifier and Type Method Description Aggregate
GeodeAggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Method parameters in org.apache.calcite.adapter.geode.rel with type arguments of type ImmutableBitSet Modifier and Type Method Description Aggregate
GeodeAggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Constructors in org.apache.calcite.adapter.geode.rel with parameters of type ImmutableBitSet Constructor Description GeodeAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates a GeodeAggregate.Constructor parameters in org.apache.calcite.adapter.geode.rel with type arguments of type ImmutableBitSet Constructor Description GeodeAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates a GeodeAggregate. -
Uses of ImmutableBitSet in org.apache.calcite.adapter.jdbc
Methods in org.apache.calcite.adapter.jdbc with parameters of type ImmutableBitSet Modifier and Type Method Description JdbcRules.JdbcAggregate
JdbcRules.JdbcAggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Method parameters in org.apache.calcite.adapter.jdbc with type arguments of type ImmutableBitSet Modifier and Type Method Description JdbcRules.JdbcAggregate
JdbcRules.JdbcAggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Constructors in org.apache.calcite.adapter.jdbc with parameters of type ImmutableBitSet Constructor Description JdbcAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Constructor parameters in org.apache.calcite.adapter.jdbc with type arguments of type ImmutableBitSet Constructor Description JdbcAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
-
Uses of ImmutableBitSet in org.apache.calcite.adapter.mongodb
Methods in org.apache.calcite.adapter.mongodb with parameters of type ImmutableBitSet Modifier and Type Method Description Aggregate
MongoAggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Method parameters in org.apache.calcite.adapter.mongodb with type arguments of type ImmutableBitSet Modifier and Type Method Description Aggregate
MongoAggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Constructors in org.apache.calcite.adapter.mongodb with parameters of type ImmutableBitSet Constructor Description MongoAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode child, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Constructor parameters in org.apache.calcite.adapter.mongodb with type arguments of type ImmutableBitSet Constructor Description MongoAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode child, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
-
Uses of ImmutableBitSet in org.apache.calcite.adapter.pig
Methods in org.apache.calcite.adapter.pig with parameters of type ImmutableBitSet Modifier and Type Method Description Aggregate
PigAggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
RelNode
PigRelFactories.PigAggregateFactory. createAggregate(RelNode input, boolean indicator, ImmutableBitSet groupSet, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Method parameters in org.apache.calcite.adapter.pig with type arguments of type ImmutableBitSet Modifier and Type Method Description Aggregate
PigAggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
RelNode
PigRelFactories.PigAggregateFactory. createAggregate(RelNode input, boolean indicator, ImmutableBitSet groupSet, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Constructors in org.apache.calcite.adapter.pig with parameters of type ImmutableBitSet Constructor Description PigAggregate(RelOptCluster cluster, RelTraitSet traits, RelNode child, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates a PigAggregate.Constructor parameters in org.apache.calcite.adapter.pig with type arguments of type ImmutableBitSet Constructor Description PigAggregate(RelOptCluster cluster, RelTraitSet traits, RelNode child, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates a PigAggregate. -
Uses of ImmutableBitSet in org.apache.calcite.interpreter
Fields in org.apache.calcite.interpreter declared as ImmutableBitSet Modifier and Type Field Description private ImmutableBitSet
AggregateNode.Grouping. grouping
private ImmutableBitSet
AggregateNode. unionGroups
Methods in org.apache.calcite.interpreter with parameters of type ImmutableBitSet Modifier and Type Method Description Bindables.BindableAggregate
Bindables.BindableAggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Method parameters in org.apache.calcite.interpreter with type arguments of type ImmutableBitSet Modifier and Type Method Description Bindables.BindableAggregate
Bindables.BindableAggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Constructors in org.apache.calcite.interpreter with parameters of type ImmutableBitSet Constructor Description BindableAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Grouping(ImmutableBitSet grouping)
Constructor parameters in org.apache.calcite.interpreter with type arguments of type ImmutableBitSet Constructor Description BindableAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
-
Uses of ImmutableBitSet in org.apache.calcite.materialize
Fields in org.apache.calcite.materialize declared as ImmutableBitSet Modifier and Type Field Description ImmutableBitSet
Lattice.Tile. bitSet
ImmutableBitSet
TileKey. dimensions
Methods in org.apache.calcite.materialize that return ImmutableBitSet Modifier and Type Method Description ImmutableBitSet
Lattice.Measure. argBitSet()
Returns the set of distinct argument ordinals.ImmutableBitSet
Lattice.Tile. bitSet()
(package private) static ImmutableBitSet
Lattice.Column. toBitSet(java.util.List<Lattice.Column> columns)
Converts a list of columns to a bit set of their ordinals.Methods in org.apache.calcite.materialize with parameters of type ImmutableBitSet Modifier and Type Method Description java.lang.String
Lattice. countSql(ImmutableBitSet groupSet)
Returns a SQL query that counts the number of distinct values of the attributes given ingroupSet
.Pair<CalciteSchema.TableEntry,TileKey>
MaterializationService. defineTile(Lattice lattice, ImmutableBitSet groupSet, java.util.List<Lattice.Measure> measureList, CalciteSchema schema, boolean create, boolean exact)
Defines a tile.Pair<CalciteSchema.TableEntry,TileKey>
MaterializationService. defineTile(Lattice lattice, ImmutableBitSet groupSet, java.util.List<Lattice.Measure> measureList, CalciteSchema schema, boolean create, boolean exact, java.lang.String suggestedTableName, MaterializationService.TableFactory tableFactory)
java.lang.String
Lattice. sql(ImmutableBitSet groupSet, boolean group, java.util.List<Lattice.Measure> aggCallList)
Generates a SQL query to populate a tile of the lattice specified by a given set of columns and measures, optionally grouping.java.lang.String
Lattice. sql(ImmutableBitSet groupSet, java.util.List<Lattice.Measure> aggCallList)
Generates a SQL query to populate a tile of the lattice specified by a given set of columns and measures.Constructors in org.apache.calcite.materialize with parameters of type ImmutableBitSet Constructor Description TileKey(Lattice lattice, ImmutableBitSet dimensions, com.google.common.collect.ImmutableList<Lattice.Measure> measures)
Creates a TileKey. -
Uses of ImmutableBitSet in org.apache.calcite.plan
Methods in org.apache.calcite.plan that return ImmutableBitSet Modifier and Type Method Description static ImmutableBitSet
RelOptUtil.InputFinder. bits(java.util.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.static ImmutableBitSet
RelOptUtil. correlationColumns(CorrelationId id, RelNode rel)
Finds which columns of a correlation variable are used within a relational expression.Methods in org.apache.calcite.plan with parameters of type ImmutableBitSet Modifier and Type Method Description Pair<CalciteSchema.TableEntry,TileKey>
RelOptLattice. getAggregate(RelOptPlanner planner, ImmutableBitSet groupSet, java.util.List<Lattice.Measure> measureList)
Retrieves a materialized table that will satisfy an aggregate query on the star table.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 boolean
Strong. isNotTrue(RexNode node, ImmutableBitSet nullColumns)
Returns whether the analyzed expression will definitely not return true (equivalently, will definitely not return null or false) if all of a given set of input columns are null.static boolean
Strong. isNull(RexNode node, ImmutableBitSet nullColumns)
Returns whether the analyzed expression will definitely return null if all of a given set of input columns are null.(package private) static RelOptUtil.Side
RelOptUtil.Side. of(ImmutableBitSet bitSet, int middle)
static Strong
Strong. of(ImmutableBitSet nullColumns)
Returns a checker that consults a bit set to find out whether particular inputs may be null.static void
RelOptUtil. splitFilters(ImmutableBitSet childBitmap, RexNode predicate, java.util.List<RexNode> pushable, java.util.List<RexNode> notPushable)
Splits a filter into two lists, depending on whether or not the filter only references its child input -
Uses of ImmutableBitSet in org.apache.calcite.prepare
Methods in org.apache.calcite.prepare with parameters of type ImmutableBitSet Modifier and Type Method Description boolean
RelOptTableImpl. isKey(ImmutableBitSet columns)
-
Uses of ImmutableBitSet in org.apache.calcite.profile
Fields in org.apache.calcite.profile declared as ImmutableBitSet Modifier and Type Field Description (package private) ImmutableBitSet
ProfilerImpl.Space. columnOrdinals
(package private) ImmutableBitSet
SimpleProfiler.Space. columnOrdinals
protected static ImmutableBitSet
ProfilerImpl.CompositeCollector. OF
Fields in org.apache.calcite.profile with type parameters of type ImmutableBitSet Modifier and Type Field Description (package private) java.util.Set<ImmutableBitSet>
ProfilerImpl.Space. dependents
(package private) java.util.Set<ImmutableBitSet>
SimpleProfiler.Space. dependents
private java.util.Map<ImmutableBitSet,Profiler.Distribution>
Profiler.Profile. distributionMap
(package private) java.util.Map<ImmutableBitSet,Profiler.Distribution>
ProfilerImpl.Run. distributions
private java.util.List<ImmutableBitSet>
ProfilerImpl.Run. keyOrdinalLists
private java.util.List<ImmutableBitSet>
SimpleProfiler.Run. keyOrdinalLists
(package private) PartiallyOrderedSet<ImmutableBitSet>
ProfilerImpl.Run. keyPoset
(package private) java.util.Set<ImmutableBitSet>
ProfilerImpl.Run. resultSet
Column ordinals that have ever been placed onProfilerImpl.Run.spaceQueue
.(package private) java.util.Deque<ImmutableBitSet>
ProfilerImpl.Run. spaceQueue
Combinations of columns that we will compute next pass.Methods in org.apache.calcite.profile that return ImmutableBitSet Modifier and Type Method Description (package private) ImmutableBitSet
Profiler.Distribution. columnOrdinals()
(package private) static ImmutableBitSet
Profiler.Column. toOrdinals(java.lang.Iterable<Profiler.Column> columns)
Methods in org.apache.calcite.profile with parameters of type ImmutableBitSet Modifier and Type Method Description double
Profiler.Profile. cardinality(ImmutableBitSet columnOrdinals)
private double
ProfilerImpl.Run. cardinality(double rowCount, ImmutableBitSet columns)
Estimates the cardinality of a collection of columns represented bycolumnOrdinals
, drawing on existing distributions.private boolean
ProfilerImpl.Run. containsKey(ImmutableBitSet ordinals)
private boolean
SimpleProfiler.Run. containsKey(ImmutableBitSet ordinals, boolean strict)
Returns whether a set of column ordinals matches or contains a unique key.private double
ProfilerImpl.Run. expectedCardinality(double rowCount, ImmutableBitSet columns)
Estimates the cardinality of a collection of columns represented bycolumnOrdinals
, drawing on existing distributions.private boolean
SimpleProfiler.Run. hasNull(ImmutableBitSet columnOrdinals)
Method parameters in org.apache.calcite.profile with type arguments of type ImmutableBitSet Modifier and Type Method Description Profiler.Profile
Profiler. profile(java.lang.Iterable<java.util.List<java.lang.Comparable>> rows, java.util.List<Profiler.Column> columns, java.util.Collection<ImmutableBitSet> initialGroups)
Creates a profile of a data set.Profiler.Profile
ProfilerImpl. profile(java.lang.Iterable<java.util.List<java.lang.Comparable>> rows, java.util.List<Profiler.Column> columns, java.util.Collection<ImmutableBitSet> initialGroups)
Profiler.Profile
SimpleProfiler. profile(java.lang.Iterable<java.util.List<java.lang.Comparable>> rows, java.util.List<Profiler.Column> columns, java.util.Collection<ImmutableBitSet> initialGroups)
Constructors in org.apache.calcite.profile with parameters of type ImmutableBitSet Constructor Description Space(ProfilerImpl.Run run, ImmutableBitSet columnOrdinals, java.lang.Iterable<Profiler.Column> columns)
Space(ImmutableBitSet columnOrdinals, java.lang.Iterable<Profiler.Column> columns)
Constructor parameters in org.apache.calcite.profile with type arguments of type ImmutableBitSet Constructor Description Run(java.util.List<Profiler.Column> columns, java.util.Collection<ImmutableBitSet> initialGroups)
Creates a Run. -
Uses of ImmutableBitSet in org.apache.calcite.rel
Methods in org.apache.calcite.rel that return ImmutableBitSet Modifier and Type Method Description ImmutableBitSet
RelInput. getBitSet(java.lang.String tag)
Methods in org.apache.calcite.rel that return types with arguments of type ImmutableBitSet Modifier and Type Method Description java.util.List<ImmutableBitSet>
RelInput. getBitSetList(java.lang.String tag)
Methods in org.apache.calcite.rel with parameters of type ImmutableBitSet Modifier and Type Method Description boolean
AbstractRelNode. isKey(ImmutableBitSet columns)
boolean
RelNode. isKey(ImmutableBitSet columns)
Deprecated. -
Uses of ImmutableBitSet in org.apache.calcite.rel.core
Fields in org.apache.calcite.rel.core declared as ImmutableBitSet Modifier and Type Field Description protected ImmutableBitSet
Aggregate. groupSet
ImmutableBitSet
Window.Group. keys
protected ImmutableBitSet
Correlate. requiredColumns
Fields in org.apache.calcite.rel.core with type parameters of type ImmutableBitSet Modifier and Type Field Description com.google.common.collect.ImmutableList<ImmutableBitSet>
Aggregate. groupSets
Methods in org.apache.calcite.rel.core that return ImmutableBitSet Modifier and Type Method 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()
Methods in org.apache.calcite.rel.core that return types with arguments of type ImmutableBitSet Modifier and Type Method Description com.google.common.collect.ImmutableList<ImmutableBitSet>
Aggregate. getGroupSets()
Returns the list of grouping sets computed by this Aggregate.Methods in org.apache.calcite.rel.core with parameters of type ImmutableBitSet Modifier and Type Method Description abstract Aggregate
Aggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.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 input, boolean indicator, ImmutableBitSet groupSet, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates an aggregate.RelNode
RelFactories.AggregateFactoryImpl. createAggregate(RelNode input, boolean indicator, ImmutableBitSet groupSet, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
RelNode
RelFactories.CorrelateFactory. createCorrelate(RelNode left, RelNode right, CorrelationId correlationId, ImmutableBitSet requiredColumns, SemiJoinType joinType)
Creates a correlate.RelNode
RelFactories.CorrelateFactoryImpl. createCorrelate(RelNode left, RelNode right, CorrelationId correlationId, ImmutableBitSet requiredColumns, SemiJoinType joinType)
static RelDataType
Aggregate. deriveRowType(RelDataTypeFactory typeFactory, RelDataType inputRowType, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Computes the row type of anAggregate
before it exists.static Aggregate.Group
Aggregate.Group. induce(ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets)
RelNode
TableScan. project(ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields, RelBuilder relBuilder)
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.Method parameters in org.apache.calcite.rel.core with type arguments of type ImmutableBitSet Modifier and Type Method Description private static boolean
Aggregate. allContain(java.util.List<ImmutableBitSet> groupSets, int groupKey)
abstract Aggregate
Aggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates a copy of this aggregate.RelNode
RelFactories.AggregateFactory. createAggregate(RelNode input, boolean indicator, ImmutableBitSet groupSet, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates an aggregate.RelNode
RelFactories.AggregateFactoryImpl. createAggregate(RelNode input, boolean indicator, ImmutableBitSet groupSet, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
static RelDataType
Aggregate. deriveRowType(RelDataTypeFactory typeFactory, RelDataType inputRowType, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Computes the row type of anAggregate
before it exists.static Aggregate.Group
Aggregate.Group. induce(ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets)
Constructors in org.apache.calcite.rel.core with parameters of type ImmutableBitSet Constructor Description Aggregate(RelOptCluster cluster, RelTraitSet traits, RelNode child, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates an Aggregate.Correlate(RelOptCluster cluster, RelTraitSet traits, RelNode left, RelNode right, CorrelationId correlationId, ImmutableBitSet requiredColumns, SemiJoinType joinType)
Creates a Correlate.Group(ImmutableBitSet keys, boolean isRows, RexWindowBound lowerBound, RexWindowBound upperBound, RelCollation orderKeys, java.util.List<Window.RexWinAggCall> aggCalls)
Constructor parameters in org.apache.calcite.rel.core with type arguments of type ImmutableBitSet Constructor Description Aggregate(RelOptCluster cluster, RelTraitSet traits, RelNode child, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates an Aggregate. -
Uses of ImmutableBitSet in org.apache.calcite.rel.logical
Fields in org.apache.calcite.rel.logical declared as ImmutableBitSet Modifier and Type Field Description private ImmutableBitSet
LogicalWindow.WindowKey. groupSet
Methods in org.apache.calcite.rel.logical with parameters of type ImmutableBitSet Modifier and Type Method Description LogicalAggregate
LogicalAggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.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, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Deprecated.static LogicalAggregate
LogicalAggregate. create(RelNode input, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates a LogicalAggregate.static LogicalCorrelate
LogicalCorrelate. create(RelNode left, RelNode right, CorrelationId correlationId, ImmutableBitSet requiredColumns, SemiJoinType joinType)
Creates a LogicalCorrelate.private static LogicalAggregate
LogicalAggregate. create_(RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Method parameters in org.apache.calcite.rel.logical with type arguments of type ImmutableBitSet Modifier and Type Method Description LogicalAggregate
LogicalAggregate. copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
static LogicalAggregate
LogicalAggregate. create(RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Deprecated.static LogicalAggregate
LogicalAggregate. create(RelNode input, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates a LogicalAggregate.private static LogicalAggregate
LogicalAggregate. create_(RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Constructors in org.apache.calcite.rel.logical with parameters of type ImmutableBitSet Constructor Description LogicalAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode child, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates a LogicalAggregate.LogicalAggregate(RelOptCluster cluster, RelNode child, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Deprecated.LogicalCorrelate(RelOptCluster cluster, RelTraitSet traitSet, RelNode left, RelNode right, CorrelationId correlationId, ImmutableBitSet requiredColumns, SemiJoinType joinType)
Creates a LogicalCorrelate.LogicalCorrelate(RelOptCluster cluster, RelNode left, RelNode right, CorrelationId correlationId, ImmutableBitSet requiredColumns, SemiJoinType joinType)
Deprecated.WindowKey(ImmutableBitSet groupSet, RelCollation orderKeys, boolean isRows, RexWindowBound lowerBound, RexWindowBound upperBound)
Constructor parameters in org.apache.calcite.rel.logical with type arguments of type ImmutableBitSet Constructor Description LogicalAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode child, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates a LogicalAggregate.LogicalAggregate(RelOptCluster cluster, RelNode child, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Deprecated. -
Uses of ImmutableBitSet in org.apache.calcite.rel.metadata
Fields in org.apache.calcite.rel.metadata declared as ImmutableBitSet Modifier and Type Field Description (package private) ImmutableBitSet
RelMdPredicates.JoinConditionBasedPredicateInference. allFieldsBitSet
(package private) ImmutableBitSet
RelMdPredicates.JoinConditionBasedPredicateInference. leftFieldsBitSet
(package private) ImmutableBitSet
RelMdPredicates.JoinConditionBasedPredicateInference. rightFieldsBitSet
Fields in org.apache.calcite.rel.metadata with type parameters of type ImmutableBitSet Modifier and Type Field Description (package private) java.util.Map<RexNode,ImmutableBitSet>
RelMdPredicates.JoinConditionBasedPredicateInference. exprFields
Methods in org.apache.calcite.rel.metadata that return ImmutableBitSet Modifier and Type Method Description private static ImmutableBitSet
RelMdExpressionLineage. extractInputRefs(RexNode expr)
Methods in org.apache.calcite.rel.metadata that return types with arguments of type ImmutableBitSet Modifier and Type Method Description java.util.Set<ImmutableBitSet>
BuiltInMetadata.UniqueKeys. getUniqueKeys(boolean ignoreNulls)
Determines the set of unique minimal keys for this expression.java.util.Set<ImmutableBitSet>
BuiltInMetadata.UniqueKeys.Handler. getUniqueKeys(RelNode r, RelMetadataQuery mq, boolean ignoreNulls)
java.util.Set<ImmutableBitSet>
RelMdUniqueKeys. getUniqueKeys(Aggregate rel, RelMetadataQuery mq, boolean ignoreNulls)
java.util.Set<ImmutableBitSet>
RelMdUniqueKeys. getUniqueKeys(Correlate rel, RelMetadataQuery mq, boolean ignoreNulls)
java.util.Set<ImmutableBitSet>
RelMdUniqueKeys. getUniqueKeys(Filter rel, RelMetadataQuery mq, boolean ignoreNulls)
java.util.Set<ImmutableBitSet>
RelMdUniqueKeys. getUniqueKeys(Join rel, RelMetadataQuery mq, boolean ignoreNulls)
java.util.Set<ImmutableBitSet>
RelMdUniqueKeys. getUniqueKeys(Project rel, RelMetadataQuery mq, boolean ignoreNulls)
java.util.Set<ImmutableBitSet>
RelMdUniqueKeys. getUniqueKeys(SemiJoin rel, RelMetadataQuery mq, boolean ignoreNulls)
java.util.Set<ImmutableBitSet>
RelMdUniqueKeys. getUniqueKeys(SetOp rel, RelMetadataQuery mq, boolean ignoreNulls)
java.util.Set<ImmutableBitSet>
RelMdUniqueKeys. getUniqueKeys(Sort rel, RelMetadataQuery mq, boolean ignoreNulls)
java.util.Set<ImmutableBitSet>
RelMdUniqueKeys. getUniqueKeys(RelNode rel, RelMetadataQuery mq, boolean ignoreNulls)
java.util.Set<ImmutableBitSet>
RelMetadataQuery. getUniqueKeys(RelNode rel)
Returns theBuiltInMetadata.UniqueKeys.getUniqueKeys(boolean)
statistic.java.util.Set<ImmutableBitSet>
RelMetadataQuery. getUniqueKeys(RelNode rel, boolean ignoreNulls)
Returns theBuiltInMetadata.UniqueKeys.getUniqueKeys(boolean)
statistic.private static Pair<ImmutableBitSet,ImmutableBitSet>
RelMdColumnUniqueness. splitLeftAndRightColumns(int leftCount, ImmutableBitSet columns)
Splits a column set between left and right sets.private static Pair<ImmutableBitSet,ImmutableBitSet>
RelMdColumnUniqueness. splitLeftAndRightColumns(int leftCount, ImmutableBitSet columns)
Splits a column set between left and right sets.Methods in org.apache.calcite.rel.metadata with parameters of type ImmutableBitSet Modifier and Type Method Description static boolean
RelMdUtil. areColumnsDefinitelyUnique(RelMetadataQuery mq, 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(RelMetadataQuery mq, 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.java.lang.Boolean
BuiltInMetadata.ColumnUniqueness. areColumnsUnique(ImmutableBitSet columns, boolean ignoreNulls)
Determines whether a specified set of columns from a specified relational expression are unique.java.lang.Boolean
BuiltInMetadata.ColumnUniqueness.Handler. areColumnsUnique(RelNode r, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(HepRelVertex rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(RelSubset rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(Converter rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(Aggregate rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(Correlate rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(Exchange rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(Filter rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(Intersect rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(Join rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(Minus rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(Project rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(SemiJoin rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(SetOp rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(Sort rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(TableScan rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(Values rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
java.lang.Boolean
RelMdColumnUniqueness. areColumnsUnique(RelNode rel, RelMetadataQuery mq, ImmutableBitSet columns, boolean ignoreNulls)
Catch-all implementation forBuiltInMetadata.ColumnUniqueness.areColumnsUnique(ImmutableBitSet, boolean)
, invoked using reflection, for any relational expression not handled by a more specific method.java.lang.Boolean
RelMetadataQuery. areColumnsUnique(RelNode rel, ImmutableBitSet columns)
Returns theBuiltInMetadata.ColumnUniqueness.areColumnsUnique(ImmutableBitSet, boolean)
statistic.java.lang.Boolean
RelMetadataQuery. areColumnsUnique(RelNode rel, ImmutableBitSet columns, boolean ignoreNulls)
Returns theBuiltInMetadata.ColumnUniqueness.areColumnsUnique(ImmutableBitSet, boolean)
statistic.private boolean
RelMdPredicates.JoinConditionBasedPredicateInference. checkTarget(ImmutableBitSet inferringFields, java.util.Set<RexNode> allExprs, RexNode tr)
private static java.util.Set<RexNode>
RelMdExpressionLineage. createAllPossibleExpressions(RexBuilder rexBuilder, RexNode expr, ImmutableBitSet predFieldsUsed, java.util.Map<RexInputRef,java.util.Set<RexNode>> mapping, java.util.Map<RexInputRef,RexNode> singleMapping)
private static void
RelMdExpressionLineage. createExpressions(RexBuilder rexBuilder, RexNode expr, ImmutableBitSet predFieldsUsed, java.util.Map<RexInputRef,java.util.Set<RexNode>> mapping, java.util.Map<RexInputRef,RexNode> singleMapping, java.util.Set<RexNode> result)
java.lang.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.java.lang.Double
BuiltInMetadata.DistinctRowCount.Handler. getDistinctRowCount(RelNode r, RelMetadataQuery mq, ImmutableBitSet groupKey, RexNode predicate)
java.lang.Double
RelMdDistinctRowCount. getDistinctRowCount(RelSubset rel, RelMetadataQuery mq, ImmutableBitSet groupKey, RexNode predicate)
java.lang.Double
RelMdDistinctRowCount. getDistinctRowCount(Aggregate rel, RelMetadataQuery mq, ImmutableBitSet groupKey, RexNode predicate)
java.lang.Double
RelMdDistinctRowCount. getDistinctRowCount(Exchange rel, RelMetadataQuery mq, ImmutableBitSet groupKey, RexNode predicate)
java.lang.Double
RelMdDistinctRowCount. getDistinctRowCount(Filter rel, RelMetadataQuery mq, ImmutableBitSet groupKey, RexNode predicate)
java.lang.Double
RelMdDistinctRowCount. getDistinctRowCount(Join rel, RelMetadataQuery mq, ImmutableBitSet groupKey, RexNode predicate)
java.lang.Double
RelMdDistinctRowCount. getDistinctRowCount(Project rel, RelMetadataQuery mq, ImmutableBitSet groupKey, RexNode predicate)
java.lang.Double
RelMdDistinctRowCount. getDistinctRowCount(SemiJoin rel, RelMetadataQuery mq, ImmutableBitSet groupKey, RexNode predicate)
java.lang.Double
RelMdDistinctRowCount. getDistinctRowCount(Sort rel, RelMetadataQuery mq, ImmutableBitSet groupKey, RexNode predicate)
java.lang.Double
RelMdDistinctRowCount. getDistinctRowCount(Union rel, RelMetadataQuery mq, ImmutableBitSet groupKey, RexNode predicate)
java.lang.Double
RelMdDistinctRowCount. getDistinctRowCount(Values rel, RelMetadataQuery mq, ImmutableBitSet groupKey, RexNode predicate)
java.lang.Double
RelMdDistinctRowCount. getDistinctRowCount(RelNode rel, RelMetadataQuery mq, ImmutableBitSet groupKey, RexNode predicate)
Catch-all implementation forBuiltInMetadata.DistinctRowCount.getDistinctRowCount(ImmutableBitSet, RexNode)
, invoked using reflection.java.lang.Double
RelMetadataQuery. getDistinctRowCount(RelNode rel, ImmutableBitSet groupKey, RexNode predicate)
Returns theBuiltInMetadata.DistinctRowCount.getDistinctRowCount(ImmutableBitSet, RexNode)
statistic.static java.lang.Double
RelMdUtil. getJoinDistinctRowCount(RelMetadataQuery mq, 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 java.lang.Double
RelMdUtil. getJoinPopulationSize(RelMetadataQuery mq, RelNode joinRel, ImmutableBitSet groupKey)
Computes the population size for a set of keys returned from a joinjava.lang.Double
BuiltInMetadata.PopulationSize. getPopulationSize(ImmutableBitSet groupKey)
Estimates the distinct row count in the original source for the givengroupKey
, ignoring any filtering being applied by the expression.java.lang.Double
BuiltInMetadata.PopulationSize.Handler. getPopulationSize(RelNode r, RelMetadataQuery mq, ImmutableBitSet groupKey)
java.lang.Double
RelMdPopulationSize. getPopulationSize(Aggregate rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
java.lang.Double
RelMdPopulationSize. getPopulationSize(Exchange rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
java.lang.Double
RelMdPopulationSize. getPopulationSize(Filter rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
java.lang.Double
RelMdPopulationSize. getPopulationSize(Join rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
java.lang.Double
RelMdPopulationSize. getPopulationSize(Project rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
java.lang.Double
RelMdPopulationSize. getPopulationSize(SemiJoin rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
java.lang.Double
RelMdPopulationSize. getPopulationSize(Sort rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
java.lang.Double
RelMdPopulationSize. getPopulationSize(Union rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
java.lang.Double
RelMdPopulationSize. getPopulationSize(Values rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
java.lang.Double
RelMdPopulationSize. getPopulationSize(RelNode rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
Catch-all implementation forBuiltInMetadata.PopulationSize.getPopulationSize(ImmutableBitSet)
, invoked using reflection.java.lang.Double
RelMetadataQuery. getPopulationSize(RelNode rel, ImmutableBitSet groupKey)
Returns theBuiltInMetadata.PopulationSize.getPopulationSize(ImmutableBitSet)
statistic.private void
RelMdPredicates.JoinConditionBasedPredicateInference. infer(RexNode predicates, java.util.Set<RexNode> allExprs, java.util.List<RexNode> inferredPredicates, boolean includeEqualityInference, ImmutableBitSet inferringFields)
private RexNode
RelMdPredicates. projectPredicate(RexBuilder rexBuilder, RelNode input, RexNode r, ImmutableBitSet columnsMapped)
Converts a predicate on a particular set of columns into a predicate on a subset of those columns, weakening if necessary.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.private boolean
RelMdColumnUniqueness. simplyProjects(RelNode rel, ImmutableBitSet columns)
static void
RelMdUtil. splitCols(java.util.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 expressionprivate static Pair<ImmutableBitSet,ImmutableBitSet>
RelMdColumnUniqueness. splitLeftAndRightColumns(int leftCount, ImmutableBitSet columns)
Splits a column set between left and right sets.Constructors in org.apache.calcite.rel.metadata with parameters of type ImmutableBitSet Constructor Description ExprsItr(ImmutableBitSet fields)
-
Uses of ImmutableBitSet in org.apache.calcite.rel.mutable
Fields in org.apache.calcite.rel.mutable declared as ImmutableBitSet Modifier and Type Field Description ImmutableBitSet
MutableAggregate. groupSet
ImmutableBitSet
MutableCorrelate. requiredColumns
Fields in org.apache.calcite.rel.mutable with type parameters of type ImmutableBitSet Modifier and Type Field Description com.google.common.collect.ImmutableList<ImmutableBitSet>
MutableAggregate. groupSets
Methods in org.apache.calcite.rel.mutable with parameters of type ImmutableBitSet Modifier and Type Method Description static MutableAggregate
MutableAggregate. of(MutableRel input, ImmutableBitSet groupSet, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates a MutableAggregate.static MutableCorrelate
MutableCorrelate. of(RelDataType rowType, MutableRel left, MutableRel right, CorrelationId correlationId, ImmutableBitSet requiredColumns, SemiJoinType joinType)
Creates a MutableCorrelate.Method parameters in org.apache.calcite.rel.mutable with type arguments of type ImmutableBitSet Modifier and Type Method Description static MutableAggregate
MutableAggregate. of(MutableRel input, ImmutableBitSet groupSet, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates a MutableAggregate.Constructors in org.apache.calcite.rel.mutable with parameters of type ImmutableBitSet Constructor Description MutableAggregate(MutableRel input, RelDataType rowType, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
MutableCorrelate(RelDataType rowType, MutableRel left, MutableRel right, CorrelationId correlationId, ImmutableBitSet requiredColumns, SemiJoinType joinType)
Constructor parameters in org.apache.calcite.rel.mutable with type arguments of type ImmutableBitSet Constructor Description MutableAggregate(MutableRel input, RelDataType rowType, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
-
Uses of ImmutableBitSet in org.apache.calcite.rel.rules
Fields in org.apache.calcite.rel.rules declared as ImmutableBitSet Modifier and Type Field Description (package private) ImmutableBitSet
PushProjector. childBitmap
Bitmap containing the fields in the RelNode that the projection is being pushed past, if the RelNode is not a join.(package private) ImmutableBitSet
LoptMultiJoin.Edge. columns
(package private) ImmutableBitSet
LoptMultiJoin.Edge. factors
protected ImmutableBitSet
MultiJoinOptimizeBushyRule.Vertex. factors
(package private) ImmutableBitSet[]
LoptMultiJoin. factorsRefByFactor
Bitmap indicating which factors each factor references in join filters that correspond to comparisonsprivate ImmutableBitSet
PushProjector.InputSpecialOpFinder. leftFields
private ImmutableBitSet[]
LoptMultiJoin. outerJoinFactors
If a join factor is null generating in a left or right outer join, the bitmap contains the non-null generating factors that the null generating factor is dependent upon(package private) ImmutableBitSet
PushProjector. rightBitmap
Bitmap containing the fields in the right hand side of a join, in the case where the projection is being pushed past a join.private ImmutableBitSet
PushProjector.InputSpecialOpFinder. rightFields
(package private) ImmutableBitSet
PushProjector. strongBitmap
Bitmap containing the fields that should be strong, i.e.private ImmutableBitSet
PushProjector.InputSpecialOpFinder. strongFields
Fields in org.apache.calcite.rel.rules with type parameters of type ImmutableBitSet Modifier and Type Field Description private java.util.Map<RexNode,ImmutableBitSet>
LoptMultiJoin. factorsRefByJoinFilter
For each join filter, associates a bitmap indicating all factors referenced by the filterprivate java.util.Map<RexNode,ImmutableBitSet>
LoptMultiJoin. fieldsRefByJoinFilter
For each join filter, associates a bitmap indicating all fields referenced by the filterprivate java.util.List<ImmutableBitSet>
LoptMultiJoin. projFields
Bitmap corresponding to the fields projected from each join factor, after row scan processing has completed.private java.util.List<ImmutableBitSet>
MultiJoin. projFields
Methods in org.apache.calcite.rel.rules that return ImmutableBitSet Modifier and Type Method Description private ImmutableBitSet
LoptMultiJoin. factorBitmap(ImmutableBitSet fieldRefBitmap)
Sets the bitmap indicating which factors a filter references based on which fields it referencesprivate ImmutableBitSet
LoptMultiJoin. fieldBitmap(RexNode joinFilter)
private ImmutableBitSet
ProjectWindowTransposeRule. findReference(LogicalProject project, LogicalWindow window)
ImmutableBitSet
LoptMultiJoin. getFactorsRefByFactor(int factIdx)
ImmutableBitSet
LoptMultiJoin. getFactorsRefByJoinFilter(RexNode joinFilter)
ImmutableBitSet
LoptMultiJoin. getFieldsRefByJoinFilter(RexNode joinFilter)
(package private) ImmutableBitSet
LoptMultiJoin. getJoinFilterFactorBitmap(RexNode joinFilter, boolean setFields)
Returns a bitmap representing the factors referenced in a join filterImmutableBitSet
LoptMultiJoin. getOuterJoinFactors(int factIdx)
ImmutableBitSet
LoptMultiJoin. getProjFields(int factIdx)
private static ImmutableBitSet
AggregateJoinTransposeRule. keyColumns(ImmutableBitSet aggregateColumns, com.google.common.collect.ImmutableList<RexNode> predicates)
Computes the closure of a set of columns according to a given list of constraints.private static ImmutableBitSet
AggregateExpandDistinctAggregatesRule. remap(ImmutableBitSet groupSet, ImmutableBitSet bitSet)
Methods in org.apache.calcite.rel.rules that return types with arguments of type ImmutableBitSet Modifier and Type Method Description java.util.List<ImmutableBitSet>
MultiJoin. getProjFields()
private static com.google.common.collect.ImmutableList<ImmutableBitSet>
AggregateExpandDistinctAggregatesRule. remap(ImmutableBitSet groupSet, java.lang.Iterable<ImmutableBitSet> bitSets)
Methods in org.apache.calcite.rel.rules with parameters of type ImmutableBitSet Modifier and Type Method Description private boolean
FilterAggregateTransposeRule. canPush(Aggregate aggregate, ImmutableBitSet rCols)
private ImmutableBitSet
LoptMultiJoin. factorBitmap(ImmutableBitSet fieldRefBitmap)
Sets the bitmap indicating which factors a filter references based on which fields it referencesprotected com.google.common.collect.Multimap<java.lang.Integer,java.lang.Integer>
AbstractMaterializedViewRule.MaterializedViewAggregateRule. generateMapping(RexBuilder rexBuilder, RexSimplify simplify, RelMetadataQuery mq, RelNode node, RelNode target, ImmutableBitSet positions, com.google.common.collect.BiMap<RexTableInputRef.RelTableRef,RexTableInputRef.RelTableRef> tableMapping, AbstractMaterializedViewRule.EquivalenceClasses sourceEC, java.util.List<RexNode> additionalExprs)
Mapping from node expressions to target expressions.private int
ProjectWindowTransposeRule. getAdjustedIndex(int initIndex, ImmutableBitSet beReferred, int windowInputColumn)
private static long
AggregateExpandDistinctAggregatesRule. groupValue(ImmutableBitSet fullGroupSet, ImmutableBitSet groupSet)
private boolean
PushProjector.InputSpecialOpFinder. isStrong(ImmutableBitSet exprArgs, RexNode call)
private static ImmutableBitSet
AggregateJoinTransposeRule. keyColumns(ImmutableBitSet aggregateColumns, com.google.common.collect.ImmutableList<RexNode> predicates)
Computes the closure of a set of columns according to a given list of constraints.private static int
AggregateExpandDistinctAggregatesRule. remap(ImmutableBitSet groupSet, int arg)
private static com.google.common.collect.ImmutableList<ImmutableBitSet>
AggregateExpandDistinctAggregatesRule. remap(ImmutableBitSet groupSet, java.lang.Iterable<ImmutableBitSet> bitSets)
private static java.util.List<java.lang.Integer>
AggregateExpandDistinctAggregatesRule. remap(ImmutableBitSet groupSet, java.util.List<java.lang.Integer> argList)
private static ImmutableBitSet
AggregateExpandDistinctAggregatesRule. remap(ImmutableBitSet groupSet, ImmutableBitSet bitSet)
private void
LoptOptimizeJoinRule. setFactorJoinKeys(LoptMultiJoin multiJoin, java.util.List<RexNode> filters, ImmutableBitSet joinFactors, int factorStart, int nFields, ImmutableBitSet.Builder joinKeys)
Locates from a list of filters those that correspond to a particular join tree.(package private) static void
JoinPushThroughJoinRule. split(RexNode condition, ImmutableBitSet bitSet, java.util.List<RexNode> intersecting, java.util.List<RexNode> nonIntersecting)
Splits a condition into conjunctions that do or do not intersect with a given bit set.Method parameters in org.apache.calcite.rel.rules with type arguments of type ImmutableBitSet Modifier and Type Method Description private java.util.List<RelNode>
JoinToMultiJoinRule. combineInputs(Join join, RelNode left, RelNode right, java.util.List<ImmutableBitSet> projFieldsList, java.util.List<int[]> joinFieldRefCountsList)
Combines the inputs into a LogicalJoin into an array of inputs.private static com.google.common.collect.ImmutableList<ImmutableBitSet>
AggregateExpandDistinctAggregatesRule. remap(ImmutableBitSet groupSet, java.lang.Iterable<ImmutableBitSet> bitSets)
Constructors in org.apache.calcite.rel.rules with parameters of type ImmutableBitSet Constructor Description Edge(RexNode condition, ImmutableBitSet factors, ImmutableBitSet columns)
InputSpecialOpFinder(java.util.BitSet rexRefs, ImmutableBitSet leftFields, ImmutableBitSet rightFields, ImmutableBitSet strongFields, PushProjector.ExprCondition preserveExprCondition, java.util.List<RexNode> preserveLeft, java.util.List<RexNode> preserveRight)
JoinVertex(int id, int leftFactor, int rightFactor, ImmutableBitSet factors, double cost, com.google.common.collect.ImmutableList<RexNode> conditions)
Vertex(int id, ImmutableBitSet factors, double cost)
-
Uses of ImmutableBitSet in org.apache.calcite.schema
Methods in org.apache.calcite.schema with parameters of type ImmutableBitSet Modifier and Type Method 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.Method parameters in org.apache.calcite.schema with type arguments of type ImmutableBitSet Modifier and Type Method Description static Statistic
Statistics. of(double rowCount, java.util.List<ImmutableBitSet> keys)
Returns a statistic with a given row count and set of unique keys.static Statistic
Statistics. of(double rowCount, java.util.List<ImmutableBitSet> keys, java.util.List<RelCollation> collations)
Returns a statistic with a given row count, set of unique keys, and collations.static Statistic
Statistics. of(java.lang.Double rowCount, java.util.List<ImmutableBitSet> keys, java.util.List<RelReferentialConstraint> referentialConstraints, java.util.List<RelCollation> collations)
Returns a statistic with a given row count, set of unique keys, referential constraints, and collations. -
Uses of ImmutableBitSet in org.apache.calcite.sql.validate
Fields in org.apache.calcite.sql.validate declared as ImmutableBitSet Modifier and Type Field Description ImmutableBitSet
AggregatingSelectScope.Resolved. groupSet
Fields in org.apache.calcite.sql.validate with type parameters of type ImmutableBitSet Modifier and Type Field Description com.google.common.collect.ImmutableList<ImmutableBitSet>
AggregatingSelectScope.Resolved. groupSets
Methods in org.apache.calcite.sql.validate that return ImmutableBitSet Modifier and Type Method Description private static ImmutableBitSet
SqlValidatorUtil. analyzeGroupExpr(SqlValidatorScope scope, SqlValidatorUtil.GroupAnalyzer groupAnalyzer, SqlNode groupExpr)
Analyzes a component of a tuple in a GROUPING SETS clause.static ImmutableBitSet
SqlValidatorUtil. getOrdinalBitSet(RelDataType sourceRowType, java.util.Map<java.lang.Integer,RelDataTypeField> indexToField)
Gets the bit-set to the column ordinals in the source for columns that intersect in the target.static ImmutableBitSet
SqlValidatorUtil. getOrdinalBitSet(RelDataType sourceRowType, RelDataType targetRowType)
Gets the bit-set to the column ordinals in the source for columns that intersect in the target.Methods in org.apache.calcite.sql.validate that return types with arguments of type ImmutableBitSet Modifier and Type Method Description private static java.util.List<ImmutableBitSet>
SqlValidatorUtil. analyzeGroupTuple(SqlValidatorScope scope, SqlValidatorUtil.GroupAnalyzer groupAnalyzer, java.util.List<SqlNode> operandList)
Analyzes a tuple in a GROUPING SETS clause.static com.google.common.collect.ImmutableList<ImmutableBitSet>
SqlValidatorUtil. cube(java.util.List<ImmutableBitSet> bitSets)
Computes the cube of bit sets.static com.google.common.collect.ImmutableList<ImmutableBitSet>
SqlValidatorUtil. rollup(java.util.List<ImmutableBitSet> bitSets)
Computes the rollup of bit sets.Method parameters in org.apache.calcite.sql.validate with type arguments of type ImmutableBitSet Modifier and Type Method Description private static boolean
AggregatingSelectScope. allContain(java.util.List<ImmutableBitSet> bitSets, int bit)
static void
SqlValidatorUtil. analyzeGroupItem(SqlValidatorScope scope, SqlValidatorUtil.GroupAnalyzer groupAnalyzer, com.google.common.collect.ImmutableList.Builder<com.google.common.collect.ImmutableList<ImmutableBitSet>> topBuilder, SqlNode groupExpr)
Analyzes an expression in a GROUP BY clause.private static void
SqlValidatorUtil. convertGroupSet(SqlValidatorScope scope, SqlValidatorUtil.GroupAnalyzer groupAnalyzer, com.google.common.collect.ImmutableList.Builder<ImmutableBitSet> builder, SqlNode groupExpr)
Analyzes a GROUPING SETS item in a GROUP BY clause.static com.google.common.collect.ImmutableList<ImmutableBitSet>
SqlValidatorUtil. cube(java.util.List<ImmutableBitSet> bitSets)
Computes the cube of bit sets.static com.google.common.collect.ImmutableList<ImmutableBitSet>
SqlValidatorUtil. rollup(java.util.List<ImmutableBitSet> bitSets)
Computes the rollup of bit sets.Constructor parameters in org.apache.calcite.sql.validate with type arguments of type ImmutableBitSet Constructor Description Resolved(java.util.List<SqlNode> extraExprList, java.util.List<SqlNode> groupExprList, java.lang.Iterable<ImmutableBitSet> groupSets, java.util.Map<java.lang.Integer,java.lang.Integer> groupExprProjection)
-
Uses of ImmutableBitSet in org.apache.calcite.sql2rel
Fields in org.apache.calcite.sql2rel declared as ImmutableBitSet Modifier and Type Field Description private ImmutableBitSet
SqlToRelConverter.CorrelationUse. requiredColumns
Methods in org.apache.calcite.sql2rel with parameters of type ImmutableBitSet Modifier and Type Method Description protected RelNode
SqlToRelConverter. createAggregate(SqlToRelConverter.Blackboard bb, ImmutableBitSet groupSet, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates an Aggregate.protected Mapping
RelFieldTrimmer. createMapping(ImmutableBitSet fieldsUsed, int fieldCount)
protected RelFieldTrimmer.TrimResult
RelFieldTrimmer. dispatchTrimFields(RelNode rel, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
InvokesRelFieldTrimmer.trimFields(org.apache.calcite.rel.RelNode, org.apache.calcite.util.ImmutableBitSet, java.util.Set<org.apache.calcite.rel.type.RelDataTypeField>)
, or the appropriate method for the type of the rel parameter, using multi-method dispatch.protected RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimChild(RelNode rel, RelNode input, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
Trims the fields of an input relational expression.protected RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimChildRestore(RelNode rel, RelNode input, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
Trims a child relational expression, then adds back a dummy project to restore the fields that were removed.RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(Aggregate aggregate, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(Filter filter, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(Join join, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
Variant ofRelFieldTrimmer.trimFields(RelNode, ImmutableBitSet, Set)
forLogicalJoin
.RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(Project project, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(SetOp setOp, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
Variant ofRelFieldTrimmer.trimFields(RelNode, ImmutableBitSet, Set)
forSetOp
(including UNION and UNION ALL).RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(Sort sort, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
Variant ofRelFieldTrimmer.trimFields(RelNode, ImmutableBitSet, Set)
forSort
.RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(TableScan tableAccessRel, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(LogicalTableFunctionScan tabFun, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(LogicalTableModify modifier, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(LogicalValues values, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
RelFieldTrimmer.TrimResult
RelFieldTrimmer. trimFields(RelNode rel, ImmutableBitSet fieldsUsed, java.util.Set<RelDataTypeField> extraFields)
Visit method, perReflectiveVisitor
.Method parameters in org.apache.calcite.sql2rel with type arguments of type ImmutableBitSet Modifier and Type Method Description protected RelNode
SqlToRelConverter. createAggregate(SqlToRelConverter.Blackboard bb, ImmutableBitSet groupSet, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates an Aggregate.Constructors in org.apache.calcite.sql2rel with parameters of type ImmutableBitSet Constructor Description CorrelationUse(CorrelationId id, ImmutableBitSet requiredColumns, RelNode r)
-
Uses of ImmutableBitSet in org.apache.calcite.tools
Methods in org.apache.calcite.tools with parameters of type ImmutableBitSet Modifier and Type Method Description RelBuilder.GroupKey
RelBuilder. groupKey(ImmutableBitSet groupSet)
Creates a group key, identified by field positions in the underlying relational expression.RelBuilder.GroupKey
RelBuilder. groupKey(ImmutableBitSet groupSet, boolean indicator, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets)
Deprecated.RelBuilder.GroupKey
RelBuilder. groupKey(ImmutableBitSet groupSet, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets)
RelBuilder.GroupKey
RelBuilder. groupKey(ImmutableBitSet groupSet, java.lang.Iterable<? extends ImmutableBitSet> groupSets)
Creates a group key with grouping sets, both identified by field positions in the underlying relational expression.private RelBuilder.GroupKey
RelBuilder. groupKey_(ImmutableBitSet groupSet, boolean indicator, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets)
Method parameters in org.apache.calcite.tools with type arguments of type ImmutableBitSet Modifier and Type Method Description RelBuilder.GroupKey
RelBuilder. groupKey(ImmutableBitSet groupSet, boolean indicator, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets)
Deprecated.RelBuilder.GroupKey
RelBuilder. groupKey(ImmutableBitSet groupSet, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets)
RelBuilder.GroupKey
RelBuilder. groupKey(ImmutableBitSet groupSet, java.lang.Iterable<? extends ImmutableBitSet> groupSets)
Creates a group key with grouping sets, both identified by field positions in the underlying relational expression.private RelBuilder.GroupKey
RelBuilder. groupKey_(ImmutableBitSet groupSet, boolean indicator, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets)
-
Uses of ImmutableBitSet in org.apache.calcite.util
Fields in org.apache.calcite.util declared as ImmutableBitSet Modifier and Type Field Description private static ImmutableBitSet
ImmutableBitSet. EMPTY
private ImmutableBitSet
ImmutableBitSet.Rebuilder. originalBitSet
Fields in org.apache.calcite.util with type parameters of type ImmutableBitSet Modifier and Type Field Description static PartiallyOrderedSet.Ordering<ImmutableBitSet>
PartiallyOrderedSet. BIT_SET_INCLUSION_ORDERING
Ordering that orders bit sets by inclusion.private java.util.SortedMap<java.lang.Integer,ImmutableBitSet>
ImmutableBitSet.Closure. closure
static java.util.Comparator<ImmutableBitSet>
ImmutableBitSet. COMPARATOR
Compares bit sets topologically, so that enclosing bit sets come first, using natural ordering to break ties.private java.util.SortedMap<java.lang.Integer,ImmutableBitSet>
ImmutableBitSet.Closure. equivalence
static com.google.common.base.Function<? super java.util.BitSet,ImmutableBitSet>
ImmutableBitSet. FROM_BIT_SET
Deprecated.static com.google.common.collect.Ordering<ImmutableBitSet>
ImmutableBitSet. ORDERING
Methods in org.apache.calcite.util that return ImmutableBitSet Modifier and Type Method 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.Rebuilder. build()
ImmutableBitSet
ImmutableBitSet.Rebuilder. build(ImmutableBitSet bitSet)
ImmutableBitSet
ImmutableBitSet. clear(int i)
Returns a bit set the same as this but with a given bit cleared.ImmutableBitSet
ImmutableBitSet. clearIf(int i, boolean condition)
Returns a bit set the same as this but with a given bit cleared if condition is true.private ImmutableBitSet
ImmutableBitSet.Closure. computeClosure(int pos)
ImmutableBitSet
ImmutableBitSet. except(ImmutableBitSet that)
Returns a bit set with all the bits in this set that are not in another.static ImmutableBitSet
ImmutableBitSet. fromBitSet(java.util.BitSet input)
Returns a new immutable bit set containing all the bits in the givenBitSet
.ImmutableBitSet
ImmutableBitSet. get(int fromIndex, int toIndex)
Returns a newImmutableBitSet
composed of bits from thisImmutableBitSet
fromfromIndex
(inclusive) totoIndex
(exclusive).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(int... bits)
static ImmutableBitSet
ImmutableBitSet. of(java.lang.Iterable<java.lang.Integer> bits)
static ImmutableBitSet
ImmutableBitSet. of(ImmutableIntList bits)
Creates an ImmutableBitSet with given bits set.ImmutableBitSet
ImmutableBitSet. permute(java.util.Map<java.lang.Integer,java.lang.Integer> map)
Permutes a bit set according to a given mapping.static ImmutableBitSet
ImmutableBitSet. range(int toIndex)
Creates an ImmutableBitSet with bits between 0 andtoIndex
set.static ImmutableBitSet
ImmutableBitSet. range(int fromIndex, int toIndex)
Creates an ImmutableBitSet with bits fromfromIndex
(inclusive) to specifiedtoIndex
(exclusive) set totrue
.ImmutableBitSet
ImmutableBitSet. set(int i)
Returns a bit set the same as this but with a given bit set.ImmutableBitSet
ImmutableBitSet. set(int i, boolean b)
Returns a bit set the same as this but with a given bit set (if b is true) or unset (if b is false).ImmutableBitSet
ImmutableBitSet. setIf(int bit, boolean condition)
Returns a bit set the same as this but with a given bit set if condition is true.ImmutableBitSet
ImmutableBitSet. shift(int offset)
Returns a bit set with every bit moved upoffset
positions.static ImmutableBitSet
ImmutableBitSet. union(java.lang.Iterable<? extends ImmutableBitSet> sets)
Returns the union of a number of bit sets.ImmutableBitSet
ImmutableBitSet. union(java.util.BitSet other)
Returns the union of this immutable bit set with aBitSet
.ImmutableBitSet
ImmutableBitSet. union(ImmutableBitSet other)
Returns the union of this bit set with another.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(java.nio.LongBuffer longs)
Returns a new immutable bit set containing all the bits in the given long buffer.Methods in org.apache.calcite.util that return types with arguments of type ImmutableBitSet Modifier and Type Method Description static java.util.SortedMap<java.lang.Integer,ImmutableBitSet>
ImmutableBitSet. closure(java.util.SortedMap<java.lang.Integer,ImmutableBitSet> equivalence)
Computes the closure of a map from integers to bits.static java.lang.Iterable<ImmutableBitSet>
ImmutableBitSet. permute(java.lang.Iterable<ImmutableBitSet> bitSets, java.util.Map<java.lang.Integer,java.lang.Integer> map)
Permutes a collection of bit sets according to a given mapping.java.lang.Iterable<ImmutableBitSet>
ImmutableBitSet. powerSet()
Computes the power set (set of all sets) of this bit set.Methods in org.apache.calcite.util with parameters of type ImmutableBitSet Modifier and Type Method 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.ImmutableBitSet
ImmutableBitSet.Rebuilder. build(ImmutableBitSet bitSet)
static ImmutableBitSet.Builder
ImmutableBitSet. builder(ImmutableBitSet bitSet)
Deprecated.int
ImmutableBitSet. compareTo(ImmutableBitSet o)
Compares this ImmutableBitSet with another, using a lexicographic ordering.static boolean
BitSets. contains(java.util.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.void
ImmutableBitSet.Builder. intersect(ImmutableBitSet that)
ImmutableBitSet
ImmutableBitSet. intersect(ImmutableBitSet that)
Returns a bit set with all the bits set in both this set and in another.boolean
ImmutableBitSet. intersects(ImmutableBitSet set)
Returns true if the specifiedImmutableBitSet
has any bits set totrue
that are also set totrue
in thisImmutableBitSet
.ImmutableBitSet.Builder
ImmutableBitSet.Builder. removeAll(ImmutableBitSet bitSet)
Clears all bits in a given bit set.static java.lang.Iterable<java.lang.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.Method parameters in org.apache.calcite.util with type arguments of type ImmutableBitSet Modifier and Type Method Description static java.util.SortedMap<java.lang.Integer,ImmutableBitSet>
ImmutableBitSet. closure(java.util.SortedMap<java.lang.Integer,ImmutableBitSet> equivalence)
Computes the closure of a map from integers to bits.static java.lang.Iterable<ImmutableBitSet>
ImmutableBitSet. permute(java.lang.Iterable<ImmutableBitSet> bitSets, java.util.Map<java.lang.Integer,java.lang.Integer> map)
Permutes a collection of bit sets according to a given mapping.static ImmutableBitSet
ImmutableBitSet. union(java.lang.Iterable<? extends ImmutableBitSet> sets)
Returns the union of a number of bit sets.Constructors in org.apache.calcite.util with parameters of type ImmutableBitSet Constructor Description Rebuilder(ImmutableBitSet originalBitSet)
Constructor parameters in org.apache.calcite.util with type arguments of type ImmutableBitSet Constructor Description Closure(java.util.SortedMap<java.lang.Integer,ImmutableBitSet> equivalence)
-
Uses of ImmutableBitSet in org.apache.calcite.util.mapping
Methods in org.apache.calcite.util.mapping that return ImmutableBitSet Modifier and Type Method Description static ImmutableBitSet
Mappings. apply(Mapping mapping, ImmutableBitSet bitSet)
Applies a mapping to anImmutableBitSet
.Methods in org.apache.calcite.util.mapping that return types with arguments of type ImmutableBitSet Modifier and Type Method Description static com.google.common.collect.ImmutableList<ImmutableBitSet>
Mappings. apply2(Mapping mapping, java.lang.Iterable<ImmutableBitSet> bitSets)
Applies a mapping to a collection ofImmutableBitSet
s.Methods in org.apache.calcite.util.mapping with parameters of type ImmutableBitSet Modifier and Type Method Description static ImmutableBitSet
Mappings. apply(Mapping mapping, ImmutableBitSet bitSet)
Applies a mapping to anImmutableBitSet
.Method parameters in org.apache.calcite.util.mapping with type arguments of type ImmutableBitSet Modifier and Type Method Description static com.google.common.collect.ImmutableList<ImmutableBitSet>
Mappings. apply2(Mapping mapping, java.lang.Iterable<ImmutableBitSet> bitSets)
Applies a mapping to a collection ofImmutableBitSet
s.
-