Package org.apache.calcite.util.mapping
Interface Mappings.SourceMapping
-
- All Superinterfaces:
java.lang.Iterable<IntPair>
,Mappings.CoreMapping
- All Known Subinterfaces:
Mapping
- 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.SourceMapping extends Mappings.CoreMapping
Mapping suitable for sourcing columns.Properties:
- It has a finite number of sources and targets
- Each target has exactly one source
- Each source has at most one target
TODO: figure out which interfaces this should extend
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MappingType
getMappingType()
Returns the mapping type.int
getSource(int target)
int
getSourceCount()
int
getSourceOpt(int target)
int
getTargetCount()
int
getTargetOpt(int source)
Mapping
inverse()
boolean
isIdentity()
-
Methods inherited from interface org.apache.calcite.util.mapping.Mappings.CoreMapping
size
-
-
-
-
Method Detail
-
getSourceCount
int getSourceCount()
-
getSource
int getSource(int target)
-
getSourceOpt
int getSourceOpt(int target)
-
getTargetCount
int getTargetCount()
-
getTargetOpt
int getTargetOpt(int source)
-
getMappingType
MappingType getMappingType()
Description copied from interface:Mappings.CoreMapping
Returns the mapping type.- Specified by:
getMappingType
in interfaceMappings.CoreMapping
- Returns:
- Mapping type
-
isIdentity
boolean isIdentity()
-
inverse
Mapping inverse()
-
-