Examples of SimpleColumnMetadata


Examples of uk.org.ogsadai.tuple.SimpleColumnMetadata

            List<ColumnMetadata> columnsMetadata = new ArrayList<ColumnMetadata>();
            for(int i=0;i<columnNames.size();i++) {
              ColumnMetadata column;
              if (values.size() > 0 && values.get(0).size() > 0 && values.get(0).get(i) instanceof String)
              {
                  column = new SimpleColumnMetadata(columnNames.get(i), TupleTypes._STRING, 0, 0, 0);           
              }
              else
              {
                  column = new SimpleColumnMetadata(columnNames.get(i), TupleTypes._DOUBLE, 0, 0, 0);
              }
              columnsMetadata.add(column);
            }
            TupleMetadata outMetadata = new SimpleTupleMetadata(columnsMetadata);
           
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.