Examples of createTable()


Examples of org.lilyproject.repository.api.TableManager.createTable()

                new RecordFactoryImpl(), hbaseTableFactory, blobManager, configuration, repositoryModel);

        TableManager repoTableManager =
                new TableManagerImpl(/* TODO multiple repositories */ "default", configuration, hbaseTableFactory);
        if (!repoTableManager.tableExists(Table.RECORD.name)) {
            repoTableManager.createTable(Table.RECORD.name);
        }

        repository = (Repository) repositoryManager.getDefaultRepository().getDefaultTable();
        table = repository.getDefaultTable();
    }
View Full Code Here

Examples of org.lilyproject.repository.impl.TableManagerImpl.createTable()

                new RecordFactoryImpl(), hbaseTableFactory, blobManager, configuration, repositoryModel);

        TableManager repoTableManager =
                new TableManagerImpl(/* TODO multiple repositories */ "default", configuration, hbaseTableFactory);
        if (!repoTableManager.tableExists(Table.RECORD.name)) {
            repoTableManager.createTable(Table.RECORD.name);
        }

        repository = (Repository) repositoryManager.getDefaultRepository().getDefaultTable();
        table = repository.getDefaultTable();
    }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.editor.table.CreateTableDialog.createTable()

    else
    {
      dialog = new CreateTableDialog();
    }

    if (dialog.createTable() == false)
    {
      return;
    }

View Full Code Here

Examples of org.restsql.core.sqlresource.ObjectFactory.createTable()

    def.setQuery(query);
    final MetaData metaData = objectFactory.createMetaData();
    final Database database = objectFactory.createDatabase();
    database.setDefault(databaseName);
    metaData.setDatabase(database);
    final Table table = objectFactory.createTable();
    table.setRole("Parent");
    metaData.getTable().add(table);
    def.setMetadata(metaData);

    StringBuilder queryString = null;
View Full Code Here

Examples of org.springframework.data.cassandra.core.CassandraAdminTemplate.createTable()

    CreateKeyspaceSpecification createKeyspaceSpecification = new CreateKeyspaceSpecification(keySpace).ifNotExists();
    cassandraTemplate.execute(createKeyspaceSpecification);
    cassandraTemplate.execute("USE " + keySpace);

    cassandraTemplate.createTable(true, CqlIdentifier.cqlId("users"), User.class, new HashMap<String, Object>());

    for (CassandraPersistentEntity<?> entity : cassandraTemplate.getConverter().getMappingContext()
        .getPersistentEntities()) {
      cassandraTemplate.truncate(entity.getTableName());
    }
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.SqlJetDb.createTable()

            System.out.println();
            System.out.println(createTableQuery);
            System.out.println(createFirstNameIndexQuery);
            System.out.println(createDateIndexQuery);
           
            db.createTable(createTableQuery);
            db.createIndex(createFirstNameIndexQuery);
            db.createIndex(createDateIndexQuery);
        } finally {
            db.commit();
        }
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.SqlJetDb.createTable()

      }, SqlJetTransactionMode.WRITE);
      db.beginTransaction(SqlJetTransactionMode.WRITE);
      String sql1 = "CREATE TABLE IF NOT EXISTS TESTXX (a int, b int, c int, "
          + "d int, blob blob, PRIMARY KEY (a,b,c,d))";
      String sql2 = "CREATE INDEX IF NOT EXISTS IND on TESTXX (a,b,c,d)";
      db.createTable(sql1);
      db.createIndex(sql2);
      db.commit();
      db.close();
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.SqlJetDb.createTable()

    @Test
    public void testReadOnlyBug() throws SqlJetException {

        final SqlJetDb db1 = SqlJetDb.open(file, true);
        try {
            db1.createTable("create table t(a integer primary key, b text)");
        } finally {
            db1.close();
        }

        try {
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.SqlJetDb.createTable()

            logger.log(Level.INFO, "Tries to open unexisted file", e);
        }

        final SqlJetDb db3 = SqlJetDb.open(file, true);
        try {
            db3.createTable("create table t1(a integer primary key, b text)");
        } finally {
            db3.close();
        }

    }
View Full Code Here

Examples of util.HBaseHelper.createTable()

  public static void main(String[] args) throws IOException, InterruptedException {
    Configuration conf = HBaseConfiguration.create();

    HBaseHelper helper = HBaseHelper.getHelper(conf);
    helper.dropTable("testtable");
    helper.createTable("testtable", "colfam1");

    HTable table = new HTable(conf, "testtable");
    HBaseAdmin admin = new HBaseAdmin(conf);

    // vv DeleteTimestampExample
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.