org.eigenbase.util.mapping
Interface Mappings.TargetMapping
- All Known Subinterfaces:
- Mapping
- All Known Implementing Classes:
- 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.TargetMapping
Mapping suitable for mapping columns to a target.
Properties:
- It has a finite number of sources and targets
- Each target has at most one source
- Each source has exactly one target
TODO: figure out which interfaces this should extend
getSourceCount
int getSourceCount()
getSourceOpt
int getSourceOpt(int target)
getTargetCount
int getTargetCount()
getTarget
int getTarget(int target)
getTargetOpt
int getTargetOpt(int source)
set
void set(int source,
int target)
getMappingType
MappingType getMappingType()
inverse
Mapping inverse()