/** * Caller closes the table afterwards. */ Table getTable(String tableName) throws IOException { return connectionCache.getTable(tableName); }
/** * Creates and returns a Table instance from a given table name. * * @param tableName * name of table * @return Table object * @throws IOException if getting the table fails */ protected Table getTable(final byte[] tableName) throws IOException { String table = Bytes.toString(tableName); return connectionCache.getTable(table); }
@Override protected Table getTable(ByteBuffer tableName) { try { return connectionCache.getTable(Bytes.toString(byteBufferToByteArray(tableName))); } catch (IOException ie) { throw new RuntimeException(ie); } }
/** * Caller closes the table afterwards. */ Table getTable(String tableName) throws IOException { return connectionCache.getTable(tableName); }
/** * Caller closes the table afterwards. */ Table getTable(String tableName) throws IOException { return connectionCache.getTable(tableName); }
/** * Creates and returns a Table instance from a given table name. * * @param tableName * name of table * @return Table object * @throws IOException */ public Table getTable(final byte[] tableName) throws IOException { String table = Bytes.toString(tableName); return connectionCache.getTable(table); }
/** * Creates and returns a Table instance from a given table name. * * @param tableName * name of table * @return Table object * @throws IOException */ public Table getTable(final byte[] tableName) throws IOException { String table = Bytes.toString(tableName); return connectionCache.getTable(table); }
private Table getTable(ByteBuffer tableName) { try { return connectionCache.getTable(Bytes.toString(byteBufferToByteArray(tableName))); } catch (IOException ie) { throw new RuntimeException(ie); } }
private Table getTable(ByteBuffer tableName) { try { return connectionCache.getTable(Bytes.toString(byteBufferToByteArray(tableName))); } catch (IOException ie) { throw new RuntimeException(ie); } }