Package org.teiid.query.sql.lang.TableFunctionReference

Examples of org.teiid.query.sql.lang.TableFunctionReference.ProjectedColumn


        visitNode(obj.getArrayValue());
        append(SPACE);
        append(NonReserved.COLUMNS);

        for (Iterator<ProjectedColumn> cols = obj.getColumns().iterator(); cols.hasNext();) {
          ProjectedColumn col = cols.next();
            append(SPACE);
            outputDisplayName(col.getName());
            append(SPACE);
            append(col.getType());
            if (cols.hasNext()) {
                append(","); //$NON-NLS-1$
            }
        }
       
View Full Code Here


        throw new FunctionExecutionException(QueryPlugin.Util.getString("FunctionMethods.not_array_value", array.getClass())); //$NON-NLS-1$
      }
    }
   
    for (int output : projectionIndexes) {
      ProjectedColumn col = table.getColumns().get(output);
      try {
        Object val = Array.get(array, output);
        tuple.add(DataTypeManager.transformValue(val, table.getColumns().get(output).getSymbol().getType()));
      } catch (TransformationException e) {
        throw new TeiidProcessingException(e, QueryPlugin.Util.getString("ArrayTableNode.conversion_error", col.getName())); //$NON-NLS-1$
      } catch (ArrayIndexOutOfBoundsException e) {
        throw new FunctionExecutionException(QueryPlugin.Util.getString("FunctionMethods.array_index", output + 1)); //$NON-NLS-1$
      }
    }
    addBatchRow(tuple);
View Full Code Here

TOP

Related Classes of org.teiid.query.sql.lang.TableFunctionReference.ProjectedColumn

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.