HBaseMetadata { public BiMap<String, Long> getColumnIds(final long tableId) { Verify.isValidId(tableId); return ImmutableBiMap.copyOf( getNameToIdMap(tableId, new ColumnsRowKey(tableId).encode())); } @Inject  HBaseMetadata(final Provider<HTableInterface> provider); @Inject void setColumnFamily(final @Named(ConfigConstants.COLUMN_FAMILY) String columnFamily); long getTableId(final String tableName); Map<String, Long> getIndexIds(final long tableId); BiMap<String, Long> getColumnIds(final long tableId); TableSchema getSchema(final long tableId); void createTable(final String tableName, final TableSchema schema); void createTableIndex(final long tableId,
                                 final IndexSchema indexSchema); void deleteTableIndex(final long tableId, final String indexName); void deleteTable(String tableName); void renameExistingTable(final String oldTableName, final String newTableName); long getAutoInc(long tableId); long incrementAutoInc(long tableId, long amount); void setAutoInc(long tableId, long value); long getRowCount(long tableId); long incrementRowCount(long tableId, long amount); void truncateRowCount(long tableId);  }
@Test(expected = IllegalArgumentException.class) public void testLookupColumnIdsInvalidTableId() { hbaseMetadata.getColumnIds(INVALID_TABLE_ID); }
@Test(expected = TableNotFoundException.class) public void testLookupColumnIdsUnknownTableId() { hbaseMetadata.getColumnIds(132); }