
不建议* HTable
手动构建对象。请改为实例化一个。 Connection
Table
*
从 Connection中
,使用Connection.getTable(TableName)检索表实现。
例:
Connection connection = ConnectionFactory.createConnection(config);Table table = connection.getTable(TableName.valueOf("table1"));try { // Use the table as needed, for a single operation and a single thread} finally{ table.close(); connection.close();}欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)