Java Code Examples for org.apache.hadoop.hbase.util.RegionSplitter#HexStringSplit
The following examples show how to use
org.apache.hadoop.hbase.util.RegionSplitter#HexStringSplit .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IntegrationTestManyRegions.java From hbase with Apache License 2.0 | 6 votes |
@Test public void testCreateTableWithRegions() throws Exception { ColumnFamilyDescriptor columnFamilyDescriptor = ColumnFamilyDescriptorBuilder .newBuilder(Bytes.toBytes("cf")) .build(); TableDescriptor tableDescriptor = TableDescriptorBuilder.newBuilder(TABLE_NAME) .setColumnFamily(columnFamilyDescriptor) .build(); SplitAlgorithm algo = new RegionSplitter.HexStringSplit(); byte[][] splits = algo.split(REGION_COUNT); LOG.info(String.format("Creating table %s with %d splits.", TABLE_NAME, REGION_COUNT)); long startTime = System.currentTimeMillis(); try { admin.createTable(tableDescriptor, splits); LOG.info(String.format("Pre-split table created successfully in %dms.", (System.currentTimeMillis() - startTime))); } catch (IOException e) { LOG.error("Failed to create table", e); } }
Example 2
Source File: Split.java From hbase-tools with Apache License 2.0 | 4 votes |
@Override public RegionSplitter.SplitAlgorithm createSplitter(int cardinality) { return new RegionSplitter.HexStringSplit(); }
Example 3
Source File: Split.java From hbase-tools with Apache License 2.0 | 4 votes |
@Override public RegionSplitter.SplitAlgorithm createSplitter(int cardinality) { return new RegionSplitter.HexStringSplit(); }
Example 4
Source File: Split.java From hbase-tools with Apache License 2.0 | 4 votes |
@Override public RegionSplitter.SplitAlgorithm createSplitter(int cardinality) { return new RegionSplitter.HexStringSplit(); }
Example 5
Source File: Split.java From hbase-tools with Apache License 2.0 | 4 votes |
@Override public RegionSplitter.SplitAlgorithm createSplitter(int cardinality) { return new RegionSplitter.HexStringSplit(); }
Example 6
Source File: Split.java From hbase-tools with Apache License 2.0 | 4 votes |
@Override public RegionSplitter.SplitAlgorithm createSplitter(int cardinality) { return new RegionSplitter.HexStringSplit(); }
Example 7
Source File: Split.java From hbase-tools with Apache License 2.0 | 4 votes |
@Override public RegionSplitter.SplitAlgorithm createSplitter(int cardinality) { return new RegionSplitter.HexStringSplit(); }
Example 8
Source File: Split.java From hbase-tools with Apache License 2.0 | 4 votes |
@Override public RegionSplitter.SplitAlgorithm createSplitter(int cardinality) { return new RegionSplitter.HexStringSplit(); }
Example 9
Source File: Split.java From hbase-tools with Apache License 2.0 | 4 votes |
@Override public RegionSplitter.SplitAlgorithm createSplitter(int cardinality) { return new RegionSplitter.HexStringSplit(); }
Example 10
Source File: Split.java From hbase-tools with Apache License 2.0 | 4 votes |
@Override public RegionSplitter.SplitAlgorithm createSplitter(int cardinality) { return new RegionSplitter.HexStringSplit(); }
Example 11
Source File: Split.java From hbase-tools with Apache License 2.0 | 4 votes |
@Override public RegionSplitter.SplitAlgorithm createSplitter(int cardinality) { return new RegionSplitter.HexStringSplit(); }