Uses of Interface
org.apache.calcite.util.mapping.Mappings.TargetMapping
-
Packages that use Mappings.TargetMapping Package Description org.apache.calcite.plan Defines interfaces for constructing rule-based optimizers of relational expressions.org.apache.calcite.rel Defines relational expressions.org.apache.calcite.rel.core Defines core relational expressions.org.apache.calcite.rel.mutable Defines mutable relational expressions.org.apache.calcite.rex Provides a language for representing row-expressions.org.apache.calcite.sql Provides a SQL parser and object model.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 Mappings.TargetMapping in org.apache.calcite.plan
Fields in org.apache.calcite.plan declared as Mappings.TargetMapping Modifier and Type Field Description (package private) Mappings.TargetMapping
RelOptMaterialization.ProjectFilterTable. mapping
Methods in org.apache.calcite.plan that return Mappings.TargetMapping Modifier and Type Method Description Mappings.TargetMapping
RelOptMaterialization.ProjectFilterTable. mapping()
static Mappings.TargetMapping
RelOptUtil. permutation(java.util.List<RexNode> nodes, RelDataType inputRowType)
Returns a permutation describing where output fields come from.static Mappings.TargetMapping
RelOptUtil. permutationIgnoreCast(java.util.List<RexNode> nodes, RelDataType inputRowType)
Returns a permutation describing where output fields come from.Methods in org.apache.calcite.plan with parameters of type Mappings.TargetMapping Modifier and Type Method Description static RelNode
RelOptUtil. createProject(RelNode child, Mappings.TargetMapping mapping)
Creates aLogicalProject
that projects particular fields of its input, according to a mapping.static RelNode
RelOptUtil. createProject(RelNode child, Mappings.TargetMapping mapping, RelFactories.ProjectFactory projectFactory)
private static RelOptMaterialization.ProjectFilterTable
RelOptMaterialization.ProjectFilterTable. of3(RexNode condition, Mappings.TargetMapping mapping, RelNode node)
Constructors in org.apache.calcite.plan with parameters of type Mappings.TargetMapping Constructor Description ProjectFilterTable(RexNode condition, Mappings.TargetMapping mapping, TableScan scan)
-
Uses of Mappings.TargetMapping in org.apache.calcite.rel
Methods in org.apache.calcite.rel with parameters of type Mappings.TargetMapping Modifier and Type Method Description RelDistribution
RelDistribution. apply(Mappings.TargetMapping mapping)
RelDistribution
RelDistributions.RelDistributionImpl. apply(Mappings.TargetMapping mapping)
static RelCollation
RelCollations. permute(RelCollation collation, Mappings.TargetMapping mapping)
Creates a copy of this collation that changes the ordinals of input fields. -
Uses of Mappings.TargetMapping in org.apache.calcite.rel.core
Methods in org.apache.calcite.rel.core that return Mappings.TargetMapping Modifier and Type Method Description Mappings.TargetMapping
Project. getMapping()
Returns a mapping, or null if this projection is not a mapping.static Mappings.TargetMapping
Project. getMapping(int inputFieldCount, java.util.List<? extends RexNode> projects)
Returns a mapping of a set of project expressions.static Mappings.TargetMapping
Project. getPartialMapping(int inputFieldCount, java.util.List<? extends RexNode> projects)
Returns a partial mapping of a set of project expressions.Methods in org.apache.calcite.rel.core with parameters of type Mappings.TargetMapping Modifier and Type Method Description AggregateCall
AggregateCall. transform(Mappings.TargetMapping mapping)
Creates a copy of this aggregate call, applying a mapping to its arguments. -
Uses of Mappings.TargetMapping in org.apache.calcite.rel.mutable
Methods in org.apache.calcite.rel.mutable that return Mappings.TargetMapping Modifier and Type Method Description Mappings.TargetMapping
MutableProject. getMapping()
-
Uses of Mappings.TargetMapping in org.apache.calcite.rex
Fields in org.apache.calcite.rex declared as Mappings.TargetMapping Modifier and Type Field Description private Mappings.TargetMapping
RexPermuteInputsShuttle. mapping
Methods in org.apache.calcite.rex with parameters of type Mappings.TargetMapping Modifier and Type Method Description static java.lang.Iterable<RexNode>
RexUtil. apply(Mappings.TargetMapping mapping, java.lang.Iterable<? extends RexNode> nodes)
Applies a mapping to an iterable over expressions.static java.util.List<RelCollation>
RexUtil. apply(Mappings.TargetMapping mapping, java.util.List<RelCollation> collationList)
Applies a mapping to a collation list.static RelCollation
RexUtil. apply(Mappings.TargetMapping mapping, RelCollation collation)
Applies a mapping to a collation.static RelFieldCollation
RexUtil. apply(Mappings.TargetMapping mapping, RelFieldCollation fieldCollation)
Applies a mapping to a field collation.static RexNode
RexUtil. apply(Mappings.TargetMapping mapping, RexNode node)
Applies a mapping to an expression.static java.util.List<RelFieldCollation>
RexUtil. applyFields(Mappings.TargetMapping mapping, java.util.List<RelFieldCollation> fieldCollations)
Applies a mapping to a list of field collations.static RexPermuteInputsShuttle
RexPermuteInputsShuttle. of(Mappings.TargetMapping mapping)
Creates a shuttle with an empty field list.Constructors in org.apache.calcite.rex with parameters of type Mappings.TargetMapping Constructor Description RexPermuteInputsShuttle(Mappings.TargetMapping mapping, com.google.common.collect.ImmutableList<RelDataTypeField> fields)
RexPermuteInputsShuttle(Mappings.TargetMapping mapping, RelNode... inputs)
Creates a RexPermuteInputsShuttle. -
Uses of Mappings.TargetMapping in org.apache.calcite.sql
Methods in org.apache.calcite.sql with parameters of type Mappings.TargetMapping Modifier and Type Method Description AggregateCall
SqlSplittableAggFunction.AbstractSumSplitter. split(AggregateCall aggregateCall, Mappings.TargetMapping mapping)
AggregateCall
SqlSplittableAggFunction.CountSplitter. split(AggregateCall aggregateCall, Mappings.TargetMapping mapping)
AggregateCall
SqlSplittableAggFunction.SelfSplitter. split(AggregateCall aggregateCall, Mappings.TargetMapping mapping)
AggregateCall
SqlSplittableAggFunction. split(AggregateCall aggregateCall, Mappings.TargetMapping mapping)
-
Uses of Mappings.TargetMapping in org.apache.calcite.sql2rel
Methods in org.apache.calcite.sql2rel that return Mappings.TargetMapping Modifier and Type Method Description private Mappings.TargetMapping
RelStructuredTypeFlattener. getNewForOldInputMapping(RelNode oldRel)
Returns a mapping between old and new fields. -
Uses of Mappings.TargetMapping in org.apache.calcite.tools
Methods in org.apache.calcite.tools with parameters of type Mappings.TargetMapping Modifier and Type Method Description com.google.common.collect.ImmutableList<RexNode>
RelBuilder. fields(Mappings.TargetMapping mapping)
Returns references to fields identified by a mapping. -
Uses of Mappings.TargetMapping in org.apache.calcite.util
Classes in org.apache.calcite.util that implement Mappings.TargetMapping Modifier and Type Class Description class
Permutation
Represents a mapping which reorders elements in an array. -
Uses of Mappings.TargetMapping in org.apache.calcite.util.mapping
Subinterfaces of Mappings.TargetMapping in org.apache.calcite.util.mapping Modifier and Type Interface Description interface
Mapping
A Mapping is a relationship between a source domain to target domain of integers.Classes in org.apache.calcite.util.mapping that implement Mappings.TargetMapping Modifier and Type Class Description class
AbstractSourceMapping
Simple implementation ofMappings.TargetMapping
where the number of sources and targets are specified as constructor parameters and you just need to implement one method,class
AbstractTargetMapping
Simple implementation ofMappings.TargetMapping
where the number of sources and targets are specified as constructor parameters and you just need to implement one method,static class
Mappings.AbstractMapping
Abstract implementation ofMapping
.static class
Mappings.FiniteAbstractMapping
Abstract implementation of mapping where both source and target domains are finite.static class
Mappings.IdentityMapping
The identity mapping, of a given size, or infinite.private static class
Mappings.InverseMapping
Decorator which converts anyMapping
into the inverse of itself.static class
Mappings.OverridingSourceMapping
Source mapping that returns the same result as a parentMappings.SourceMapping
except for specific overriding elements.static class
Mappings.OverridingTargetMapping
Target mapping that returns the same result as a parentMappings.TargetMapping
except for specific overriding elements.private static class
Mappings.PartialFunctionImpl
Implementation ofMapping
where a source can have at most one target, and a target can have any number of sources.static class
Mappings.PartialMapping
A mapping where a source has at most one target, and every target has at most one source.(package private) static class
Mappings.SurjectionWithInverse
A surjection with inverse has precisely one source for each target.Fields in org.apache.calcite.util.mapping declared as Mappings.TargetMapping Modifier and Type Field Description private Mappings.TargetMapping
Mappings.OverridingTargetMapping. parent
Methods in org.apache.calcite.util.mapping that return Mappings.TargetMapping Modifier and Type Method Description static Mappings.TargetMapping
Mappings. append(Mappings.TargetMapping mapping0, Mappings.TargetMapping mapping1)
Creates a mapping by appending two mappings.static Mappings.TargetMapping
Mappings. createShiftMapping(int sourceCount, int... ints)
Creates a mapping that consists of a set of contiguous ranges.static Mappings.TargetMapping
Mappings. merge(Mappings.TargetMapping mapping0, Mappings.TargetMapping mapping1)
Creates a mapping by merging two mappings.static Mappings.TargetMapping
Mappings. offset(Mappings.TargetMapping mapping, int offset, int sourceCount)
Returns a mapping that shifts a given mapping's source and target by a given offset.static Mappings.TargetMapping
Mappings. offsetSource(Mappings.TargetMapping mapping, int offset)
Returns a mapping that shifts a given mapping's source by a given offset, incrementing the number of sources by the minimum possible.static Mappings.TargetMapping
Mappings. offsetSource(Mappings.TargetMapping mapping, int offset, int sourceCount)
Returns a mapping that shifts a given mapping's source by a given offset.static Mappings.TargetMapping
Mappings. offsetTarget(Mappings.TargetMapping mapping, int offset)
Returns a mapping that shifts a given mapping's target by a given offset, incrementing the number of targets by the minimum possible.static Mappings.TargetMapping
Mappings. offsetTarget(Mappings.TargetMapping mapping, int offset, int targetCount)
Returns a mapping that shifts a given mapping's target by a given offset.static Mappings.TargetMapping
Mappings. target(java.util.function.IntFunction<java.lang.Integer> function, int sourceCount, int targetCount)
static Mappings.TargetMapping
Mappings. target(java.util.Map<java.lang.Integer,java.lang.Integer> map, int sourceCount, int targetCount)
Converts aMap
of integers to aMappings.TargetMapping
.Methods in org.apache.calcite.util.mapping with parameters of type Mappings.TargetMapping Modifier and Type Method Description static Mappings.TargetMapping
Mappings. append(Mappings.TargetMapping mapping0, Mappings.TargetMapping mapping1)
Creates a mapping by appending two mappings.static int
Mappings. apply(Mappings.TargetMapping mapping, int i)
Applies a mapping to an optional integer, returning an optional result.static java.util.List<java.lang.Integer>
Mappings. asList(Mappings.TargetMapping mapping)
Returns a mapping as a list such thatlist.get(source)
ismapping.getTarget(source)
andlist.size()
ismapping.getSourceCount()
.static boolean
Mappings. isIdentity(Mappings.TargetMapping mapping)
Returns whether a mapping is the identity.static Mappings.TargetMapping
Mappings. merge(Mappings.TargetMapping mapping0, Mappings.TargetMapping mapping1)
Creates a mapping by merging two mappings.static Mappings.TargetMapping
Mappings. offset(Mappings.TargetMapping mapping, int offset, int sourceCount)
Returns a mapping that shifts a given mapping's source and target by a given offset.static Mappings.TargetMapping
Mappings. offsetSource(Mappings.TargetMapping mapping, int offset)
Returns a mapping that shifts a given mapping's source by a given offset, incrementing the number of sources by the minimum possible.static Mappings.TargetMapping
Mappings. offsetSource(Mappings.TargetMapping mapping, int offset, int sourceCount)
Returns a mapping that shifts a given mapping's source by a given offset.static Mappings.TargetMapping
Mappings. offsetTarget(Mappings.TargetMapping mapping, int offset)
Returns a mapping that shifts a given mapping's target by a given offset, incrementing the number of targets by the minimum possible.static Mappings.TargetMapping
Mappings. offsetTarget(Mappings.TargetMapping mapping, int offset, int targetCount)
Returns a mapping that shifts a given mapping's target by a given offset.static <T> java.util.List<T>
Mappings. permute(java.util.List<T> list, Mappings.TargetMapping mapping)
Creates a view of a list, permuting according to a target mapping.Constructors in org.apache.calcite.util.mapping with parameters of type Mappings.TargetMapping Constructor Description OverridingTargetMapping(Mappings.TargetMapping parent, int target, int source)
-