private void updateContext(List<?> tuple, List<? extends Expression> elements) { for (int i = 0; i < elements.size(); i++) { Expression element = elements.get(i); if (element instanceof ElementSymbol) { if (tuple == null) { joinNode.getContext().getVariableContext().remove((ElementSymbol)element); } else { joinNode.getContext().getVariableContext().setValue((ElementSymbol)element, tuple.get(i)); } } } }
private void updateContext(List<?> tuple, List<? extends Expression> elements) { for (int i = 0; i < elements.size(); i++) { Expression element = elements.get(i); if (element instanceof ElementSymbol) { if (tuple == null) { joinNode.getContext().getVariableContext().remove((ElementSymbol)element); } else { joinNode.getContext().getVariableContext().setValue((ElementSymbol)element, tuple.get(i)); } } } }
private void updateContext(List<?> tuple, List<? extends Expression> elements) { for (int i = 0; i < elements.size(); i++) { Expression element = elements.get(i); if (element instanceof ElementSymbol) { if (tuple == null) { joinNode.getContext().getVariableContext().remove((ElementSymbol)element); } else { joinNode.getContext().getVariableContext().setValue((ElementSymbol)element, tuple.get(i)); } } } }
public void closeDirect() { super.closeDirect(); joinStrategy.close(); if (this.getContext() != null && this.dependentValueSource != null) { this.getContext().getVariableContext().setGlobalValue(this.dependentValueSource, null); } this.dvs = null; }
public void closeDirect() { super.closeDirect(); joinStrategy.close(); if (this.getContext() != null && this.dependentValueSource != null) { this.getContext().getVariableContext().setGlobalValue(this.dependentValueSource, null); } this.dvs = null; }
public void closeDirect() { super.closeDirect(); joinStrategy.close(); if (this.getContext() != null && this.dependentValueSource != null) { this.getContext().getVariableContext().setGlobalValue(this.dependentValueSource, null); } this.dvs = null; }
@Override public void initialize(JoinNode joinNode) { super.initialize(joinNode); this.eval = new Evaluator(null, joinNode.getDataManager(), joinNode.getContext()); }
@Override public void initialize(JoinNode joinNode) { super.initialize(joinNode); this.eval = new Evaluator(null, joinNode.getDataManager(), joinNode.getContext()); }
@Override public void initialize(JoinNode joinNode) { super.initialize(joinNode); this.eval = new Evaluator(null, joinNode.getDataManager(), joinNode.getContext()); }
public void open() throws TeiidComponentException, TeiidProcessingException { CommandContext context = getContext(); if (!isDependent()) { boolean old = context.setParallel(true); try { openInternal(); } finally { context.setParallel(old); } } else { openInternal(); } }
public TupleBatch nextBatchDirect() throws TeiidComponentException, TeiidProcessingException { CommandContext context = getContext(); if (!isDependent()) { boolean old = context.setParallel(true); try { return nextBatchDirectInternal(); } finally { context.setParallel(old); } } return nextBatchDirectInternal(); }
public TupleBatch nextBatchDirect() throws TeiidComponentException, TeiidProcessingException { CommandContext context = getContext(); if (!isDependent()) { boolean old = context.setParallel(true); try { return nextBatchDirectInternal(); } finally { context.setParallel(old); } } return nextBatchDirectInternal(); }
public void open() throws TeiidComponentException, TeiidProcessingException { CommandContext context = getContext(); if (!isDependent()) { boolean old = context.setParallel(true); try { openInternal(); } finally { context.setParallel(old); } } else { openInternal(); } }
joinNode.getContext().getVariableContext().setValue(entry.getKey(), eval.evaluate(entry.getValue(), null)); joinNode.getContext().getVariableContext().setValue(entry.getKey(), eval.evaluate(entry.getValue(), null)); rightSource.close(); for (Map.Entry<ElementSymbol, Expression> entry : rightMap.asMap().entrySet()) { joinNode.getContext().getVariableContext().remove(entry.getKey()); leftSource.close(); for (Map.Entry<ElementSymbol, Expression> entry : leftMap.asMap().entrySet()) { joinNode.getContext().getVariableContext().remove(entry.getKey());
joinNode.getContext().getVariableContext().setValue(entry.getKey(), eval.evaluate(entry.getValue(), null)); rightSource.close(); for (Map.Entry<ElementSymbol, Expression> entry : rightMap.asMap().entrySet()) { joinNode.getContext().getVariableContext().remove(entry.getKey());
joinNode.getContext().getVariableContext().setValue(entry.getKey(), eval.evaluate(entry.getValue(), null)); rightSource.close(); for (Map.Entry<ElementSymbol, Expression> entry : rightMap.asMap().entrySet()) { joinNode.getContext().getVariableContext().remove(entry.getKey());
this.getContext().getVariableContext().setGlobalValue(this.dependentValueSource, dvs); this.getContext().getVariableContext().setGlobalValue(this.dependentValueSource, dvs);
this.getContext().getVariableContext().setGlobalValue(this.dependentValueSource, dvs); this.getContext().getVariableContext().setGlobalValue(this.dependentValueSource, dvs);
this.getContext().getVariableContext().setGlobalValue(this.dependentValueSource, dvs); this.getContext().getVariableContext().setGlobalValue(this.dependentValueSource, dvs);