Uses of Interface
org.teiid.query.sql.symbol.Expression
-
-
Uses of Expression in org.teiid.common.buffer
Methods in org.teiid.common.buffer that return types with arguments of type Expression Modifier and Type Method Description List<? extends Expression>
TupleBuffer. getSchema()
Method parameters in org.teiid.common.buffer with type arguments of type Expression Modifier and Type Method Description STree
BufferManager. createSTree(List<? extends Expression> elements, String groupName, int keyLength)
static int[]
LobManager. getLobIndexes(List<? extends Expression> expressions)
int
BufferManager. getProcessorBatchSize(List<? extends Expression> schema)
Get the batch size to use during query processing.int
BufferManager. getSchemaSize(List<? extends Expression> elements)
Get the size estimate for the given schema.static String[]
TupleBuffer. getTypeNames(List<? extends Expression> expressions)
Gets the data type names for each of the input expressions, in order.Constructor parameters in org.teiid.common.buffer with type arguments of type Expression Constructor Description TupleBuffer(BatchManager manager, String id, List<? extends Expression> schema, LobManager lobManager, int batchSize)
-
Uses of Expression in org.teiid.common.buffer.impl
Method parameters in org.teiid.common.buffer.impl with type arguments of type Expression Modifier and Type Method Description STree
BufferManagerImpl. createSTree(List<? extends Expression> elements, String groupName, int keyLength)
int
BufferManagerImpl. getProcessorBatchSize(List<? extends Expression> schema)
int
BufferManagerImpl. getSchemaSize(List<? extends Expression> elements)
-
Uses of Expression in org.teiid.dqp.internal.datamgr
Methods in org.teiid.dqp.internal.datamgr with parameters of type Expression Modifier and Type Method Description Expression
LanguageBridgeFactory. translate(Expression expr)
-
Uses of Expression in org.teiid.dqp.internal.process
Methods in org.teiid.dqp.internal.process with parameters of type Expression Modifier and Type Method Description static String
MetaDataProcessor. getColumnName(boolean pgColumnNames, Expression symbol)
static void
MetaDataProcessor. setColumnMetadata(Column column, Expression symbol, QueryMetadataInterface metadata)
Set the easily determined metadata from symbol on the given Column -
Uses of Expression in org.teiid.dqp.internal.process.multisource
Methods in org.teiid.dqp.internal.process.multisource that return Expression Modifier and Type Method Description Expression
MultiSourceElementReplacementVisitor. replaceExpression(Expression expr)
Methods in org.teiid.dqp.internal.process.multisource with parameters of type Expression Modifier and Type Method Description Expression
MultiSourceElementReplacementVisitor. replaceExpression(Expression expr)
-
Uses of Expression in org.teiid.query.analysis
Method parameters in org.teiid.query.analysis with type arguments of type Expression Modifier and Type Method Description static List<String>
AnalysisRecord. getOutputColumnProperties(List<? extends Expression> projectedSymbols)
Helper method to turn a list of projected symbols into a suitable list of output column strings with name and type. -
Uses of Expression in org.teiid.query.eval
Methods in org.teiid.query.eval with parameters of type Expression Modifier and Type Method Description static Object
Evaluator. evaluate(Expression expression)
Object
Evaluator. evaluate(Expression expression, List<?> tuple)
protected Object
Evaluator. internalEvaluate(Expression expression, List<?> tuple)
-
Uses of Expression in org.teiid.query.function
Methods in org.teiid.query.function with parameters of type Expression Modifier and Type Method Description FunctionLibrary.ConversionResult
FunctionLibrary. determineNecessaryConversions(String name, Class<?> returnType, Expression[] args, Class<?>[] types, boolean hasUnknownType)
Get the conversions that are needed to call the named function with arguments of the given type. -
Uses of Expression in org.teiid.query.metadata
Methods in org.teiid.query.metadata that return types with arguments of type Expression Modifier and Type Method Description Map<Expression,Integer>
BasicQueryMetadata. getFunctionBasedExpressions(Object metadataID)
Map<Expression,Integer>
BasicQueryMetadataWrapper. getFunctionBasedExpressions(Object metadataID)
Map<Expression,Integer>
QueryMetadataInterface. getFunctionBasedExpressions(Object metadataID)
Map<Expression,Integer>
TempMetadataAdapter. getFunctionBasedExpressions(Object metadataID)
LinkedHashMap<Expression,Integer>
TempMetadataID.TableData. getFunctionBasedExpressions()
Methods in org.teiid.query.metadata with parameters of type Expression Modifier and Type Method Description TempMetadataID
TempMetadataStore. addElementSymbolToTempGroup(String tempGroup, Expression symbol)
Add a element symbol to the already created temp group.Method parameters in org.teiid.query.metadata with type arguments of type Expression Modifier and Type Method Description TempMetadataID
TempMetadataStore. addTempGroup(String tempGroup, List<? extends Expression> tempSymbols, boolean isVirtual, boolean isTempTable)
Add a temp group and all it's elementsvoid
TempMetadataID.TableData. setFunctionBasedExpressions(LinkedHashMap<Expression,Integer> newExprs)
-
Uses of Expression in org.teiid.query.optimizer
Methods in org.teiid.query.optimizer that return types with arguments of type Expression Modifier and Type Method Description List<Expression>
SourceTriggerActionPlanner.SourceEventCommand. getProjectedSymbols()
-
Uses of Expression in org.teiid.query.optimizer.relational
Methods in org.teiid.query.optimizer.relational that return types with arguments of type Expression Modifier and Type Method Description static List<? extends Expression>
ColumnMaskingHelper. maskColumns(List<ElementSymbol> cols, GroupSymbol group, QueryMetadataInterface metadata, CommandContext cc)
Method parameters in org.teiid.query.optimizer.relational with type arguments of type Expression Modifier and Type Method Description static SymbolMap
RelationalPlanner. buildGroupingNode(Collection<AggregateSymbol> aggs, List<? extends Expression> groupingCols, PlanNode groupNode, CommandContext cc, IDGenerator idGenerator)
Build a grouping node that introduces a anon group (without a inline view source node)Query
RelationalPlanner. createMatViewQuery(Object viewMatadataId, Object matMetadataId, String matTableName, List<? extends Expression> select, boolean isGlobal)
static Query
RelationalPlanner. createMatViewQuery(Object matMetadataId, String matTableName, List<? extends Expression> select, boolean isGlobal)
static PlanNode
RelationalPlanner. createProjectNode(List<? extends Expression> select)
-
Uses of Expression in org.teiid.query.optimizer.relational.rules
Methods in org.teiid.query.optimizer.relational.rules that return Expression Modifier and Type Method Description Expression
RulePlanSubqueries.ReferenceReplacementVisitor. replaceExpression(Expression element)
Methods in org.teiid.query.optimizer.relational.rules that return types with arguments of type Expression Modifier and Type Method Description static LinkedHashMap<ElementSymbol,Expression>
FrameUtil. buildSymbolMap(GroupSymbol oldGroup, GroupSymbol newGroup, QueryMetadataInterface metadata)
creates a symbol map of elements in oldGroup mapped to corresponding elements in newGroup if newGroup is null, then a mapping of oldGroup elements to null constants will be returnedstatic List<Expression>
RuleChooseJoinStrategy. createExpressionSymbols(List<? extends Expression> expressions)
Methods in org.teiid.query.optimizer.relational.rules with parameters of type Expression Modifier and Type Method Description void
CriteriaCapabilityValidatorVisitor. checkCompareCriteria(AbstractCompareCriteria obj, Expression rightExpression)
RulePlanSubqueries.PlannedResult
RulePlanSubqueries. findSubquery(Expression expr, boolean unnest, RulePlanSubqueries.PlannedResult result, boolean requireSingleRow)
static boolean
JoinUtil. isNullDependent(QueryMetadataInterface metadata, Collection<GroupSymbol> innerGroups, Expression expr)
Expression
RulePlanSubqueries.ReferenceReplacementVisitor. replaceExpression(Expression element)
Method parameters in org.teiid.query.optimizer.relational.rules with type arguments of type Expression Modifier and Type Method Description static List<Expression>
RuleChooseJoinStrategy. createExpressionSymbols(List<? extends Expression> expressions)
static PlanNode
RuleChooseDependent. getDependentCriteriaNode(String id, List<Expression> independentExpressions, List<Expression> dependentExpressions, PlanNode indNode, QueryMetadataInterface metadata, NewCalculateCostUtil.DependentCostAnalysis dca, Boolean bound, Option.MakeDep makeDep)
static Object
NewCalculateCostUtil. getKeyUsed(Collection<? extends Expression> allElements, Set<GroupSymbol> groups, QueryMetadataInterface metadata, Boolean unique)
static Set<WindowFunction>
RuleAssignOutputElements. getWindowFunctions(List<Expression> projectCols)
static boolean
RulePlanSubqueries. isDistinct(Query query, List<Expression> expressions, QueryMetadataInterface metadata)
static void
RuleChooseJoinStrategy. separateCriteria(Collection<GroupSymbol> leftGroups, Collection<GroupSymbol> rightGroups, List<Expression> leftExpressions, List<Expression> rightExpressions, List<Criteria> crits, Collection<Criteria> nonEquiJoinCriteria)
static boolean
NewCalculateCostUtil. usesKey(Collection<? extends Expression> allElements, Set<GroupSymbol> groups, QueryMetadataInterface metadata, boolean unique)
static boolean
NewCalculateCostUtil. usesKey(Collection<? extends Expression> allElements, QueryMetadataInterface metadata)
TODO: this uses key check is not really accurate, it doesn't take into consideration where we are in the plan. -
Uses of Expression in org.teiid.query.parser
Methods in org.teiid.query.parser that return types with arguments of type Expression Modifier and Type Method Description ArrayList<Expression>
SQLParser. expressionList(ParseInfo info)
Methods in org.teiid.query.parser with parameters of type Expression Modifier and Type Method Description BetweenCriteria
SQLParser. betweenCrit(ParseInfo info, Expression expression)
CompareCriteria
SQLParser. compareCrit(ParseInfo info, Expression expression)
IsDistinctCriteria
SQLParser. isDistinct(ParseInfo info, Expression expression)
IsNullCriteria
SQLParser. isNullCrit(ParseInfo info, Expression expression)
MatchCriteria
SQLParser. matchCrit(ParseInfo info, Expression expression)
MatchCriteria
SQLParser. regexMatchCrit(ParseInfo info, Expression expression)
AbstractSetCriteria
SQLParser. setCrit(ParseInfo info, Expression expression)
static void
SQLParserUtil. setDefault(BaseColumn column, Expression value)
SubqueryCompareCriteria
SQLParser. subqueryCompareCriteria(ParseInfo info, Expression expression)
Expression
SQLParser. windowSpecification(Expression agg, ParseInfo info)
-
Uses of Expression in org.teiid.query.processor.proc
Methods in org.teiid.query.processor.proc that return Expression Modifier and Type Method Description Expression
AssignmentInstruction. getExpression()
Methods in org.teiid.query.processor.proc that return types with arguments of type Expression Modifier and Type Method Description List<Expression>
ForEachRowPlan. getOutputElements()
Methods in org.teiid.query.processor.proc with parameters of type Expression Modifier and Type Method Description void
AssignmentInstruction. setExpression(Expression expression)
void
ErrorInstruction. setExpression(Expression expression)
Method parameters in org.teiid.query.processor.proc with type arguments of type Expression Modifier and Type Method Description void
ForEachRowPlan. setLookupMap(Map<Expression,Integer> symbolMap)
void
ForEachRowPlan. setParams(Map<ElementSymbol,Expression> params)
void
ProcedurePlan. setParams(LinkedHashMap<ElementSymbol,Expression> params)
-
Uses of Expression in org.teiid.query.processor.relational
Methods in org.teiid.query.processor.relational that return Expression Modifier and Type Method Description Expression
AccessNode. getConnectorBindingExpression()
Expression
LimitNode. getLimitExpr()
Expression
LimitNode. getOffsetExpr()
Methods in org.teiid.query.processor.relational that return types with arguments of type Expression Modifier and Type Method Description static Map<Expression,Integer>
RelationalNode. createLookupMap(List<? extends Expression> elements)
Useful function to build an element lookup map from an element list.List<? extends Expression>
RelationalNode. getElements()
List<Expression>
AccessNode. getOriginalSelect()
List<? extends Expression>
RelationalNode. getOutputElements()
List<? extends Expression>
RelationalPlan. getOutputElements()
Get list of resolved elements describing output columns for this plan.List<? extends Expression>
DependentValueSource. getSchema()
List<? extends Expression>
ProjectNode. getSelectSymbols()
return List of select symbolsMethods in org.teiid.query.processor.relational with parameters of type Expression Modifier and Type Method Description Set<Object>
DependentValueSource. getCachedSet(Expression valueExpression)
org.teiid.query.processor.relational.TupleSourceValueIterator
DependentValueSource. getValueIterator(Expression valueExpression)
void
AccessNode. setConnectorBindingExpression(Expression connectorBindingExpression)
Method parameters in org.teiid.query.processor.relational with type arguments of type Expression Modifier and Type Method Description static Map<Expression,Integer>
RelationalNode. createLookupMap(List<? extends Expression> elements)
Useful function to build an element lookup map from an element list.static int[]
RelationalNode. getProjectionIndexes(Map<? extends Expression,Integer> tupleElements, List<? extends Expression> projectElements)
Helper method for all the node that will filter the elements needed for the next node.static int[]
RelationalNode. getProjectionIndexes(Map<? extends Expression,Integer> tupleElements, List<? extends Expression> projectElements)
Helper method for all the node that will filter the elements needed for the next node.void
RelationalNode. setElements(List<? extends Expression> elements)
void
RelationalPlan. setOutputElements(List<? extends Expression> outputCols)
void
SelectNode. setProjectedExpressions(List<Expression> projectedExpressions)
void
ProjectNode. setSelectSymbols(List<? extends Expression> symbols)
Constructors in org.teiid.query.processor.relational with parameters of type Expression Constructor Description LimitNode(int nodeID, Expression limitExpr, Expression offsetExpr)
Constructor parameters in org.teiid.query.processor.relational with type arguments of type Expression Constructor Description DependentValueSource(TupleBuffer tb, List<? extends Expression> schema)
SortUtility(TupleSource ts, List<? extends Expression> expressions, List<Boolean> types, SortUtility.Mode mode, BufferManager bufferManager, String connectionID, List schema)
SortUtility(TupleSource sourceID, SortUtility.Mode mode, BufferManager bufferMgr, String groupName, List<? extends Expression> schema, List<Boolean> sortTypes, List<SortSpecification.NullOrdering> nullOrderings, int[] cols)
-
Uses of Expression in org.teiid.query.resolver
Methods in org.teiid.query.resolver that return types with arguments of type Expression Modifier and Type Method Description static Map<ElementSymbol,Expression>
QueryResolver. getVariableValues(Command command, boolean changingOnly, QueryMetadataInterface metadata)
Map<ElementSymbol,Expression>
VariableResolver. getVariableValues(Command command, boolean changingOnly, QueryMetadataInterface metadata)
Method parameters in org.teiid.query.resolver with type arguments of type Expression Modifier and Type Method Description static GroupSymbol
ProcedureContainerResolver. addScalarGroup(String name, TempMetadataStore metadata, GroupContext externalGroups, List<? extends Expression> symbols)
static GroupSymbol
ProcedureContainerResolver. addScalarGroup(String name, TempMetadataStore metadata, GroupContext externalGroups, List<? extends Expression> symbols, boolean updatable)
static GroupSymbol
ProcedureContainerResolver. addScalarGroup(String name, TempMetadataStore metadata, GroupContext externalGroups, List<? extends Expression> symbols, boolean[] updatable)
static void
QueryResolver. validateProjectedSymbols(GroupSymbol virtualGroup, List<? extends Expression> symbols, List<? extends Expression> projectedSymbols)
-
Uses of Expression in org.teiid.query.resolver.command
Methods in org.teiid.query.resolver.command that return types with arguments of type Expression Modifier and Type Method Description Map<ElementSymbol,Expression>
InsertResolver. getVariableValues(Command command, boolean changingOnly, QueryMetadataInterface metadata)
Map<ElementSymbol,Expression>
UpdateResolver. getVariableValues(Command command, boolean changingOnly, QueryMetadataInterface metadata)
Methods in org.teiid.query.resolver.command with parameters of type Expression Modifier and Type Method Description static boolean
SetQueryResolver. orderByContainsVariable(OrderBy orderBy, Expression ses, int position)
Checks if a variable is in the ORDER BY -
Uses of Expression in org.teiid.query.resolver.util
Methods in org.teiid.query.resolver.util that return Expression Modifier and Type Method Description static Expression
ResolverUtil. convertExpression(Expression sourceExpression, String sourceTypeName, String targetTypeName, QueryMetadataInterface metadata, boolean forComparison)
Replaces a sourceExpression with a conversion of the source expression to the target type.static Expression
ResolverUtil. convertExpression(Expression sourceExpression, String targetTypeName, QueryMetadataInterface metadata)
Replaces a sourceExpression with a conversion of the source expression to the target type.static Expression
ResolverUtil. getDefault(ElementSymbol symbol, QueryMetadataInterface metadata)
Get the default value for the parameter, which could be null if the parameter is set to NULLABLE.Methods in org.teiid.query.resolver.util with parameters of type Expression Modifier and Type Method Description static void
ResolverVisitor. checkException(Expression obj)
static Expression
ResolverUtil. convertExpression(Expression sourceExpression, String sourceTypeName, String targetTypeName, QueryMetadataInterface metadata, boolean forComparison)
Replaces a sourceExpression with a conversion of the source expression to the target type.static Expression
ResolverUtil. convertExpression(Expression sourceExpression, String targetTypeName, QueryMetadataInterface metadata)
Replaces a sourceExpression with a conversion of the source expression to the target type.static Function
ResolverUtil. getConversion(Expression sourceExpression, String sourceTypeName, String targetTypeName, boolean implicit, FunctionLibrary library)
IMPORTANT: source and target must be basic runtime typesstatic void
ResolverUtil. setDesiredType(Expression expression, Class<?> targetType, LanguageObject surroundingExpression)
Utility to set the type of an expression if it is a Reference and has a null type.static void
ResolverUtil. setTypeIfNull(Expression symbol, Class<?> replacement)
Method parameters in org.teiid.query.resolver.util with type arguments of type Expression Modifier and Type Method Description static TempMetadataID
ResolverUtil. addTempGroup(TempMetadataAdapter metadata, GroupSymbol symbol, List<? extends Expression> symbols, boolean tempTable)
static TempMetadataID
ResolverUtil. addTempTable(TempMetadataAdapter metadata, GroupSymbol symbol, List<? extends Expression> symbols)
-
Uses of Expression in org.teiid.query.rewriter
Methods in org.teiid.query.rewriter that return Expression Modifier and Type Method Description static Expression
QueryRewriter. rewriteExpression(Expression expression, CommandContext context, QueryMetadataInterface metadata)
static Expression
QueryRewriter. rewriteExpression(Expression expression, CommandContext context, QueryMetadataInterface metadata, boolean rewriteSubcommands)
Methods in org.teiid.query.rewriter with parameters of type Expression Modifier and Type Method Description static boolean
QueryRewriter. isNull(Expression expr)
static Expression
QueryRewriter. rewriteExpression(Expression expression, CommandContext context, QueryMetadataInterface metadata)
static Expression
QueryRewriter. rewriteExpression(Expression expression, CommandContext context, QueryMetadataInterface metadata, boolean rewriteSubcommands)
Method parameters in org.teiid.query.rewriter with type arguments of type Expression Modifier and Type Method Description static Query
QueryRewriter. createInlineViewQuery(GroupSymbol inlineGroup, Command nested, QueryMetadataInterface metadata, List<? extends Expression> actualSymbols)
static Command
QueryRewriter. rewrite(Command command, QueryMetadataInterface metadata, CommandContext context, Map<ElementSymbol,Expression> variableValues)
-
Uses of Expression in org.teiid.query.sql.lang
Classes in org.teiid.query.sql.lang that implement Expression Modifier and Type Class Description class
AbstractCompareCriteria
The common functionality of aCompareCriteria
and aSubqueryCompareCriteria
.class
AbstractSetCriteria
This is an abstract class to define some common functionality in the two varieties of IN criteria:SetCriteria
(where values are specified) andSubquerySetCriteria
(where a subquery is defined and will supply the values for the IN set).class
AtomicCriteria
This abstract class represents an atomic logical criteria.class
BetweenCriteria
Represents criteria such as: "<expression> [NOT] BETWEEN <lowerExpression> AND <upperExpression>".class
CompareCriteria
A criteria which represents a simple operator relationship between two expressions.class
CompoundCriteria
This class represents a compound criteria for logical expressions.class
Criteria
This class represents the criteria clause for a query, which defines constraints on the data values to be retrieved for each parameter in the select clause.class
DependentSetCriteria
The DependentSetCriteria is missing the value set until it is filled during processing.class
ExistsCriteria
This predicate criteria implements the "exists" predicate, which has a subquery in it.class
ExpressionCriteria
class
ImmutableCompareCriteria
class
IsDistinctCriteria
Represents criteria such as: "<expression> IS DISTINCT FROM <expression>".class
IsNullCriteria
Represents criteria such as: "<expression> IS NULL".class
LogicalCriteria
This class represents a criteria that works by logically combining other criteria.class
MatchCriteria
This class represents a criteria involving a string expression to be matched against a string expression match value.class
NotCriteria
A logical criteria that takes the logical NOT of the contained criteria.class
PredicateCriteria
This abstract class represents a predicate criteria, which involves some statement involving expressions and can be evaluated in the context of a single row of data to be either true or false.class
SetCriteria
A criteria which is true is the expression's value is a member in a list of values.class
SubqueryCompareCriteria
This class implements a quantified comparison predicate.class
SubquerySetCriteria
A criteria which is true is the expression's value is a member in a list of values returned from a subquery.Fields in org.teiid.query.sql.lang declared as Expression Modifier and Type Field Description Expression
DependentSetCriteria.AttributeComparison. dep
Expression
DependentSetCriteria.AttributeComparison. ind
Methods in org.teiid.query.sql.lang that return Expression Modifier and Type Method Description Expression
SubqueryCompareCriteria. getArrayExpression()
Expression
ArrayTable. getArrayValue()
Expression
ObjectTable.ObjectColumn. getDefaultExpression()
Expression
XMLTable.XMLColumn. getDefaultExpression()
Expression
AbstractSetCriteria. getExpression()
Gets the membership expression to be compared.Expression
BetweenCriteria. getExpression()
Get expression.Expression
ExpressionCriteria. getExpression()
Expression
IsNullCriteria. getExpression()
Get expression.Expression
SPParameter. getExpression()
Return the expression defining the value of this parameterExpression
TextTable. getFile()
Expression
JsonTable. getJson()
Expression
AbstractCompareCriteria. getLeftExpression()
Get left expression.Expression
BinaryComparison. getLeftExpression()
Expression
MatchCriteria. getLeftExpression()
Get left expression.Expression
BetweenCriteria. getLowerExpression()
Get the lower expression.Expression
Limit. getOffset()
Expression
BinaryComparison. getRightExpression()
Expression
CompareCriteria. getRightExpression()
Get right expression.Expression
MatchCriteria. getRightExpression()
Get right expression.Expression
Limit. getRowLimit()
Expression
DynamicCommand. getSql()
Expression
OrderByItem. getSymbol()
Expression
Select. getSymbol(int index)
Returns the select symbol at the specified index.Expression
BetweenCriteria. getUpperExpression()
Get the upper expression.Expression
SetClause. getValue()
Expression
DependentSetCriteria. getValueExpression()
Get the independent value expressionExpression
OrderBy. getVariable(int index)
Returns the ORDER BY element at the specified index.Methods in org.teiid.query.sql.lang that return types with arguments of type Expression Modifier and Type Method Description LinkedHashMap<ElementSymbol,Expression>
SetClauseList. getClauseMap()
LinkedHashMap<ElementSymbol,Expression>
StoredProcedure. getProcedureParameters()
List<Expression>
Alter. getProjectedSymbols()
abstract List<Expression>
Command. getProjectedSymbols()
Get the ordered list of all elements returned by this query.List<Expression>
ExplainCommand. getProjectedSymbols()
List<Expression>
Insert. getProjectedSymbols()
Get the ordered list of all elements returned by this query.List<Expression>
Query. getProjectedSymbols()
Get the ordered list of all elements returned by this query.List<Expression>
Select. getProjectedSymbols()
Get the ordered list of all elements returned by this select.List<? extends Expression>
Command. getResultSetColumns()
List<? extends Expression>
DynamicCommand. getResultSetColumns()
List<Expression>
OrderBy. getSortKeys()
Get the list or sort key symbols.List<Expression>
GroupBy. getSymbols()
Returns an ordered list of the symbols in the GROUP BYList<Expression>
Select. getSymbols()
Returns an ordered list of the symbols in the select.static List<Expression>
SetQuery. getTypedProjectedSymbols(List<? extends Expression> acutal, List<Class<?>> projectedTypes, QueryMetadataInterface metadata)
static List<Expression>
Command. getUpdateCommandSymbol()
Methods in org.teiid.query.sql.lang with parameters of type Expression Modifier and Type Method Description void
Update. addChange(ElementSymbol id, Expression value)
Add change to change list - a change is represented by a CompareCriteria internally but can be added here as an element and an expressionvoid
SetClauseList. addClause(ElementSymbol symbol, Expression expression)
void
GroupBy. addSymbol(Expression symbol)
Adds a new symbol to the list of symbols.void
Select. addSymbol(Expression symbol)
void
Insert. addValue(Expression value)
Adds a value to the list of valuesOrderByItem
OrderBy. addVariable(Expression element)
Adds a new variable to the list of order by elements.OrderByItem
OrderBy. addVariable(Expression element, boolean type)
Adds a new variable to the list of order by elements with the specified sort orderboolean
Select. containsSymbol(Expression symbol)
Checks if a symbol is in the Select.void
CompareCriteria. set(Expression leftExpression, int operator, Expression rightExpression)
Sets the operands and operator.void
SetCriteria. set(Expression expression, Collection values)
Sets the membership expression and the set of value expressionsvoid
SubqueryCompareCriteria. setArrayExpression(Expression expression)
void
ArrayTable. setArrayValue(Expression arrayValue)
void
ObjectTable.ObjectColumn. setDefaultExpression(Expression defaultExpression)
void
XMLTable.XMLColumn. setDefaultExpression(Expression defaultExpression)
void
AbstractSetCriteria. setExpression(Expression expression)
Sets the membership expressionvoid
BetweenCriteria. setExpression(Expression expression)
Set expression.void
ExpressionCriteria. setExpression(Expression expression)
void
IsNullCriteria. setExpression(Expression expression)
Set expression.void
SPParameter. setExpression(Expression expression)
Set the expression defining this parametervoid
TextTable. setFile(Expression file)
void
JsonTable. setJson(Expression json)
void
AbstractCompareCriteria. setLeftExpression(Expression expression)
Set left expression.void
BinaryComparison. setLeftExpression(Expression ex)
void
ImmutableCompareCriteria. setLeftExpression(Expression expression)
void
MatchCriteria. setLeftExpression(Expression expression)
Set left expression.void
BetweenCriteria. setLowerExpression(Expression lowerExpression)
Set the lower expression.void
Limit. setOffset(Expression offset)
void
BinaryComparison. setRightExpression(Expression ex)
void
CompareCriteria. setRightExpression(Expression expression)
Set right expression.void
ImmutableCompareCriteria. setRightExpression(Expression expression)
void
MatchCriteria. setRightExpression(Expression expression)
Set right expression.void
Limit. setRowLimit(Expression rowLimit)
void
DynamicCommand. setSql(Expression sql)
void
OrderByItem. setSymbol(Expression symbol)
void
BetweenCriteria. setUpperExpression(Expression upperExpression)
Set the upper expression.void
SetClause. setValue(Expression value)
void
DependentSetCriteria. setValueExpression(Expression valueExpression)
Set the independent value expressionMethod parameters in org.teiid.query.sql.lang with type arguments of type Expression Modifier and Type Method Description void
Select. addSymbols(Collection<? extends Expression> toAdd)
static boolean
Query. areColumnsCachable(Collection<? extends Expression> projectedSymbols)
static List<Expression>
SetQuery. getTypedProjectedSymbols(List<? extends Expression> acutal, List<Class<?>> projectedTypes, QueryMetadataInterface metadata)
static Query
Query. rowConstructor(List<Expression> select)
void
Select. setSymbols(Collection<? extends Expression> symbols)
Sets an ordered list of the symbols in the select.Constructors in org.teiid.query.sql.lang with parameters of type Expression Constructor Description BetweenCriteria(Expression expression, Expression lowerExpression, Expression upperExpression)
Constructs an instance of this class with an expressionCompareCriteria(Expression leftExpression, int operator, Expression rightExpression)
Constructs an instance of this class for a specific "operand operator operand" clause.DependentSetCriteria(Expression expr, String id)
Construct with the left expressionDynamicCommand(Expression sql, List columns, GroupSymbol intoGroup, SetClauseList using)
ExpressionCriteria(Expression expression)
ImmutableCompareCriteria(Expression leftExpression, int operator, Expression rightExpression)
IsNullCriteria(Expression expression)
Constructs an instance of this class with an expressionLimit(Expression offset, Expression rowLimit)
MatchCriteria(Expression leftExpression, Expression rightExpression)
Constructs an instance of this class from a left and right expressionMatchCriteria(Expression leftExpression, Expression rightExpression, char escapeChar)
Constructs an instance of this class from a left and right expression and an escape characterObjectColumn(String name, String type, String path, Expression defaultExpression)
OrderByItem(Expression symbol, boolean ascending)
SetClause(ElementSymbol symbol, Expression value)
SetCriteria(Expression expression, Collection values)
Constructs an instance of this class with the membership expression and value expressionsSPParameter(int index, Expression expression)
Constructor used when constructing a parameter during execution.SubqueryCompareCriteria(Expression leftExpression, QueryCommand subCommand, int operator, int predicateQuantifier)
SubquerySetCriteria(Expression expression, QueryCommand subCommand)
XMLColumn(String name, String type, String path, Expression defaultExpression)
Constructor parameters in org.teiid.query.sql.lang with type arguments of type Expression Constructor Description GroupBy(List<? extends Expression> symbols)
Constructs an instance of this class from an ordered set of symbols.OrderBy(List<? extends Expression> parameters)
Constructs an instance of this class from an ordered list of elements.OrderBy(List<? extends Expression> parameters, List<Boolean> types)
Constructs an instance of this class from an ordered set of elements.Select(List<? extends Expression> symbols)
Constructs an instance of this class from an ordered set of symbols. -
Uses of Expression in org.teiid.query.sql.proc
Classes in org.teiid.query.sql.proc that implement Expression Modifier and Type Class Description class
ExceptionExpression
Methods in org.teiid.query.sql.proc that return Expression Modifier and Type Method Description Expression
ExceptionExpression. getErrorCode()
Expression
AssignmentStatement. getExpression()
Expression
ExpressionStatement. getExpression()
Expression
RaiseStatement. getExpression()
Expression
ExceptionExpression. getMessage()
Expression
ExceptionExpression. getParent()
Expression
ExceptionExpression. getSqlState()
Methods in org.teiid.query.sql.proc that return types with arguments of type Expression Modifier and Type Method Description List<Expression>
TriggerAction. getProjectedSymbols()
List<? extends Expression>
CreateProcedureCommand. getResultSetColumns()
Methods in org.teiid.query.sql.proc with parameters of type Expression Modifier and Type Method Description void
ExceptionExpression. setErrorCode(Expression errCode)
void
AssignmentStatement. setExpression(Expression expression)
void
ExpressionStatement. setExpression(Expression expr)
void
RaiseStatement. setExpression(Expression expression)
void
ExceptionExpression. setMessage(Expression message)
void
ExceptionExpression. setParent(Expression parent)
void
ExceptionExpression. setSqlState(Expression sqlState)
Method parameters in org.teiid.query.sql.proc with type arguments of type Expression Modifier and Type Method Description void
CreateProcedureCommand. setResultSetColumns(List<? extends Expression> resultSetColumns)
Constructors in org.teiid.query.sql.proc with parameters of type Expression Constructor Description AssignmentStatement(ElementSymbol variable, Expression value)
DeclareStatement(ElementSymbol variable, String varType, Expression value)
Constructor for DeclareStatement.RaiseStatement(Expression message)
Constructor for RaiseErrorStatement.RaiseStatement(Expression message, boolean warning)
ReturnStatement(Expression value)
-
Uses of Expression in org.teiid.query.sql.symbol
Subinterfaces of Expression in org.teiid.query.sql.symbol Modifier and Type Interface Description interface
DerivedExpression
interface
NamedExpression
An expression with a simple name, such as a function or aggregate functionClasses in org.teiid.query.sql.symbol that implement Expression Modifier and Type Class Description class
AbstractCaseExpression
class
AggregateSymbol
An aggregate symbol represents an aggregate function.class
AliasSymbol
An AliasSymbol wraps a SingleElementSymbol and changes it's name.class
Array
class
CaseExpression
class
Constant
This class represents a literal value in a SQL string.class
ElementSymbol
This is a subclass of Symbol representing a single element.class
ExpressionSymbol
class
Function
Represents a function in a sql statement.class
JSONObject
class
MultipleElementSymbol
This is a subclass of Symbol representing multiple output columns.class
QueryString
Represents query string name value pairsclass
Reference
This class represents a reference (positional from the user query, or to an element from another scope).class
ScalarSubquery
This is an Expression implementation that can be used in a SELECT clause.class
SearchedCaseExpression
class
TextLine
Represents the only allowable expression for the textagg aggregate.class
WindowFunction
class
XMLCast
class
XMLElement
Represents XMLElementclass
XMLExists
class
XMLForest
class
XMLParse
class
XMLQuery
class
XMLSerialize
Methods in org.teiid.query.sql.symbol that return Expression Modifier and Type Method Description Expression
Function. getArg(int index)
Get argument at specified indexExpression[]
Function. getArgs()
Get function argumentsExpression
AggregateSymbol. getCondition()
Expression
AbstractCaseExpression. getElseExpression()
Gets the expression in the ELSE part of this expression.Expression
CaseExpression. getExpression()
Gets the expression whose evaluation is being tested in this case expression.Expression
DerivedColumn. getExpression()
Expression
ExpressionSymbol. getExpression()
Get the expression for this symbolExpression
XMLCast. getExpression()
Expression
XMLParse. getExpression()
Expression
XMLSerialize. getExpression()
Expression
QueryString. getPath()
Expression
AliasSymbol. getSymbol()
Get the underlying symbolExpression
AbstractCaseExpression. getThenExpression(int index)
Gets the expression of the THEN part at the given index.Expression
CaseExpression. getWhenExpression(int index)
Gets the WHEN expression at the given 0-based index.Methods in org.teiid.query.sql.symbol that return types with arguments of type Expression Modifier and Type Method Description List<Expression>
XMLElement. getContent()
List<Expression>
Array. getExpressions()
List<Expression>
WindowSpecification. getPartition()
Methods in org.teiid.query.sql.symbol with parameters of type Expression Modifier and Type Method Description static String
Symbol. getName(Expression ex)
static String
Symbol. getOutputName(Expression ex)
static String
Symbol. getShortName(Expression ex)
void
Function. setArgs(Expression[] args)
Set the function arguments - it is assumed that the args are not null.void
AggregateSymbol. setCondition(Expression condition)
void
AbstractCaseExpression. setElseExpression(Expression elseExpression)
Sets the expression in the ELSE part of this expression.void
CaseExpression. setExpression(Expression expr)
Sets the expression for this case expressionvoid
DerivedColumn. setExpression(Expression expression)
void
ExpressionSymbol. setExpression(Expression expression)
Set the expression represented by this symbol.void
XMLCast. setExpression(Expression expression)
void
XMLParse. setExpression(Expression expression)
void
XMLSerialize. setExpression(Expression expression)
void
QueryString. setPath(Expression path)
void
AliasSymbol. setSymbol(Expression symbol)
Set the underlying symbolMethod parameters in org.teiid.query.sql.symbol with type arguments of type Expression Modifier and Type Method Description void
XMLElement. setContent(List<Expression> args)
void
WindowSpecification. setPartition(List<Expression> grouping)
Constructors in org.teiid.query.sql.symbol with parameters of type Expression Constructor Description AggregateSymbol(String aggregateFunction, boolean isDistinct, Expression expression)
Construct an aggregate symbol with all given data.AggregateSymbol(String aggregateFunction, boolean isDistinct, Expression[] args, OrderBy orderBy)
AggregateSymbol(String name, AggregateSymbol.Type aggregateFunction, boolean isDistinct, Expression[] args)
Constructor used for cloningAliasSymbol(String name, Expression symbol)
Construct an AliasSymbol given the alias name and the underlying symbol.CaseExpression(Expression expression, List when, List then)
Constructor for CaseExpression objectsDerivedColumn(String name, Expression expression)
ExpressionSymbol(String name, Expression expression)
Construct an ExpressionSymbol with name and expression.Function(String name, Expression[] args)
Construct a function with function name and array of arguments.QueryString(Expression path, List<DerivedColumn> args)
XMLCast(Expression expression, String typeName)
Constructor parameters in org.teiid.query.sql.symbol with type arguments of type Expression Constructor Description Array(Class<?> baseType, List<Expression> expresssions)
Array(List<Expression> expressions)
XMLElement(String name, List<Expression> content)
-
Uses of Expression in org.teiid.query.sql.util
Methods in org.teiid.query.sql.util that return Expression Modifier and Type Method Description static Expression
SymbolMap. getExpression(Expression symbol)
Expression
SymbolMap. getMappedExpression(ElementSymbol symbol)
Methods in org.teiid.query.sql.util that return types with arguments of type Expression Modifier and Type Method Description Map<ElementSymbol,Expression>
SymbolMap. asMap()
Map<ElementSymbol,Expression>
SymbolMap. asUpdatableMap()
List<Expression>
SymbolMap. getValues()
Map<Expression,ElementSymbol>
SymbolMap. inserseMapping()
Methods in org.teiid.query.sql.util with parameters of type Expression Modifier and Type Method Description boolean
SymbolMap. addMapping(ElementSymbol symbol, Expression expression)
Set<Object>
ValueIteratorSource. getCachedSet(Expression valueExpression)
static Expression
SymbolMap. getExpression(Expression symbol)
ValueIterator
ValueIteratorSource. getValueIterator(Expression valueExpression)
Attempt to obtain a ValueIterator from this source.Method parameters in org.teiid.query.sql.util with type arguments of type Expression Modifier and Type Method Description static SymbolMap
SymbolMap. createSymbolMap(GroupSymbol virtualGroup, List<? extends Expression> projectCols, QueryMetadataInterface metadata)
-
Uses of Expression in org.teiid.query.sql.visitor
Methods in org.teiid.query.sql.visitor that return Expression Modifier and Type Method Description Expression
AbstractSymbolMappingVisitor. replaceExpression(Expression element)
Expression
ExpressionMappingVisitor. replaceExpression(Expression element)
Methods in org.teiid.query.sql.visitor with parameters of type Expression Modifier and Type Method Description Expression
AbstractSymbolMappingVisitor. replaceExpression(Expression element)
Expression
ExpressionMappingVisitor. replaceExpression(Expression element)
Method parameters in org.teiid.query.sql.visitor with type arguments of type Expression Modifier and Type Method Description static void
ExpressionMappingVisitor. mapExpressions(LanguageObject obj, Map<? extends Expression,? extends Expression> exprMap)
The object is modified in place, so is not returned.static void
ExpressionMappingVisitor. mapExpressions(LanguageObject obj, Map<? extends Expression,? extends Expression> exprMap)
The object is modified in place, so is not returned.static void
ExpressionMappingVisitor. mapExpressions(LanguageObject obj, Map<? extends Expression,? extends Expression> exprMap, boolean deep)
The object is modified in place, so is not returned.static void
ExpressionMappingVisitor. mapExpressions(LanguageObject obj, Map<? extends Expression,? extends Expression> exprMap, boolean deep)
The object is modified in place, so is not returned.Constructor parameters in org.teiid.query.sql.visitor with type arguments of type Expression Constructor Description AggregateStopNavigator(LanguageVisitor visitor, Collection<? extends Expression> groupingCols)
AggregateStopNavigator(LanguageVisitor visitor, Collection<? super Expression> groupingColsUsed, Collection<? extends Expression> groupingCols)
-
Uses of Expression in org.teiid.query.tempdata
Methods in org.teiid.query.tempdata that return types with arguments of type Expression Modifier and Type Method Description Map<Expression,Integer>
SearchableTable. getColumnMap()
Map<Expression,Integer>
TempTable. getColumnMap()
Methods in org.teiid.query.tempdata with parameters of type Expression Modifier and Type Method Description Object
SearchableTable. matchesPkColumn(int pkIndex, Expression ex)
Object
TempTable. matchesPkColumn(int pkIndex, Expression ex)
boolean
SearchableTable. supportsOrdering(int pkIndex, Expression ex)
boolean
TempTable. supportsOrdering(int pkIndex, Expression ex)
Method parameters in org.teiid.query.tempdata with type arguments of type Expression Modifier and Type Method Description TupleSource
TempTable. createTupleSource(List<? extends Expression> projectedCols, Criteria condition, OrderBy orderBy)
Constructor parameters in org.teiid.query.tempdata with type arguments of type Expression Constructor Description BaseIndexInfo(T table, List<? extends Expression> projectedCols, Criteria condition, OrderBy orderBy, boolean primary)
-
Uses of Expression in org.teiid.query.util
Methods in org.teiid.query.util with parameters of type Expression Modifier and Type Method Description Object
CommandContext. getFromContext(Expression expression)
Method parameters in org.teiid.query.util with type arguments of type Expression Modifier and Type Method Description int
CommandContext. getProcessorBatchSize(List<Expression> schema)
-
Uses of Expression in org.teiid.query.validator
Methods in org.teiid.query.validator with parameters of type Expression Modifier and Type Method Description static boolean
ValidationVisitor. isNonComparable(Expression symbol)
void
ValidationVisitor. validateXMLContentTypes(Expression expression, LanguageObject parent)
Method parameters in org.teiid.query.validator with type arguments of type Expression Modifier and Type Method Description protected void
ValidationVisitor. validateSortable(List<? extends Expression> symbols)
Validate that no elements of type OBJECT are in a SELECT DISTINCT or and ORDER BY.
-