Package org.apache.calcite.util.mapping
Support for algebraic maps.

Interface Summary Interface Description Mapping A Mapping is a relationship between a source domain to target domain of integers.Mappings.CoreMapping Core interface of all mappings.Mappings.FunctionMapping Mapping where every source has a target.Mappings.SourceMapping Mapping suitable for sourcing columns.Mappings.TargetMapping Mapping suitable for mapping columns to a target. 
Class Summary Class Description 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,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,IntPair An immutable pair of integers.Mappings Utility functions related to mappings.Mappings.AbstractMapping Abstract implementation ofMapping
.Mappings.FiniteAbstractMapping Abstract implementation of mapping where both source and target domains are finite.Mappings.FunctionMappingIter Iterator that yields the (source, target) values in aMappings.FunctionMapping
.Mappings.IdentityMapping The identity mapping, of a given size, or infinite.Mappings.InverseMapping Decorator which converts anyMapping
into the inverse of itself.Mappings.OverridingSourceMapping Source mapping that returns the same result as a parentMappings.SourceMapping
except for specific overriding elements.Mappings.OverridingTargetMapping Target mapping that returns the same result as a parentMappings.TargetMapping
except for specific overriding elements.Mappings.PartialFunctionImpl Implementation ofMapping
where a source can have at most one target, and a target can have any number of sources.Mappings.PartialMapping A mapping where a source has at most one target, and every target has at most one source.Mappings.SurjectionWithInverse A surjection with inverse has precisely one source for each target. 
Enum Summary Enum Description MappingType 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 retrictedMappingType.BIJECTION
(every element in the source and target domain must be paired with precisely one element in the other domain). 
Exception Summary Exception Description Mappings.NoElementException Thrown when a mapping is expected to return one element but returns none.Mappings.TooManyElementsException Thrown when a mapping is expected to return one element but returns several.