标签:ace get 1.0 color bsp min and cat min()
HBase1.0以上版本号已经废弃了 HTableInterface,HTable,HBaseAdmin等API的使用。新增了一些API来实现之前的功能:
Connectioninterface:
Connection connection = ConnectionFactory.createConnection(config);
// ...
connection.close();
TableName class:
String tableName = "Table";
TableName tableNameObj = TableName.valueOf(tableName);
Table,BufferedMutator, and RegionLocator interfaces:
Table table = connection.getTable(tableNameObj);
BufferedMutator mutator = connection.getBufferedMutator(tableNameObj);
RegionLocator regionLocator = connection.getRegionLocator(tableNameObj);
Admin interface:
Admin admin = connection.getAdmin();
标签:ace get 1.0 color bsp min and cat min()
原文地址:http://www.cnblogs.com/clnchanpin/p/6818178.html