Examples of createTable()


Examples of bm.db.Database.createTable()

                    case CREATE_TABLE:
                        if( db != null )
                        {
                            final Table table = (Table)
                                    args[0].getAttachment( "table" );
                            db.createTable( table );
                            Hashtable tables = (Hashtable)
                                    target.getAttachment( "tables" );
                            if( tables == null )
                            {
                                tables = new Hashtable( 10 );
View Full Code Here

Examples of com.alibaba.druid.benckmark.pool.model.TableOperator.createTable()

        final CountDownLatch dumpLatch = new CountDownLatch(1);

        Thread[] threads = new Thread[threadCount];
        final TableOperator operator = new TableOperator();
        operator.setDataSource(dataSource);
        operator.createTable();
        for (int i = 0; i < threadCount; ++i) {
            Thread thread = new Thread() {

                public void run() {
                    try {
View Full Code Here

Examples of com.alibaba.wasp.client.MasterAdminKeepAliveConnection.createTable()

        } else if (executePlan instanceof AlterTablePlan) {
          FTable hTableDesc = ((AlterTablePlan) executePlan).getNewTable();
          return modifyTable(masterAdminKeepAliveConnection, hTableDesc);
        } else if (executePlan instanceof CreateTablePlan) {
          CreateTablePlan createTable = (CreateTablePlan) executePlan;
          MasterAdminProtos.CreateTableResponse response = masterAdminKeepAliveConnection
              .createTable(
                  null,
                  RequestConverter.buildCreateTableRequest(
                      createTable.getTable(), createTable.getSplitKeys()));
          return ResponseConverter.buildExecuteResponse(response);
View Full Code Here

Examples of com.alibaba.wasp.client.WaspAdmin.createTable()

    LocalWaspCluster cluster = new LocalWaspCluster(conf);
    cluster.startup();
    WaspAdmin admin = new WaspAdmin(conf);
    FTable table = new FTable();
    table.setTableName(cluster.getClass().getName());
    admin.createTable(table);
    cluster.shutdown();
  }
}
View Full Code Here

Examples of com.caucho.amber.manager.AmberPersistenceUnit.createTable()

    CollectionTableConfig collectionTableConfig = _collectionTable;
    AmberPersistenceUnit persistenceUnit = _sourceType.getPersistenceUnit();

    String sqlTable = collectionTableConfig.getName();
    AmberTable mapTable = persistenceUnit.createTable(sqlTable);

    HashMap<String, JoinColumnConfig> joinColumnsConfig
      = collectionTableConfig.getJoinColumnMap();

    ArrayList<ForeignColumn> sourceColumns = null;
View Full Code Here

Examples of com.caucho.amber.manager.AmberPersistenceUnit.createTable()

      if (! joinTableName.equals(""))
        sqlTable = joinTableName;
    }

    mapTable = persistenceUnit.createTable(sqlTable);

    sourceColumns
      = calculateColumns(_field, _fieldName, mapTable,
                         _sourceType.getTable().getName() + "_",
                         _sourceType, joinColumnsConfig);
View Full Code Here

Examples of com.caucho.amber.manager.AmberPersistenceUnit.createTable()

        sqlTable = joinTableConfig.getName();

      joinColumnsConfig = joinTableConfig.getJoinColumnMap();
      inverseJoinColumnsConfig = joinTableConfig.getInverseJoinColumnMap();
      mapTable = persistenceUnit.createTable(sqlTable);

      sourceColumns
        = calculateColumns(_field, _fieldName, mapTable,
                           _sourceType.getTable().getName() + "_",
                           _sourceType,
View Full Code Here

Examples of com.caucho.amber.manager.AmberPersistenceUnit.createTable()

                                       targetType.getTable().getName() + "_",
                                       targetType,
                                       inverseJoinColumnsConfig);
    }
    else {
      mapTable = persistenceUnit.createTable(sqlTable);

      sourceColumns = calculateColumns(mapTable,
                                       _sourceType.getTable().getName() + "_",
                                       _sourceType);
View Full Code Here

Examples of com.facebook.presto.metadata.MetadataManager.createTable()

    {
        MetadataManager metadata = new MetadataManager();
        metadata.addConnectorMetadata("tpch", new InMemoryMetadata());

        SchemaTableName table1 = new SchemaTableName("default", "t1");
        metadata.createTable("tpch", new TableMetadata(table1,
                ImmutableList.<ColumnMetadata>of(
                        new ColumnMetadata("a", ColumnType.LONG, 0, false),
                        new ColumnMetadata("b", ColumnType.LONG, 1, false),
                        new ColumnMetadata("c", ColumnType.LONG, 2, false),
                        new ColumnMetadata("d", ColumnType.LONG, 3, false))));
View Full Code Here

Examples of com.facebook.presto.metadata.NativeMetadata.createTable()

        String nodeName = UUID.randomUUID().toString();
        nodeManager.addNode("native", new PrestoNode(nodeName, new URI("http://127.0.0.1/"), NodeVersion.UNKNOWN));

        NativeMetadata metadata = new NativeMetadata(new NativeConnectorId("native"), dbi, shardManager);

        tableHandle = metadata.createTable(SESSION, TEST_TABLE);
        dsColumnHandle = metadata.getColumnHandle(tableHandle, "ds");

        UUID shardUuid1 = UUID.randomUUID();
        UUID shardUuid2 = UUID.randomUUID();
        UUID shardUuid3 = UUID.randomUUID();
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.