Package org.kiji.schema.hbase

Examples of org.kiji.schema.hbase.KijiManagedHBaseTableName.toBytes()


    LOG.debug("Reading existing HBase schema");
    final KijiManagedHBaseTableName hbaseTableName =
        KijiManagedHBaseTableName.getKijiTableName(mURI.getInstance(), tableName);
    HTableDescriptor currentTableDescriptor = null;
    byte[] tableNameAsBytes = hbaseTableName.toBytes();
    try {
      currentTableDescriptor = getHBaseAdmin().getTableDescriptor(tableNameAsBytes);
    } catch (TableNotFoundException tnfe) {
      if (!dryRun) {
        throw tnfe; // Not in dry-run mode; table needs to exist. Rethrow exception.
View Full Code Here


  }

  private HTableDescriptor getHbaseTableDescriptor(String kijiTableName) throws IOException {
    KijiManagedHBaseTableName mPhysicalTableName =
      KijiManagedHBaseTableName.getKijiTableName(getKijiURI().getInstance(), kijiTableName);
    return mKiji.getHBaseAdmin().getTableDescriptor(mPhysicalTableName.toBytes());
  }
}
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.