Package | Description |
---|---|
org.apache.hadoop.hbase | |
org.apache.hadoop.hbase.client |
Provides HBase Client
|
org.apache.hadoop.hbase.testing |
Modifier and Type | Class and Description |
---|---|
class |
HRegionInfo
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0. use
RegionInfoBuilder to build RegionInfo . |
Modifier and Type | Method and Description |
---|---|
RegionInfo |
HRegionLocation.getRegion()
n
|
Constructor and Description |
---|
HRegionInfo(RegionInfo other)
Deprecated.
Construct a copy of another HRegionInfo
|
HRegionLocation(RegionInfo regionInfo,
ServerName serverName) |
HRegionLocation(RegionInfo regionInfo,
ServerName serverName,
long seqNum) |
Modifier and Type | Field and Description |
---|---|
static RegionInfo |
RegionInfo.UNDEFINED
Deprecated.
since 2.3.2/3.0.0; to be removed in 4.0.0 with no replacement (for internal use).
|
Modifier and Type | Field and Description |
---|---|
static Comparator<RegionInfo> |
RegionInfo.COMPARATOR |
Modifier and Type | Method and Description |
---|---|
static RegionInfo |
RegionInfo.createMobRegionInfo(TableName tableName)
Creates a RegionInfo object for MOB data.
|
static RegionInfo |
RegionInfo.parseFrom(byte[] bytes)
Returns A deserialized
RegionInfo |
static RegionInfo |
RegionInfo.parseFrom(byte[] bytes,
int offset,
int len)
Parse a serialized representation of
RegionInfo |
static RegionInfo |
RegionInfo.parseFrom(DataInputStream in)
Parses an RegionInfo instance from the passed in stream.
|
static RegionInfo |
RegionInfo.parseFromOrNull(byte[] bytes)
Returns A deserialized
RegionInfo or null if we failed deserialize or passed bytes null |
static RegionInfo |
RegionInfo.parseFromOrNull(byte[] bytes,
int offset,
int len)
Returns A deserialized
RegionInfo or null if we failed deserialize or passed bytes null |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<List<RegionInfo>> |
AsyncAdmin.getRegions(ServerName serverName)
Get all the online regions on a region server.
|
List<RegionInfo> |
Admin.getRegions(ServerName serverName)
Get all the online regions on a region server.
|
CompletableFuture<List<RegionInfo>> |
AsyncAdmin.getRegions(TableName tableName)
Get the regions of a given table.
|
List<RegionInfo> |
Admin.getRegions(TableName tableName)
Get the regions of a given table.
|
static List<RegionInfo> |
RegionInfo.parseDelimitedFrom(byte[] bytes,
int offset,
int length)
Parses all the RegionInfo instances from the passed in stream until EOF.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
RegionInfo.areAdjacent(RegionInfo regionA,
RegionInfo regionB)
Check whether two regions are adjacent; i.e.
|
default int |
RegionInfo.compareTo(RegionInfo other) |
static String |
RegionInfo.getRegionNameAsString(RegionInfo ri,
byte[] regionName) |
static String |
RegionInfo.getShortNameToLog(RegionInfo... hris)
Returns a String of short, printable names for
hris (usually encoded name) for us
logging. |
default boolean |
RegionInfo.isAdjacent(RegionInfo other)
Returns True if region is adjacent, either just before or just after this one.
|
default boolean |
RegionInfo.isNext(RegionInfo after)
Returns True if region is next, adjacent but 'after' this one.
|
default boolean |
RegionInfo.isOverlap(RegionInfo other)
Returns True if an overlap in region range.
|
void |
AsyncTable.CoprocessorCallback.onRegionComplete(RegionInfo region,
R resp)
Indicate that the respose of a region is available
|
void |
AsyncTable.CoprocessorCallback.onRegionError(RegionInfo region,
Throwable error)
Indicate that the error for a region is available
|
static byte[] |
RegionInfo.toByteArray(RegionInfo ri)
Returns This instance serialized as protobuf w/ a magic pb prefix.
|
static byte[] |
RegionInfo.toDelimitedByteArray(RegionInfo... infos)
Serializes given RegionInfo's as a byte array.
|
static byte[] |
RegionInfo.toDelimitedByteArray(RegionInfo ri)
Use this instead of
toByteArray(RegionInfo) when writing to a stream and you
want to use the pb mergeDelimitedFrom (w/o the delimiter, pb reads to EOF which may not be what
you want). |
Modifier and Type | Method and Description |
---|---|
static String |
RegionInfo.getShortNameToLog(List<RegionInfo> ris)
Returns a String of short, printable names for
hris (usually encoded name) for us
logging. |
Modifier and Type | Method and Description |
---|---|
Optional<org.apache.hadoop.hbase.regionserver.Region> |
TestingHBaseCluster.getRegion(RegionInfo regionInfo)
Get the server side
Region interface for the specific region. |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.