Examples of createTable()


Examples of com.facebook.presto.raptor.RaptorMetadata.createTable()

        nodeManager.addNode("raptor", new PrestoNode(nodeName, new URI("http://127.0.0.1/"), NodeVersion.UNKNOWN));

        RaptorConnectorId connectorId = new RaptorConnectorId("raptor");
        RaptorMetadata metadata = new RaptorMetadata(connectorId, dbi, shardManager);

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

        UUID shardUuid1 = UUID.randomUUID();
        UUID shardUuid2 = UUID.randomUUID();
        UUID shardUuid3 = UUID.randomUUID();
View Full Code Here

Examples of com.facebook.presto.spi.ConnectorMetadata.createTable()

    @Override
    public TableHandle createTable(String catalogName, TableMetadata tableMetadata)
    {
        ConnectorMetadata connectorMetadata = connectors.get(catalogName);
        checkArgument(connectorMetadata != null, "Catalog %s does not exist", catalogName);
        return connectorMetadata.createTable(tableMetadata);
    }

    @Override
    public void dropTable(TableHandle tableHandle)
    {
View Full Code Here

Examples of com.impetus.kundera.ycsb.utils.HBaseOperationUtils.createTable()

        {
            try
            {
                HBaseOperationUtils.startHBaseServer(runTime, startHBaseServerCommand);
                HBaseOperationUtils utils = new HBaseOperationUtils();
                utils.createTable(schema, columnFamilyOrTable);
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
View Full Code Here

Examples of com.log4ic.utils.dao.DocViewerJdbcSupport.createTable()

                boolean exist = support.hasTable();
                String tableName = support.getTableName();
                LOGGER.info("表[" + tableName + "]" + (exist ? "" : "不") + "存在");
                if (!exist) {
                    LOGGER.info("创建表[" + tableName + "]");
                    support.createTable();
                }
            }
        } catch (NamingException e) {
            LOGGER.error(e);
        } catch (SQLException e) {
View Full Code Here

Examples of com.nearinfinity.honeycomb.mysql.HandlerProxy.createTable()

        String tableName = AdapterType.HBASE.getName() + "/t1";

        int iterations = 10;

        proxy.createTable(tableName, schema.serialize(), 0);
        proxy.openTable(tableName);
        Row row = new Row(Maps.<String, ByteBuffer>newHashMap(), TestConstants.ZERO_UUID);

        List<Row> rows = new ArrayList<Row>();
View Full Code Here

Examples of com.netflix.staash.connection.PaasConnection.createTable()

             conn.createDB(dbConfig.toString());
        } catch (Exception e) {
            // TODO: handle exception
        }
        try {
            conn.createTable(obj);
            if (index_row_keys!=null && index_row_keys.equals("true")) {
                JsonObject idxObj = new JsonObject();
                idxObj.putString("db", schema);
                idxObj.putString("name", obj.getString("name")+"ROWKEYS");
                idxObj.putString("columns", "key,column1,value");
View Full Code Here

Examples of com.salesforce.phoenix.schema.MetaDataClient.createTable()

            }

            @Override
            public MutationState execute() throws SQLException {
                try {
                    return client.createTable(create, splits, parent, viewExpression, viewType);
                } finally {
                    if (client.getConnection() != connection) {
                        client.getConnection().close();
                    }
                }
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.persist.jdbc.comm.BaseDAO.createTable()

            BaseDAO dao = (BaseDAO)itr.next();
            try {
                Util.RetryStrategy retry = null;
                do {
                    try {
                        dao.createTable( conn );
                        break; // table created so break from retry loop
                    } catch ( Exception e ) {
                        // Exception will be log & re-throw if operation cannot be retry
                        if ( retry == null ) {
                            retry = new Util.RetryStrategy(mgr);
View Full Code Here

Examples of com.winvector.db.TableControl.createTable()

      mp.put("C","XXX");
      source.add(new BurstMap("test",mp));
      final TableControl tableControl = new TableControl(p,"TESTTABLE");
      tableControl.scanForDefs(sourceName,source, null);
      tableControl.buildSQLStatements();
      tableControl.createTable(dbhandle);
      final Date now = new Date();
      final long nInserted = tableControl.loadData(sourceName,now,new Random(),source, null, dbhandle);
      assertEquals(1,nInserted);
      final Statement stmt = dbhandle.conn.createStatement();
      final DBIterable it = new DBIterable(stmt,"SELECT * FROM TESTTABLE");
View Full Code Here

Examples of mage.remote.Session.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;
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.