public UnresolvedSymbolDescription(ElementSymbol symbol, String description) { this.symbol = symbol.toString(); this.object = symbol; this.description = description; }
public UnresolvedSymbolDescription(ElementSymbol symbol, String description) { this.symbol = symbol.toString(); this.object = symbol; this.description = description; }
public PlanNode getDescriptionProperties() { PlanNode props = new PlanNode("ASSIGNMENT"); //$NON-NLS-1$ props.addProperty(PROP_VARIABLE, this.variable.toString()); if (this.expression != null) { AnalysisRecord.addLanaguageObjects(props, PROP_EXPRESSION, Arrays.asList(this.expression)); } return props; }
public PlanNode getDescriptionProperties() { PlanNode props = new PlanNode("ASSIGNMENT"); //$NON-NLS-1$ props.addProperty(PROP_VARIABLE, this.variable.toString()); if (this.expression != null) { AnalysisRecord.addLanaguageObjects(props, PROP_EXPRESSION, Arrays.asList(this.expression)); } return props; }
public PlanNode getDescriptionProperties() { PlanNode props = new PlanNode("ASSIGNMENT"); //$NON-NLS-1$ props.addProperty(PROP_VARIABLE, this.variable.toString()); if (this.expression != null) { AnalysisRecord.addLanaguageObjects(props, PROP_EXPRESSION, Arrays.asList(this.expression)); } return props; }
private QueryResolverException handleUnresolvedElement(ElementSymbol symbol, String description) { UnresolvedSymbolDescription usd = new UnresolvedSymbolDescription(symbol.toString(), description); QueryResolverException e = new QueryResolverException(usd.getDescription()); e.setUnresolvedSymbols(Arrays.asList(usd)); return e; }
private void handleUnresolvableDeclaration(ElementSymbol variable, String description) throws QueryResolverException { UnresolvedSymbolDescription symbol = new UnresolvedSymbolDescription(variable.toString(), description); QueryResolverException e = new QueryResolverException(symbol.getDescription()); e.setUnresolvedSymbols(Arrays.asList(new Object[] {symbol})); throw e; }
private void handleUnresolvableDeclaration(ElementSymbol variable, String description) throws QueryResolverException { UnresolvedSymbolDescription symbol = new UnresolvedSymbolDescription(variable.toString(), description); QueryResolverException e = new QueryResolverException(symbol.getDescription()); e.setUnresolvedSymbols(Arrays.asList(symbol)); throw e; }
private void handleUnresolvableDeclaration(ElementSymbol variable, String description) throws QueryResolverException { UnresolvedSymbolDescription symbol = new UnresolvedSymbolDescription(variable.toString(), description); QueryResolverException e = new QueryResolverException(symbol.getDescription()); e.setUnresolvedSymbols(Arrays.asList(symbol)); throw e; }
private void helpParser(ElementSymbol es, String expected) { String toString = es.toString(); assertEquals("Parser string does not match", expected, toString); //$NON-NLS-1$ }
static void mapBindings(MappingSourceNode sourceNode, QueryNode oldQueryNode, QueryNode modifiedNode) throws TeiidComponentException { if (oldQueryNode.getBindings() != null) { List<String> bindings = new ArrayList<String>(); for (Iterator<Expression> i = QueryResolver.parseBindings(oldQueryNode).iterator(); i.hasNext();) { Expression ses = i.next(); String name = Symbol.getName(ses); boolean useName = false; if (ses instanceof AliasSymbol) { ses = ((AliasSymbol)ses).getSymbol(); useName = true; } ElementSymbol es = (ElementSymbol)ses; if (!useName) { bindings.add(sourceNode.getMappedSymbol(es).toString()); } else { bindings.add(new AliasSymbol(name, sourceNode.getMappedSymbol(es)).toString()); } } modifiedNode.setBindings(bindings); } }
props.addProperty(PROP_DATA_COL, this.symbol.toString());
modifiedNode.addBinding(ref.getExpression().toString());