Package org.teiid.query.sql.lang

Examples of org.teiid.query.sql.lang.CollectionValueIterator


          @Override
          protected ValueIterator evaluateSubquery(
              SubqueryContainer container, List tuple)
              throws TeiidProcessingException, BlockedException,
              TeiidComponentException {
            return new CollectionValueIterator(values);
          }
        }.evaluateTVL(crit, tuple));
    }
View Full Code Here


  private void helpTestWithValueIterator(ScalarSubquery expr,
      List<?> values, Object expected)
      throws BlockedException,
      TeiidComponentException, ExpressionEvaluationException {
    final CollectionValueIterator valueIter = new CollectionValueIterator(values);
        CommandContext cc = new CommandContext();
        assertEquals(expected, new Evaluator(Collections.emptyMap(), null, cc) {
          @Override
          protected ValueIterator evaluateSubquery(
              SubqueryContainer container, List tuple)
View Full Code Here

                setStates.put(i, state);
                LinkedHashSet<Object> values = new LinkedHashSet<Object>();
                for (Expression expr : (Collection<Expression>)setCriteria.getValues()) {
          values.add(eval.evaluate(expr, null));
        }
                state.valueIterator = new CollectionValueIterator(values);
                sources.add(Arrays.asList(state));
            } else if (criteria instanceof DependentSetCriteria) {
              DependentSetCriteria dsc = (DependentSetCriteria)criteria;
                String source = dsc.getContextSymbol();
               
View Full Code Here

              }
              return criteria.isNegated();
            }
            return !criteria.isNegated();
          }
          valueIter = new CollectionValueIterator(((SetCriteria)criteria).getValues());
        } else if (criteria instanceof DependentSetCriteria){
          ContextReference ref = (ContextReference)criteria;
        ValueIteratorSource vis = (ValueIteratorSource)getContext(criteria).getVariableContext().getGlobalValue(ref.getContextSymbol());
        Set<Object> values;
        try {
View Full Code Here

TOP

Related Classes of org.teiid.query.sql.lang.CollectionValueIterator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.