Package org.apache.calcite.util.mapping
package org.apache.calcite.util.mapping
Support for algebraic maps.
-
ClassDescriptionSimple implementation of
Mappings.TargetMapping
where the number of sources and targets are specified as constructor parameters, and you just need to implement one method.Simple implementation ofMappings.TargetMapping
where the number of sources and targets are specified as constructor parameters, and you just need to implement one method.An immutable pair of integers.A Mapping is a relationship between a source domain to target domain of integers.Utility functions related to mappings.Abstract implementation ofMapping
.Core interface of all mappings.Abstract implementation of mapping where both source and target domains are finite.Mapping where every source has a target.The identity mapping, of a given size, or infinite.Thrown when a mapping is expected to return one element but returns none.Source mapping that returns the same result as a parentMappings.SourceMapping
except for specific overriding elements.Target mapping that returns the same result as a parentMappings.TargetMapping
except for specific overriding elements.A mapping where a source has at most one target, and every target has at most one source.Mapping suitable for sourcing columns.Mapping suitable for mapping columns to a target.Thrown when a mapping is expected to return one element but returns several.Describes the type of a mapping, from the most generalMappingType.MULTI_FUNCTION
(every element in the source and target domain can participate in many mappings) to the most restrictedMappingType.BIJECTION
(every element in the source and target domain must be paired with precisely one element in the other domain).