Skip to content

Commit 586e177

Browse files
HorizonNetpetersomogyi
authored andcommitted
HBASE-22753 Removed deprecated ImmutableHRegionInfo (#420)
Signed-off-by: stack <stack@apache.org>
1 parent 373c2dc commit 586e177

3 files changed

Lines changed: 0 additions & 137 deletions

File tree

hbase-client/src/main/java/org/apache/hadoop/hbase/client/ImmutableHRegionInfo.java

Lines changed: 0 additions & 49 deletions
This file was deleted.

hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestImmutableHRegionInfo.java

Lines changed: 0 additions & 68 deletions
This file was deleted.

hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
import java.util.TreeSet;
5252
import java.util.concurrent.TimeUnit;
5353
import java.util.concurrent.atomic.AtomicReference;
54-
import java.util.stream.Collectors;
5554
import org.apache.commons.io.FileUtils;
5655
import org.apache.commons.lang3.RandomStringUtils;
5756
import org.apache.commons.logging.impl.Jdk14Logger;
@@ -75,7 +74,6 @@
7574
import org.apache.hadoop.hbase.client.Durability;
7675
import org.apache.hadoop.hbase.client.Get;
7776
import org.apache.hadoop.hbase.client.Hbck;
78-
import org.apache.hadoop.hbase.client.ImmutableHRegionInfo;
7977
import org.apache.hadoop.hbase.client.Put;
8078
import org.apache.hadoop.hbase.client.RegionInfo;
8179
import org.apache.hadoop.hbase.client.RegionInfoBuilder;
@@ -2540,24 +2538,6 @@ public String checksumRows(final Table table) throws Exception {
25402538
Bytes.toBytes("xxx"), Bytes.toBytes("yyy"), Bytes.toBytes("zzz")
25412539
};
25422540

2543-
/**
2544-
* Create rows in hbase:meta for regions of the specified table with the specified
2545-
* start keys. The first startKey should be a 0 length byte array if you
2546-
* want to form a proper range of regions.
2547-
* @param conf
2548-
* @param htd
2549-
* @param startKeys
2550-
* @return list of region info for regions added to meta
2551-
* @throws IOException
2552-
* @deprecated since 2.0 version and will be removed in 3.0 version.
2553-
* use {@link #createMultiRegionsInMeta(Configuration, TableDescriptor, byte[][])}
2554-
*/
2555-
@Deprecated
2556-
public List<HRegionInfo> createMultiRegionsInMeta(final Configuration conf,
2557-
final HTableDescriptor htd, byte [][] startKeys) throws IOException {
2558-
return createMultiRegionsInMeta(conf, (TableDescriptor) htd, startKeys)
2559-
.stream().map(ImmutableHRegionInfo::new).collect(Collectors.toList());
2560-
}
25612541
/**
25622542
* Create rows in hbase:meta for regions of the specified table with the specified
25632543
* start keys. The first startKey should be a 0 length byte array if you

0 commit comments

Comments
 (0)