Examples of addColumn()


Examples of org.teiid.metadata.KeyRecord.addColumn()

   */
  public static KeyRecord createKey(KeyRecord.Type type, String name, Table group, List<Column> elements) {
    KeyRecord key = new KeyRecord(type);
    key.setName(name);
    for (Column column : elements) {
      key.addColumn(column);
    }
    switch (type) {
    case Primary:
      group.setPrimaryKey(key);
      break;
View Full Code Here

Examples of org.teiid.metadata.MetadataFactory.addColumn()

        datatypes.put(DataTypeManager.DefaultDataTypes.STRING, new Datatype());
    MetadataFactory mf = new MetadataFactory("x", datatypes, new Properties()); //$NON-NLS-1$
    mf.addProcedure("y"); //$NON-NLS-1$
   
    Table t = mf.addTable("foo");
    mf.addColumn("col", DataTypeManager.DefaultDataTypes.STRING, t);
   
    MetadataFactory mf1 = new MetadataFactory("x1", datatypes, new Properties()); //$NON-NLS-1$
    mf1.addProcedure("y"); //$NON-NLS-1$
   
    Table table = mf1.addTable("doc");
View Full Code Here

Examples of org.voltdb.plannodes.NodeSchema.addColumn()

        // Start to do real materialized view processing to fix the duplicates problem.
        // (1) construct new projection columns for scan plan node.
        Set<SchemaColumn> mvDDLGroupbyColumns = new HashSet<SchemaColumn>();
        NodeSchema inlineProjSchema = new NodeSchema();
        for (SchemaColumn scol: scanColumns) {
            inlineProjSchema.addColumn(scol);
        }

        String mvTableAlias = getMVTableAlias();

        for (int i = 0; i < numOfGroupByColumns; i++) {
View Full Code Here

Examples of org.xorm.datastore.DataFetchGroup.addColumn()

        Column c = mapping.getColumn(field);
        if (c == null) throw new JDOUserException("No column for field " + field + " of class " + mapping.getMappedClass().getName());
        if (!getRow().containsValue(c)) {
            // Column fault: column was not in default fetch group
            DataFetchGroup dfg = new DataFetchGroup();
            dfg.addColumn(c);
            if (getRow().isCached()) {
                // We need to clone the row so we don't modify the cached Row
                Row theRow = (Row)getRow().clone();
                theRow.setCached(false);
                setRow(theRow);
View Full Code Here

Examples of parquet.hadoop.ColumnChunkIncReadStore.addColumn()

      for (String[] path : schema.getPaths()) {
        Type type = schema.getType(path);
        if (type.isPrimitive()) {
          ColumnChunkMetaData md = paths.get(ColumnPath.get(path));
          pageReadStore.addColumn(schema.getColumnDescription(path), md);
        }
      }

      writer = new VectorContainerWriter(output);
      recordMaterializer = new DrillParquetRecordMaterializer(writer, projection);
View Full Code Here

Examples of parquet.hadoop.metadata.BlockMetaData.addColumn()

  private BlockMetaData readBlock(DataInput in) throws IOException {
    final BlockMetaData block = new BlockMetaData();
    int size = in.readInt();
    for (int i = 0; i < size; i++) {
      block.addColumn(readColumn(in));
    }
    block.setRowCount(in.readLong());
    block.setTotalByteSize(in.readLong());
    if (!in.readBoolean()) {
      block.setPath(in.readUTF().intern());
View Full Code Here

Examples of prefuse.data.CascadedTable.addColumn()

            }
        }

        // add an extra column to the cascaded table
        String name = "test";
        ft.addColumn(name, double.class, new Double(Math.PI));
        iter = ft.iterator();
        while (iter.hasNext()) {
            int row = iter.nextInt();
            iter.setDouble(name, Math.E);
            assertTrue(Math.E == ft.getDouble(row, name));
View Full Code Here

Examples of prefuse.data.Schema.addColumn()

 
  private static void runBasicTests(GraphComparer comparer,
      boolean idsPreserved) {
//    setup
    Schema edgeTableSchema = new Schema();
    edgeTableSchema.addColumn(Graph.DEFAULT_SOURCE_KEY, Integer.class);
    edgeTableSchema.addColumn(Graph.DEFAULT_TARGET_KEY, Integer.class);
   
    //test1
    Graph emptyGraph1 = new Graph();
    Graph emptyGraph2 = new Graph();
View Full Code Here

Examples of prefuse.data.Table.addColumn()

   
    /*
     * Check unassignable tables
     */
    table2 = new Table();
    table2.addColumn("String", String.class);
    table2.addColumn("int", int.class);
   
    row = table2.addRow();
   
    try{
View Full Code Here

Examples of prefuse.visual.AggregateTable.addColumn()

        m_vis.setInteractive(EDGES, null, false);
        m_vis.setValue(NODES, null, VisualItem.SHAPE,
                new Integer(Constants.SHAPE_ELLIPSE));
       
        AggregateTable at = m_vis.addAggregates(AGGR);
        at.addColumn(VisualItem.POLYGON, float[].class);
        at.addColumn("id", int.class);
       
        // add nodes to aggregates
        // create an aggregate for each 3-clique of nodes
        Iterator nodes = vg.nodes();
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.