| 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.rex |
Provides a language for representing row-expressions.
|
| org.apache.calcite.util |
Provides utility classes.
|
| org.apache.calcite.util.mapping |
Support for algebraic maps.
|
| Modifier and Type | Method and Description |
|---|---|
static Mappings.TargetMapping |
RelOptUtil.permutation(List<RexNode> nodes,
RelDataType inputRowType)
Returns a permutation describing where output fields come from.
|
| Modifier and Type | Method and Description |
|---|---|
static RelNode |
RelOptUtil.createProject(RelNode child,
Mappings.TargetMapping mapping)
Creates a
LogicalProject that
projects particular fields of its input, according to a mapping. |
| Modifier and Type | Method and Description |
|---|---|
RelDistribution |
RelDistribution.apply(Mappings.TargetMapping mapping) |
| Modifier and Type | Method and Description |
|---|---|
Mappings.TargetMapping |
Project.getMapping()
Returns a mapping, or null if this projection is not a mapping.
|
static Mappings.TargetMapping |
Project.getMapping(int inputFieldCount,
List<? extends RexNode> projects)
Returns a mapping of a set of project expressions.
|
static Mappings.TargetMapping |
Project.getPartialMapping(int inputFieldCount,
List<? extends RexNode> projects)
Returns a partial mapping of a set of project expressions.
|
| Modifier and Type | Method and Description |
|---|---|
AggregateCall |
AggregateCall.transform(Mappings.TargetMapping mapping)
Creates a copy of this aggregate call, applying a mapping to its
arguments.
|
| Modifier and Type | Method and Description |
|---|---|
static Iterable<RexNode> |
RexUtil.apply(Mappings.TargetMapping mapping,
Iterable<? extends RexNode> nodes)
Applies a mapping to an iterable over expressions.
|
static List<RelCollation> |
RexUtil.apply(Mappings.TargetMapping mapping,
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 List<RelFieldCollation> |
RexUtil.applyFields(Mappings.TargetMapping mapping,
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.
|
| Constructor and Description |
|---|
RexPermuteInputsShuttle(Mappings.TargetMapping mapping,
RelNode... inputs)
Creates a RexPermuteInputsShuttle.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Permutation
Represents a mapping which reorders elements in an array.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Mapping
A Mapping is a relationship between a source domain to target
domain of integers.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractSourceMapping
Simple implementation of
Mappings.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 of
Mappings.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 of
Mapping. |
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.
|
static class |
Mappings.OverridingSourceMapping
Source mapping that returns the same result as a parent
Mappings.SourceMapping except for specific overriding elements. |
static class |
Mappings.OverridingTargetMapping
Target mapping that returns the same result as a parent
Mappings.TargetMapping except for specific overriding elements. |
static class |
Mappings.PartialMapping
A mapping where a source has at most one target, and every target has at
most one source.
|
| Modifier and Type | Method and 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(com.google.common.base.Function<Integer,Integer> function,
int sourceCount,
int targetCount) |
static Mappings.TargetMapping |
Mappings.target(Map<Integer,Integer> map,
int sourceCount,
int targetCount)
Converts a
Map of integers to a Mappings.TargetMapping. |
| Modifier and Type | Method and Description |
|---|---|
static Mappings.TargetMapping |
Mappings.append(Mappings.TargetMapping mapping0,
Mappings.TargetMapping mapping1)
Creates a mapping by appending two mappings.
|
static List<Integer> |
Mappings.asList(Mappings.TargetMapping mapping)
Returns a mapping as a list such that
list.get(source) is
mapping.getTarget(source) and list.size() is
mapping.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> List<T> |
Mappings.permute(List<T> list,
Mappings.TargetMapping mapping)
Creates a view of a list, permuting according to a target mapping.
|
| Constructor and Description |
|---|
Mappings.OverridingTargetMapping(Mappings.TargetMapping parent,
int target,
int source) |
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.