Examples of createTable()


Examples of mage.remote.SessionImpl.createTable()

        GameTypeView gameTypeView = session.getGameTypes().get(0);
        log.info("Game type view: " + gameTypeView.getName());
        MatchOptions options = createGameOptions(gameTypeView, session);

        TableView table = session.createTable(roomId, options);

        if (!session.joinTable(roomId, table.getTableId(), TEST_USER_NAME + i, "Human", 1, deckList,"")) {
            log.error("Error while joining table");
            Assert.assertTrue("Error while joining table", false);
            return true;
View Full Code Here

Examples of mage.server.TableManager.createTable()

    }

    private void startMatch(TournamentPairing pair, MatchOptions matchOptions) {
        try {
            TableManager tableManager = TableManager.getInstance();
            Table table = tableManager.createTable(GamesRoomManager.getInstance().getMainRoomId(), matchOptions);
            table.setTournamentSubTable(true);
            table.setTournament(tournament);
            table.setState(TableState.WAITING);
            TournamentPlayer player1 = pair.getPlayer1();
            TournamentPlayer player2 = pair.getPlayer2();
View Full Code Here

Examples of no.kommune.bergen.soa.svarut.JdbcHelper.createTable()

    forsendelsesArkiv = createForsendesesArkiv();
  }

  public static ForsendelsesArkiv createForsendesesArkiv() {
    JdbcHelper jdbcHelper = new JdbcHelper();
    jdbcHelper.createTable( "FORSENDELSESARKIV" );
    FileStore fileStore = new FileStore("target", new PdfGeneratorImpl("target"));
    CorrespondenceClient correspondenceClient = new CorrespondenceClient(new CorrespondenceSettings());
    AltinnFacade altinnFacade = new AltinnFacade(null, correspondenceClient, null, null);

    return new ForsendelsesArkiv( fileStore, jdbcHelper.getJdbcTemplate(), altinnFacade );
View Full Code Here

Examples of org.apache.ambari.server.orm.DBAccessor.createTable()

    final DBAccessor dbAccessor = createNiceMock(DBAccessor.class);

    Configuration configuration = createNiceMock(Configuration.class);
    expect(configuration.getDatabaseUrl()).andReturn(Configuration.JDBC_IN_MEMORY_URL).anyTimes();

    dbAccessor.createTable(eq("viewmain"), EasyMock.<List<DBAccessor.DBColumnInfo>>anyObject(), eq("view_name"));
    dbAccessor.createTable(eq("viewinstancedata"), EasyMock.<List<DBAccessor.DBColumnInfo>>anyObject(),
        eq("view_name"), eq("view_instance_name"), eq("name"));
    dbAccessor.createTable(eq("viewinstance"), EasyMock.<List<DBAccessor.DBColumnInfo>>anyObject(),
        eq("view_name"), eq("name"));
    dbAccessor.createTable(eq("viewinstanceproperty"), EasyMock.<List<DBAccessor.DBColumnInfo>>anyObject(),
View Full Code Here

Examples of org.apache.blur.thrift.generated.Blur.Iface.createTable()

    tableDescriptor.shardCount = shardCount;
    tableDescriptor.tableUri = uri;

    Iface client = BlurClient.getClient(connectionStr);
    client.createTable(tableDescriptor);
  }
}
View Full Code Here

Examples of org.apache.cayenne.dba.DbAdapter.createTable()

            // build "DROP TABLE"
            dropTables.put(name, adapter.dropTableStatements(dbe));

            // build "CREATE TABLE"
            createTables.put(name, adapter.createTable(dbe));

            // build constraints
            createConstraints.put(name, createConstraintsQueries(dbe));
        }
View Full Code Here

Examples of org.apache.cayenne.dba.mysql.MySQLAdapter.createTable()

        entity.setName("name table");
        if(getAccessStackAdapter().getAdapter() instanceof MySQLAdapter){
            MySQLAdapter adaptMySQL = (MySQLAdapter) getAccessStackAdapter().getAdapter();            
            String str = "CREATE TABLE `name table` (`name column` CHAR NULL) ENGINE=InnoDB";           
            assertEquals(str, adaptMySQL.createTable(entity));
        }
     }
}
View Full Code Here

Examples of org.apache.hadoop.hbase.HBaseAdmin.createTable()

    HTableDescriptor desc = new HTableDescriptor(TABLE_NAME);
    desc.addFamily(new HColumnDescriptor(FAMILY));

    // Create a table.
    HBaseAdmin admin = new HBaseAdmin(this.conf);
    admin.createTable(desc);

    // insert some data into the test table
    HTable table = new HTable(conf, new Text(TABLE_NAME));

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

Examples of org.apache.hadoop.hbase.HBaseTestingUtility.createTable()

    int regionServersCount = 3;

    try {
      cluster = htu.startMiniCluster(1, regionServersCount, dataNodeHosts);
      byte[][] families = { fam1, fam2 };
      HTable ht = htu.createTable(Bytes.toBytes(this.getName()), families);

      // Setting up region
      byte row[] = Bytes.toBytes("row1");
      byte col[] = Bytes.toBytes("col1");
View Full Code Here

Examples of org.apache.hadoop.hbase.IntegrationTestingUtility.createTable()

          "-D" + ImportTsv.SEPARATOR_CONF_KEY + "=\u001b",
          table
      };

      try {
        util.createTable(table, cf);
        LOG.info("testRunFromOutputCommitter: launching child job.");
        TestImportTsv.doMROnTableTest(util, cf, null, args, 1);
      } catch (Exception e) {
        throw new IOException("Underlying MapReduce job failed. Aborting commit.", e);
      } finally {
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.