Examples of toHTableDescriptor()


Examples of org.kiji.schema.layout.impl.HTableSchemaTranslator.toHTableDescriptor()

        KijiURI
            .newBuilder()
            .withInstanceName("myinstance")
            .withTableName(tableLayout.getName()).build();
    final HTableDescriptor tableDescriptor =
        translator.toHTableDescriptor(tableURI.getInstance(), tableLayout);

    assertEquals("kiji.myinstance.table.user", tableDescriptor.getNameAsString());
    assertEquals(2, tableDescriptor.getColumnFamilies().length);

    assertFalse(tableDescriptor.getFamily(Bytes.toBytes("B")).isInMemory());
View Full Code Here

Examples of org.kiji.schema.layout.impl.HTableSchemaTranslator.toHTableDescriptor()

    }

    LOG.debug("Computing new HBase schema");
    final HTableSchemaTranslator translator = new HTableSchemaTranslator();
    final HTableDescriptor newTableDescriptor =
        translator.toHTableDescriptor(tableURI.getInstance(), newLayout);

    LOG.debug("Reading existing HBase schema");
    final KijiManagedHBaseTableName hbaseTableName =
        KijiManagedHBaseTableName.getKijiTableName(mURI.getInstance(), tableName);
    HTableDescriptor currentTableDescriptor = null;
View Full Code Here

Examples of org.kiji.schema.layout.impl.HTableSchemaTranslator.toHTableDescriptor()

    }

    try {
      final HTableSchemaTranslator translator = new HTableSchemaTranslator();
      final HTableDescriptor desc =
          translator.toHTableDescriptor(tableURI.getInstance(), kijiTableLayout);
      LOG.debug("Creating HBase table '{}'.", desc.getNameAsString());
      if (null != splitKeys) {
        getHBaseAdmin().createTable(desc, splitKeys);
      } else {
        getHBaseAdmin().createTable(desc);
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.