org.eigenbase.util.mapping
Interface Mappings.FunctionMapping

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.FunctionMapping

Mapping where every source has a target. But:


Method Summary
 MappingType getMappingType()
           
 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.
 

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:
IndexOutOfBoundsException - if source is not mapped

getMappingType

MappingType getMappingType()

getSourceCount

int getSourceCount()