HBASE表操作優化.docVIP

  • 8
  • 0
  • 约8.94千字
  • 约 6页
  • 2017-01-19 发布于重庆
  • 举报
HBASE表操作優化

Hbase表写入 View Code JAVA 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 public static boolean createTable(HBaseAdmin admin, HTableDescriptor table, byte[][] splits) throws IOException { try { admin.createTable( table, splits ); return true; } catch (TableExistsException e) { (table + table.getNameAsString() + already exists); // the table already exists... return false; } } public static byte[][] getHexSplits(String startKey, String endKey, int numRegions) { byte[][] splits = new byte[numRegions-1][]; BigInteger lowestKey = new BigInteg

文档评论(0)

1亿VIP精品文档

相关文档