@InterfaceAudience.Private public class RegionInfoBuilder extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ENCODED_REGION_NAME_REGEX
A non-capture group so that this can be embedded.
|
static RegionInfo |
FIRST_META_REGIONINFO
RegionInfo for first meta region
You cannot use this builder to make an instance of the
FIRST_META_REGIONINFO . |
static String |
NO_HASH |
Modifier and Type | Method and Description |
---|---|
RegionInfo |
build() |
static RegionInfoBuilder |
newBuilder(RegionInfo regionInfo) |
static RegionInfoBuilder |
newBuilder(TableName tableName) |
RegionInfoBuilder |
setEndKey(byte[] endKey) |
RegionInfoBuilder |
setOffline(boolean offLine) |
RegionInfoBuilder |
setRegionId(long regionId) |
RegionInfoBuilder |
setReplicaId(int replicaId) |
RegionInfoBuilder |
setSplit(boolean split) |
RegionInfoBuilder |
setStartKey(byte[] startKey) |
public static final String ENCODED_REGION_NAME_REGEX
public static final String NO_HASH
public static final RegionInfo FIRST_META_REGIONINFO
FIRST_META_REGIONINFO
.
Just refer to this instance. Also, while the instance is actually a MutableRI, its type is
just RI so the mutable methods are not available (unless you go casting); it appears
as immutable (I tried adding Immutable type but it just makes a mess).public static RegionInfoBuilder newBuilder(TableName tableName)
public static RegionInfoBuilder newBuilder(RegionInfo regionInfo)
public RegionInfoBuilder setStartKey(byte[] startKey)
public RegionInfoBuilder setEndKey(byte[] endKey)
public RegionInfoBuilder setRegionId(long regionId)
public RegionInfoBuilder setReplicaId(int replicaId)
public RegionInfoBuilder setSplit(boolean split)
public RegionInfoBuilder setOffline(boolean offLine)
public RegionInfo build()
Copyright © 2007–2019 Cloudera. All rights reserved.