Package org.apache.calcite.util.mapping
Interface Mappings.FunctionMapping
-
- All Superinterfaces:
java.lang.Iterable<IntPair>
,Mappings.CoreMapping
- All Known Subinterfaces:
Mapping
,Mappings.TargetMapping
- All Known Implementing Classes:
AbstractSourceMapping
,AbstractTargetMapping
,Mappings.AbstractMapping
,Mappings.FiniteAbstractMapping
,Mappings.IdentityMapping
,Mappings.InverseMapping
,Mappings.OverridingSourceMapping
,Mappings.OverridingTargetMapping
,Mappings.PartialFunctionImpl
,Mappings.PartialMapping
,Mappings.SurjectionWithInverse
,Permutation
- Enclosing class:
- Mappings
public static interface Mappings.FunctionMapping extends Mappings.CoreMapping
Mapping where every source has a target. But:- A target may not have a source.
- May not be finite.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MappingType
getMappingType()
Returns the mapping type.int
getSourceCount()
int
getTarget(int source)
Returns the target that a source maps to.int
getTargetOpt(int source)
Returns the target that a source maps to, or -1 if it is not mapped.-
Methods inherited from interface org.apache.calcite.util.mapping.Mappings.CoreMapping
size
-
-
-
-
Method Detail
-
getTargetOpt
int getTargetOpt(int source)
Returns the target that a source maps to, or -1 if it is not mapped.
-
getTarget
int getTarget(int source)
Returns the target that a source maps to.- Parameters:
source
- source- Returns:
- target
- Throws:
Mappings.NoElementException
- if source is not mapped
-
getMappingType
MappingType getMappingType()
Description copied from interface:Mappings.CoreMapping
Returns the mapping type.- Specified by:
getMappingType
in interfaceMappings.CoreMapping
- Returns:
- Mapping type
-
getSourceCount
int getSourceCount()
-
-