Package org.teiid.query.sql.util
Class SymbolMap
- java.lang.Object
-
- org.teiid.query.sql.util.SymbolMap
-
public class SymbolMap extends Object
-
-
Constructor Summary
Constructors Constructor Description SymbolMap()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addMapping(ElementSymbol symbol, Expression expression)
Map<ElementSymbol,Expression>
asMap()
Map<ElementSymbol,Expression>
asUpdatableMap()
SymbolMap
clone()
static SymbolMap
createSymbolMap(List<ElementSymbol> virtualElements, List<? extends Expression> mappedCols)
static SymbolMap
createSymbolMap(GroupSymbol virtualGroup, List<? extends Expression> projectCols, QueryMetadataInterface metadata)
static Expression
getExpression(Expression symbol)
List<ElementSymbol>
getKeys()
Expression
getMappedExpression(ElementSymbol symbol)
List<Expression>
getValues()
Map<Expression,ElementSymbol>
inserseMapping()
String
toString()
-
-
-
Method Detail
-
inserseMapping
public Map<Expression,ElementSymbol> inserseMapping()
-
addMapping
public boolean addMapping(ElementSymbol symbol, Expression expression)
- Returns:
- true if the map did not already contained the given symbol
-
getExpression
public static final Expression getExpression(Expression symbol)
-
getMappedExpression
public Expression getMappedExpression(ElementSymbol symbol)
-
asUpdatableMap
public Map<ElementSymbol,Expression> asUpdatableMap()
-
asMap
public Map<ElementSymbol,Expression> asMap()
-
getKeys
public List<ElementSymbol> getKeys()
-
getValues
public List<Expression> getValues()
-
createSymbolMap
public static final SymbolMap createSymbolMap(GroupSymbol virtualGroup, List<? extends Expression> projectCols, QueryMetadataInterface metadata) throws QueryMetadataException, TeiidComponentException
-
createSymbolMap
public static final SymbolMap createSymbolMap(List<ElementSymbol> virtualElements, List<? extends Expression> mappedCols)
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-