Examples of openTable()


Examples of com.nearinfinity.honeycomb.Store.openTable()

     * @param tableName Name of the table to be dropped
     */
    public void dropTable(String tableName) {
        Verify.isNotNullOrEmpty(tableName);
        Store store = storeFactory.createStore(tableName);
        Table table = store.openTable(tableName);

        table.deleteAllRows();
        Util.closeQuietly(table);
        store.deleteTable(tableName);
    }
View Full Code Here

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

        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>();

        for (int j = 0; j < 50; j++) {
View Full Code Here

Examples of org.apache.beehive.netui.databinding.datagrid.runtime.rendering.table.TableRenderer.openTable()

                if(!_dataGridTagModel.isDisableDefaultPagerRendering())
                    _dataGridTagModel.renderPager(appender);

                _tableState.styleClass = styleModel.getTableClass();
                tableRenderer.openTable(_tableState, appender);

                /* render the caption */
                _dataGridTagModel.changeRenderState(DataGridTagModel.RENDER_STATE_CAPTION);
                sw = new StringWriter();
                fragment.invoke(sw);
View Full Code Here

Examples of org.apache.beehive.netui.databinding.datagrid.runtime.rendering.table.TableRenderer.openTable()

                if(!_dataGridTagModel.isDisableDefaultPagerRendering())
                    _dataGridTagModel.renderPager(appender);

                _tableState.styleClass = styleModel.getTableClass();
                tableRenderer.openTable(_tableState, appender);

                /* render the caption */
                _dataGridTagModel.changeRenderState(DataGridTagModel.RENDER_STATE_CAPTION);
                sw = new StringWriter();
                fragment.invoke(sw);
View Full Code Here

Examples of org.apache.hadoop.hbase.HClient.openTable()

    LOG.debug("start get writer");
    Text tableName = new Text(job.get(OUTPUT_TABLE));
    HClient client = null;
    try {
      client = new HClient(job);
      client.openTable(tableName);
    } catch(Exception e) {
      LOG.error(e);
    }
    LOG.debug("end get writer");
    return new TableRecordWriter(client);
View Full Code Here

Examples of org.kiji.schema.Kiji.openTable()

              new FileInputStream(tableDesc)));

      // Create the kiji table.
      kiji.createTable(tableName, layout);
      // Get a handle to the table.
      KijiTable table = kiji.openTable(tableName);

      // Get the entity ID, according to this table, of the user we are
      // demonstrating with.
      EntityId entityId = table.getEntityId(userId);
View Full Code Here

Examples of org.kiji.schema.Kiji.openTable()

  /** Tests expansion of a writer schema union { null, string }. */
  @Test
  public void testUnionWriterSchema() throws Exception {
    final Kiji kiji = getKiji();
    kiji.createTable(KijiTableLayouts.getLayout(LAYOUT_UNION_WRITER));
    final KijiTable table = kiji.openTable(TABLE_NAME);
    try {
      final EntityId eid = table.getEntityId("row");
      final KijiTableWriter writer = table.getWriterFactory().openTableWriter();
      try {
        // Writing naked type "null" should work:
View Full Code Here

Examples of org.kiji.schema.Kiji.openTable()

    final Schema readerEnum =
        Schema.createEnum("Gender", null, null, ImmutableList.of("MALE", "FEMALE"));
    final Schema writerEnum =
        Schema.createEnum("Gender", null, null, ImmutableList.of("MALE", "FEMALE", "BOTH"));

    final KijiTable table = kiji.openTable(TABLE_NAME);
    try {

      final TableLayoutDesc updateWithReader =
          new TableLayoutBuilder(table.getLayout().getDesc(), kiji)
              .withReader(KijiColumnName.create("info""gender"), readerEnum)
View Full Code Here

Examples of org.kiji.schema.Kiji.openTable()

        LOG.info(String.format("  Populating existing table: %s", tableName));
      } else {
        LOG.info(String.format("  Creating and populating table: %s", tableName));
        kiji.createTable(layout.getDesc());
      }
      final KijiTable kijiTable = kiji.openTable(tableName);
      try {
        final KijiTableWriter writer = kijiTable.openTableWriter();
        try {
          // Build & write rows to the table.
          for (Map.Entry<EntityId, Map<String, Map<String, Map<Long, Object>>>> rowEntry
View Full Code Here

Examples of org.kiji.schema.Kiji.openTable()

                .withFamily("family")
                    .withQualifier("column")
                        .withValue("0123456789")
        .build();

    final KijiTable table = kiji.openTable("table");
    try {
      final EntityId eid = table.getEntityId("row");

      final KijiTableLayout layout = table.getLayout();
      final KijiColumnName column = KijiColumnName.create("family", "column");
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.