Uses of Interface
org.apache.hadoop.hbase.client.RegionInfo
Package
Description
Provides HBase Client
Table of Contents
Tools to help define network clients and servers.
Provides HBase MapReduce
Input/OutputFormats, a table indexing MapReduce job, and utility methods.
-
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase
Modifier and TypeClassDescriptionclass
org.apache.hadoop.hbase.HRegionInfo
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0.Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.client.RegionInfo
HRegionLocation.getRegion()
Returns regionInfostatic org.apache.hadoop.hbase.client.RegionInfo
MetaTableAccessor.getRegionInfo
(org.apache.hadoop.hbase.client.Result data) Returns RegionInfo object from the column HConstants.CATALOG_FAMILY:HConstants.REGIONINFO_QUALIFIER of the catalog table Result.static org.apache.hadoop.hbase.client.RegionInfo
MetaTableAccessor.getRegionInfo
(org.apache.hadoop.hbase.client.Result r, byte[] qualifier) Returns the RegionInfo object from the columnHConstants.CATALOG_FAMILY
andqualifier
of the catalog table result.static org.apache.hadoop.hbase.client.RegionInfo
MetaTableAccessor.parseRegionInfoFromRegionName
(byte[] regionName) Returns an HRI parsed from this regionName.Modifier and TypeMethodDescriptionstatic List<org.apache.hadoop.hbase.client.RegionInfo>
MetaTableAccessor.getAllRegions
(org.apache.hadoop.hbase.client.Connection connection, boolean excludeOfflinedSplitParents) Lists all of the regions currently in META.static org.apache.hadoop.hbase.util.PairOfSameType<org.apache.hadoop.hbase.client.RegionInfo>
MetaTableAccessor.getDaughterRegions
(org.apache.hadoop.hbase.client.Result data) Returns the daughter regions by reading the corresponding columns of the catalog table Result.static List<org.apache.hadoop.hbase.client.RegionInfo>
MetaTableAccessor.getMergeRegions
(org.apache.hadoop.hbase.Cell[] cells) Returns Deserialized regioninfo values taken from column values that match the regex 'info:merge.*' in array ofcells
.static List<org.apache.hadoop.hbase.client.RegionInfo>
MetaTableAccessor.getMergeRegions
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Returns Return all regioninfos listed in the 'info:merge*' columns of theregionInfo
row.MetaTableAccessor.getMergeRegionsWithName
(org.apache.hadoop.hbase.Cell[] cells) Returns Deserialized values of <qualifier,regioninfo> pairs taken from column values that match the regex 'info:merge.*' in array ofcells
.static org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.ServerName> MetaTableAccessor.getRegion
(org.apache.hadoop.hbase.client.Connection connection, byte[] regionName) Deprecated.useMetaTableAccessor.getRegionLocation(Connection, byte[])
insteadstatic NavigableMap<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.client.Result> MetaTableAccessor.getServerUserRegions
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.ServerName serverName) Get the user regions a given server is hosting.static List<org.apache.hadoop.hbase.client.RegionInfo>
MetaTableAccessor.getTableRegions
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.TableName tableName) Gets all of the regions of the specified table.static List<org.apache.hadoop.hbase.client.RegionInfo>
MetaTableAccessor.getTableRegions
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.TableName tableName, boolean excludeOfflinedSplitParents) Gets all of the regions of the specified table.static List<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.ServerName>> MetaTableAccessor.getTableRegionsAndLocations
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.TableName tableName) Do not use this method to get meta table regions, use methods in MetaTableLocator instead.static List<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.ServerName>> MetaTableAccessor.getTableRegionsAndLocations
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.TableName tableName, boolean excludeOfflinedSplitParents) Do not use this method to get meta table regions, use methods in MetaTableLocator instead.Modifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.client.Put
MetaTableAccessor.addRegionInfo
(org.apache.hadoop.hbase.client.Put p, org.apache.hadoop.hbase.client.RegionInfo hri) static void
MetaTableAccessor.addRegionToMeta
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Adds a (single) hbase:meta row for the specified new region and its daughters.static void
MetaTableAccessor.addSplitsToParent
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.client.RegionInfo splitA, org.apache.hadoop.hbase.client.RegionInfo splitB) Adds daughter region infos to hbase:meta row for the specified region.static void
MetaTableAccessor.deleteMergeQualifiers
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo mergeRegion) Deletes merge qualifiers for the specified merge region.static void
MetaTableAccessor.deleteRegionInfo
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Deletes the specified region from META.static org.apache.hadoop.hbase.client.Result
MetaTableAccessor.getCatalogFamilyRow
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo ri) Returns Return theHConstants.CATALOG_FAMILY
row from hbase:meta.static List<org.apache.hadoop.hbase.client.RegionInfo>
MetaTableAccessor.getMergeRegions
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Returns Return all regioninfos listed in the 'info:merge*' columns of theregionInfo
row.static byte[]
MetaTableAccessor.getMetaKeyForRegion
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Returns the row key to use for this regionInfostatic org.apache.hadoop.hbase.HRegionLocation
MetaTableAccessor.getRegionLocation
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Returns the HRegionLocation from meta for the given regionstatic org.apache.hadoop.hbase.client.Result
MetaTableAccessor.getRegionResult
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Gets the result in hbase:meta for the specified region.static boolean
MetaTableAccessor.hasMergeRegions
(org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Check whether the givenregionInfo
has any 'info:merge*' columns.static org.apache.hadoop.hbase.client.Delete
MetaTableAccessor.makeDeleteFromRegionInfo
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, long ts) Generates and returns a Delete containing the region info for the catalog tablestatic org.apache.hadoop.hbase.client.Put
MetaTableAccessor.makePutForReplicationBarrier
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, long openSeqNum, long ts) static org.apache.hadoop.hbase.client.Put
MetaTableAccessor.makePutFromRegionInfo
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Generates and returns aPut
containing theRegionInfo
for the catalog table.static org.apache.hadoop.hbase.client.Put
MetaTableAccessor.makePutFromRegionInfo
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, long ts) Generates and returns aPut
containing theRegionInfo
for the catalog table.static void
MetaTableAccessor.mergeRegions
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo mergedRegion, Map<org.apache.hadoop.hbase.client.RegionInfo, Long> parentSeqNum, org.apache.hadoop.hbase.ServerName sn, int regionReplication) Merge regions into one in an atomic operation.void
RegionStateListener.onRegionMerged
(org.apache.hadoop.hbase.client.RegionInfo mergedRegion) Process region merge event.void
RegionStateListener.onRegionSplit
(org.apache.hadoop.hbase.client.RegionInfo hri) Process region split event.void
RegionStateListener.onRegionSplitReverted
(org.apache.hadoop.hbase.client.RegionInfo hri) Process region split reverted event.static void
MetaTableAccessor.splitRegion
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo parent, long parentOpenSeqNum, org.apache.hadoop.hbase.client.RegionInfo splitA, org.apache.hadoop.hbase.client.RegionInfo splitB, org.apache.hadoop.hbase.ServerName sn, int regionReplication) Splits the region into two in an atomic operation.static void
MetaTableAccessor.updateRegionLocation
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.ServerName sn, long openSeqNum, long masterSystemTime) Updates the location of the specified region in hbase:meta to be the specified server hostname and startcode.static void
MetaTableAccessor.updateRegionState
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo ri, org.apache.hadoop.hbase.master.RegionState.State state) Update state column in hbase:meta.Modifier and TypeMethodDescriptionstatic void
MetaTableAccessor.addRegionsToMeta
(org.apache.hadoop.hbase.client.Connection connection, List<org.apache.hadoop.hbase.client.RegionInfo> regionInfos, int regionReplication) Adds a hbase:meta row for each of the specified new regions.static void
MetaTableAccessor.deleteRegionInfos
(org.apache.hadoop.hbase.client.Connection connection, List<org.apache.hadoop.hbase.client.RegionInfo> regionsInfo) Deletes the specified regions from META.static byte[]
MetaTableAccessor.getParentsBytes
(List<org.apache.hadoop.hbase.client.RegionInfo> parents) static void
MetaTableAccessor.mergeRegions
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo mergedRegion, Map<org.apache.hadoop.hbase.client.RegionInfo, Long> parentSeqNum, org.apache.hadoop.hbase.ServerName sn, int regionReplication) Merge regions into one in an atomic operation.static void
MetaTableAccessor.overwriteRegions
(org.apache.hadoop.hbase.client.Connection connection, List<org.apache.hadoop.hbase.client.RegionInfo> regionInfos, int regionReplication) Overwrites the specified regions from hbase:meta.ModifierConstructorDescriptionHRegionInfo
(org.apache.hadoop.hbase.client.RegionInfo other) Deprecated.Construct a copy of another HRegionInfoHRegionLocation
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.ServerName serverName) HRegionLocation
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.ServerName serverName, long seqNum) -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.backup
Modifier and TypeMethodDescriptionstatic void
HFileArchiver.archiveFamily
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.RegionInfo parent, org.apache.hadoop.fs.Path tableDir, byte[] family) Remove from the specified region the store files of the specified column family, either by archiving them or outright deletionstatic void
HFileArchiver.archiveFamilyByFamilyDir
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.RegionInfo parent, org.apache.hadoop.fs.Path familyDir, byte[] family) Removes from the specified region the store files of the specified column family, either by archiving them or outright deletionstatic void
HFileArchiver.archiveRecoveredEdits
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.hbase.client.RegionInfo regionInfo, byte[] family, Collection<org.apache.hadoop.hbase.regionserver.HStoreFile> replayedEdits) Archive recovered edits using existing logic for archiving store files.static void
HFileArchiver.archiveRegion
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.hbase.client.RegionInfo info) Cleans up all the files for a HRegion by archiving the HFiles to the archive directorystatic void
HFileArchiver.archiveStoreFile
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.fs.Path tableDir, byte[] family, org.apache.hadoop.fs.Path storeFile) Archive the store filestatic void
HFileArchiver.archiveStoreFiles
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.fs.Path tableDir, byte[] family, Collection<org.apache.hadoop.hbase.regionserver.HStoreFile> compactedFiles) Remove the store files, either by archiving them or outright deletionstatic boolean
HFileArchiver.exists
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.hbase.client.RegionInfo info) Returns True if the Region exits in the filesystem. -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.client
Modifier and TypeClassDescriptionclass
org.apache.hadoop.hbase.client.ImmutableHRegionInfo
Deprecated.Modifier and TypeFieldDescriptionstatic final org.apache.hadoop.hbase.client.RegionInfo
RegionInfoBuilder.FIRST_META_REGIONINFO
RegionInfo for first meta region You cannot use this builder to make an instance of theRegionInfoBuilder.FIRST_META_REGIONINFO
.static final org.apache.hadoop.hbase.client.RegionInfo
RegionInfoBuilder.UNDEFINED
Modifier and TypeFieldDescriptionstatic final Comparator<org.apache.hadoop.hbase.client.RegionInfo>
RegionInfo.COMPARATOR
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.client.RegionInfo
RegionInfoBuilder.build()
static org.apache.hadoop.hbase.client.RegionInfo
RegionInfo.createMobRegionInfo
(org.apache.hadoop.hbase.TableName tableName) Creates a RegionInfo object for MOB data.static org.apache.hadoop.hbase.client.RegionInfo
RegionReplicaUtil.getRegionInfoForDefaultReplica
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Returns the RegionInfo for the default replicaId (0).static org.apache.hadoop.hbase.client.RegionInfo
RegionReplicaUtil.getRegionInfoForReplica
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, int replicaId) Returns the RegionInfo for the given replicaId.static org.apache.hadoop.hbase.client.RegionInfo
RegionInfo.parseFrom
(byte[] bytes) Returns A deserializedRegionInfo
static org.apache.hadoop.hbase.client.RegionInfo
RegionInfo.parseFrom
(byte[] bytes, int offset, int len) Parse a serialized representation ofRegionInfo
static org.apache.hadoop.hbase.client.RegionInfo
RegionInfo.parseFrom
(DataInputStream in) Parses an RegionInfo instance from the passed in stream.static org.apache.hadoop.hbase.client.RegionInfo
RegionInfo.parseFromOrNull
(byte[] bytes) Returns A deserializedRegionInfo
or null if we failed deserialize or passed bytes nullstatic org.apache.hadoop.hbase.client.RegionInfo
RegionInfo.parseFromOrNull
(byte[] bytes, int offset, int len) Returns A deserializedRegionInfo
or null if we failed deserialize or passed bytes nullModifier and TypeMethodDescriptionstatic List<org.apache.hadoop.hbase.client.RegionInfo>
RegionReplicaUtil.addReplicas
(List<org.apache.hadoop.hbase.client.RegionInfo> regions, int oldReplicaCount, int newReplicaCount) Create any replicas for the regions (the default replicas that was already created is passed to the method)List<org.apache.hadoop.hbase.client.RegionInfo>
Admin.getRegions
(org.apache.hadoop.hbase.ServerName serverName) Get all the online regions on a region server.List<org.apache.hadoop.hbase.client.RegionInfo>
Admin.getRegions
(org.apache.hadoop.hbase.TableName tableName) Get the regions of a given table.CompletableFuture<List<org.apache.hadoop.hbase.client.RegionInfo>>
AsyncAdmin.getRegions
(org.apache.hadoop.hbase.ServerName serverName) Get all the online regions on a region server.CompletableFuture<List<org.apache.hadoop.hbase.client.RegionInfo>>
AsyncAdmin.getRegions
(org.apache.hadoop.hbase.TableName tableName) Get the regions of a given table.List<org.apache.hadoop.hbase.client.RegionInfo>
HBaseAdmin.getRegions
(org.apache.hadoop.hbase.ServerName sn) List<org.apache.hadoop.hbase.client.RegionInfo>
HBaseAdmin.getRegions
(org.apache.hadoop.hbase.TableName tableName) static List<org.apache.hadoop.hbase.client.RegionInfo>
RegionInfo.parseDelimitedFrom
(byte[] bytes, int offset, int length) Parses all the RegionInfo instances from the passed in stream until EOF.Modifier and TypeMethodDescriptionstatic boolean
RegionInfo.areAdjacent
(org.apache.hadoop.hbase.client.RegionInfo regionA, org.apache.hadoop.hbase.client.RegionInfo regionB) Check whether two regions are adjacent; i.e.void
MetaCache.clearCache
(org.apache.hadoop.hbase.client.RegionInfo hri) Deletes the cached location of the region if necessary, based on some error from source.
Synchronized because of calls in cacheLocation which need to be executed atomicallydefault int
RegionInfo.compareTo
(org.apache.hadoop.hbase.client.RegionInfo other) static byte[]
RegionInfoDisplay.getEndKeyForDisplay
(org.apache.hadoop.hbase.client.RegionInfo ri, org.apache.hadoop.conf.Configuration conf) Get the end key for display.static org.apache.hadoop.hbase.client.RegionInfo
RegionReplicaUtil.getRegionInfoForDefaultReplica
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Returns the RegionInfo for the default replicaId (0).static org.apache.hadoop.hbase.client.RegionInfo
RegionReplicaUtil.getRegionInfoForReplica
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, int replicaId) Returns the RegionInfo for the given replicaId.static String
RegionInfo.getRegionNameAsString
(org.apache.hadoop.hbase.client.RegionInfo ri, byte[] regionName) static String
RegionInfoDisplay.getRegionNameAsStringForDisplay
(org.apache.hadoop.hbase.client.RegionInfo ri, org.apache.hadoop.conf.Configuration conf) Get the region name for display.static byte[]
RegionInfoDisplay.getRegionNameForDisplay
(org.apache.hadoop.hbase.client.RegionInfo ri, org.apache.hadoop.conf.Configuration conf) Get the region name for display.static String
RegionInfo.getShortNameToLog
(org.apache.hadoop.hbase.client.RegionInfo... hris) Returns a String of short, printable names forhris
(usually encoded name) for us logging.static byte[]
RegionInfoDisplay.getStartKeyForDisplay
(org.apache.hadoop.hbase.client.RegionInfo ri, org.apache.hadoop.conf.Configuration conf) Get the start key for display.default boolean
RegionInfo.isAdjacent
(org.apache.hadoop.hbase.client.RegionInfo other) Returns True if region is adjacent, either just before or just after this one.static boolean
RegionReplicaUtil.isDefaultReplica
(org.apache.hadoop.hbase.client.RegionInfo hri) Returns true if this region is a default replica for the regiondefault boolean
RegionInfo.isNext
(org.apache.hadoop.hbase.client.RegionInfo after) Returns True if region is next, adjacent but 'after' this one.default boolean
RegionInfo.isOverlap
(org.apache.hadoop.hbase.client.RegionInfo other) Returns True if an overlap in region range.static boolean
RegionReplicaUtil.isReplicasForSameRegion
(org.apache.hadoop.hbase.client.RegionInfo regionInfoA, org.apache.hadoop.hbase.client.RegionInfo regionInfoB) static org.apache.hadoop.hbase.client.RegionInfoBuilder
RegionInfoBuilder.newBuilder
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) void
AsyncTable.CoprocessorCallback.onRegionComplete
(org.apache.hadoop.hbase.client.RegionInfo region, R resp) Indicate that the respose of a region is availablevoid
AsyncTable.CoprocessorCallback.onRegionError
(org.apache.hadoop.hbase.client.RegionInfo region, Throwable error) Indicate that the error for a region is availablestatic byte[]
RegionInfo.toByteArray
(org.apache.hadoop.hbase.client.RegionInfo ri) Returns This instance serialized as protobuf w/ a magic pb prefix.static byte[]
RegionInfo.toDelimitedByteArray
(org.apache.hadoop.hbase.client.RegionInfo ri) Use this instead oftoByteArray(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).static byte[]
RegionInfo.toDelimitedByteArray
(org.apache.hadoop.hbase.client.RegionInfo... infos) Serializes given RegionInfo's as a byte array.Modifier and TypeMethodDescriptionstatic List<org.apache.hadoop.hbase.client.RegionInfo>
RegionReplicaUtil.addReplicas
(List<org.apache.hadoop.hbase.client.RegionInfo> regions, int oldReplicaCount, int newReplicaCount) Create any replicas for the regions (the default replicas that was already created is passed to the method)static String
RegionInfo.getShortNameToLog
(List<org.apache.hadoop.hbase.client.RegionInfo> ris) Returns a String of short, printable names forhris
(usually encoded name) for us logging.static void
RegionReplicaUtil.removeNonDefaultRegions
(Collection<org.apache.hadoop.hbase.client.RegionInfo> regions) Removes the non-default replicas from the passed regions collectionModifierConstructorDescriptionClientSideRegionScanner
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.client.Scan scan, org.apache.hadoop.hbase.client.metrics.ScanMetrics scanMetrics) FlushRegionCallable
(org.apache.hadoop.hbase.client.ClusterConnection connection, org.apache.hadoop.hbase.ipc.RpcControllerFactory rpcControllerFactory, org.apache.hadoop.hbase.client.RegionInfo regionInfo, boolean writeFlushWalMarker) ImmutableHRegionInfo
(org.apache.hadoop.hbase.client.RegionInfo other) Deprecated. -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.client.locking
Modifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockRequest
LockServiceClient.buildLockRequest
(org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockType type, String namespace, org.apache.hadoop.hbase.TableName tableName, List<org.apache.hadoop.hbase.client.RegionInfo> regionInfos, String description, long nonceGroup, long nonce) org.apache.hadoop.hbase.client.locking.EntityLock
LockServiceClient.regionLock
(List<org.apache.hadoop.hbase.client.RegionInfo> regionInfos, String description, org.apache.hadoop.hbase.Abortable abort) Create a new EntityLock object to acquire exclusive lock on multiple regions of same tables. -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.coprocessor
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.client.RegionInfo
RegionCoprocessorEnvironment.getRegionInfo()
Returns region information for the region this coprocessor is running onModifier and TypeMethodDescriptiondefault void
MasterObserver.postAssign
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Called after the region assignment has been requested.default void
MasterObserver.postCompletedCreateTableAction
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.TableDescriptor desc, org.apache.hadoop.hbase.client.RegionInfo[] regions) Called after the createTable operation has been requested.default void
MasterObserver.postCompletedMergeRegionsAction
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo[] regionsToMerge, org.apache.hadoop.hbase.client.RegionInfo mergedRegion) called after the regions merge.default void
MasterObserver.postCompletedSplitRegionAction
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> c, org.apache.hadoop.hbase.client.RegionInfo regionInfoA, org.apache.hadoop.hbase.client.RegionInfo regionInfoB) Called after the region is split.default void
MasterObserver.postCreateTable
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.TableDescriptor desc, org.apache.hadoop.hbase.client.RegionInfo[] regions) Called after the createTable operation has been requested.default void
MasterObserver.postMergeRegions
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> c, org.apache.hadoop.hbase.client.RegionInfo[] regionsToMerge) called after merge regions request.default void
MasterObserver.postMergeRegionsCommitAction
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo[] regionsToMerge, org.apache.hadoop.hbase.client.RegionInfo mergedRegion) This will be called after META step as part of regions merge transaction.default void
MasterObserver.postMove
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.ServerName srcServer, org.apache.hadoop.hbase.ServerName destServer) Called after the region move has been requested.default void
MasterObserver.postRegionOffline
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Called after the region has been marked offline.default void
RegionObserver.postReplayWALs
(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.fs.Path edits) Called after replaying WALs for this region.default void
MasterObserver.postRequestLock
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, String namespace, org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.client.RegionInfo[] regionInfos, String description) Called after new LockProcedure is queued.default void
MasterObserver.postRollBackMergeRegionsAction
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo[] regionsToMerge) This will be called after the roll back of the regions merge.default void
MasterObserver.postTruncateRegion
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> c, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Called after the truncate region procedure is called.default void
MasterObserver.postTruncateRegionAction
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> c, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Called post the region is truncated.default void
MasterObserver.postUnassign
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Called after the region unassignment has been requested.default void
MasterObserver.postUnassign
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo regionInfo, boolean force) Deprecated.in 2.4.0.default void
RegionObserver.postWALRestore
(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKey logKey, org.apache.hadoop.hbase.wal.WALEdit logEdit) Called after aWALEdit
replayed for this region.default void
WALObserver.postWALWrite
(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.WALCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKey logKey, org.apache.hadoop.hbase.wal.WALEdit logEdit) Deprecated.Since hbase-2.0.0.default void
MasterObserver.preAssign
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Called prior to assigning a specific region.default void
MasterObserver.preCreateTable
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.TableDescriptor desc, org.apache.hadoop.hbase.client.RegionInfo[] regions) Called before a new table is created byHMaster
.default void
MasterObserver.preCreateTableAction
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.TableDescriptor desc, org.apache.hadoop.hbase.client.RegionInfo[] regions) Called before a new table is created byHMaster
.default void
MasterObserver.preMergeRegions
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo[] regionsToMerge) Called before merge regions request.default void
MasterObserver.preMergeRegionsAction
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo[] regionsToMerge) Called before the regions merge.default void
MasterObserver.preMergeRegionsCommitAction
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo[] regionsToMerge, List<org.apache.hadoop.hbase.client.Mutation> metaEntries) This will be called before update META step as part of regions merge transaction.default void
MasterObserver.preMove
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.ServerName srcServer, org.apache.hadoop.hbase.ServerName destServer) Called prior to moving a given region from one region server to another.default void
MasterObserver.preRegionOffline
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Called prior to marking a given region as offline.default void
RegionObserver.preReplayWALs
(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.fs.Path edits) Called before replaying WALs for this region.default void
MasterObserver.preRequestLock
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, String namespace, org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.client.RegionInfo[] regionInfos, String description) Called before new LockProcedure is queued.default void
MasterObserver.preTruncateRegion
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> c, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Called before the truncate region procedure is called.default void
MasterObserver.preTruncateRegionAction
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> c, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Called before the region is truncated.default void
MasterObserver.preUnassign
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Called prior to unassigning a given region.default void
MasterObserver.preUnassign
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo regionInfo, boolean force) Deprecated.in 2.4.0.default void
RegionObserver.preWALRestore
(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKey logKey, org.apache.hadoop.hbase.wal.WALEdit logEdit) Called before aWALEdit
replayed for this region.default void
WALObserver.preWALWrite
(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.WALCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKey logKey, org.apache.hadoop.hbase.wal.WALEdit logEdit) Deprecated.Since hbase-2.0.0. -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.favored
Modifier and TypeMethodDescriptionstatic Set<org.apache.hadoop.hbase.client.RegionInfo>
FavoredNodesManager.filterNonFNApplicableRegions
(Collection<org.apache.hadoop.hbase.client.RegionInfo> regions) Filter and return regions for which favored nodes is not applicable.FavoredNodeAssignmentHelper.generateFavoredNodesRoundRobin
(Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>> assignmentMap, List<org.apache.hadoop.hbase.client.RegionInfo> regions) Set<org.apache.hadoop.hbase.client.RegionInfo>
FavoredNodesManager.getRegionsOfFavoredNode
(org.apache.hadoop.hbase.ServerName serverName) Map<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.ServerName[]> FavoredNodeAssignmentHelper.placeSecondaryAndTertiaryRS
(Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> primaryRSMap) Map<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.ServerName[]> FavoredNodeAssignmentHelper.placeSecondaryAndTertiaryWithRestrictions
(Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> primaryRSMap) For regions that share the primary, avoid placing the secondary and tertiary on a same RS.FavoredNodeLoadBalancer.roundRobinAssignment
(List<org.apache.hadoop.hbase.client.RegionInfo> regions, List<org.apache.hadoop.hbase.ServerName> servers) Modifier and TypeMethodDescriptionvoid
FavoredNodesManager.deleteFavoredNodesForRegion
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) List<org.apache.hadoop.hbase.ServerName>
FavoredNodeAssignmentHelper.generateFavoredNodes
(org.apache.hadoop.hbase.client.RegionInfo hri) void
FavoredNodeLoadBalancer.generateFavoredNodesForDaughter
(List<org.apache.hadoop.hbase.ServerName> servers, org.apache.hadoop.hbase.client.RegionInfo parent, org.apache.hadoop.hbase.client.RegionInfo regionA, org.apache.hadoop.hbase.client.RegionInfo regionB) void
FavoredNodesPromoter.generateFavoredNodesForDaughter
(List<org.apache.hadoop.hbase.ServerName> servers, org.apache.hadoop.hbase.client.RegionInfo parent, org.apache.hadoop.hbase.client.RegionInfo hriA, org.apache.hadoop.hbase.client.RegionInfo hriB) void
FavoredNodeLoadBalancer.generateFavoredNodesForMergedRegion
(org.apache.hadoop.hbase.client.RegionInfo merged, org.apache.hadoop.hbase.client.RegionInfo[] mergeParents) void
FavoredNodesPromoter.generateFavoredNodesForMergedRegion
(org.apache.hadoop.hbase.client.RegionInfo merged, org.apache.hadoop.hbase.client.RegionInfo[] mergeParents) List<org.apache.hadoop.hbase.ServerName>
FavoredNodeLoadBalancer.getFavoredNodes
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) List<org.apache.hadoop.hbase.ServerName>
FavoredNodesManager.getFavoredNodes
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) List<org.apache.hadoop.hbase.ServerName>
FavoredNodesPlan.getFavoredNodes
(org.apache.hadoop.hbase.client.RegionInfo region) Returns the list of favored region server for this region based on the planList<org.apache.hadoop.hbase.ServerName>
FavoredNodesManager.getFavoredNodesWithDNPort
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) org.apache.hadoop.hbase.ServerName[]
FavoredNodeAssignmentHelper.getSecondaryAndTertiary
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.ServerName primaryRS) static boolean
FavoredNodesManager.isFavoredNodeApplicable
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) org.apache.hadoop.hbase.ServerName
FavoredNodeLoadBalancer.randomAssignment
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, List<org.apache.hadoop.hbase.ServerName> servers) void
FavoredNodesPlan.updateFavoredNodesMap
(org.apache.hadoop.hbase.client.RegionInfo region, List<org.apache.hadoop.hbase.ServerName> servers) Update an assignment to the planModifier and TypeMethodDescriptionprotected List<org.apache.hadoop.hbase.master.RegionPlan>
FavoredNodeLoadBalancer.balanceTable
(org.apache.hadoop.hbase.TableName tableName, Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>> loadOfOneTable) void
FavoredNodesManager.deleteFavoredNodesForRegions
(Collection<org.apache.hadoop.hbase.client.RegionInfo> regionInfoList) static Set<org.apache.hadoop.hbase.client.RegionInfo>
FavoredNodesManager.filterNonFNApplicableRegions
(Collection<org.apache.hadoop.hbase.client.RegionInfo> regions) Filter and return regions for which favored nodes is not applicable.FavoredNodeAssignmentHelper.generateFavoredNodesRoundRobin
(Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>> assignmentMap, List<org.apache.hadoop.hbase.client.RegionInfo> regions) FavoredNodeAssignmentHelper.generateFavoredNodesRoundRobin
(Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>> assignmentMap, List<org.apache.hadoop.hbase.client.RegionInfo> regions) void
FavoredNodeAssignmentHelper.placePrimaryRSAsRoundRobin
(Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>> assignmentMap, Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> primaryRSMap, List<org.apache.hadoop.hbase.client.RegionInfo> regions) void
FavoredNodeAssignmentHelper.placePrimaryRSAsRoundRobin
(Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>> assignmentMap, Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> primaryRSMap, List<org.apache.hadoop.hbase.client.RegionInfo> regions) Map<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.ServerName[]> FavoredNodeAssignmentHelper.placeSecondaryAndTertiaryRS
(Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> primaryRSMap) Map<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.ServerName[]> FavoredNodeAssignmentHelper.placeSecondaryAndTertiaryWithRestrictions
(Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> primaryRSMap) For regions that share the primary, avoid placing the secondary and tertiary on a same RS.FavoredNodeLoadBalancer.roundRobinAssignment
(List<org.apache.hadoop.hbase.client.RegionInfo> regions, List<org.apache.hadoop.hbase.ServerName> servers) void
FavoredNodesManager.updateFavoredNodes
(Map<org.apache.hadoop.hbase.client.RegionInfo, List<org.apache.hadoop.hbase.ServerName>> regionFNMap) static void
FavoredNodeAssignmentHelper.updateMetaWithFavoredNodesInfo
(Map<org.apache.hadoop.hbase.client.RegionInfo, List<org.apache.hadoop.hbase.ServerName>> regionToFavoredNodes, org.apache.hadoop.conf.Configuration conf) Update meta table with favored nodes infostatic void
FavoredNodeAssignmentHelper.updateMetaWithFavoredNodesInfo
(Map<org.apache.hadoop.hbase.client.RegionInfo, List<org.apache.hadoop.hbase.ServerName>> regionToFavoredNodes, org.apache.hadoop.hbase.client.Connection connection) Update meta table with favored nodes info -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.io
Modifier and TypeMethodDescriptionstatic String
HFileLink.create
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path dstFamilyPath, org.apache.hadoop.hbase.client.RegionInfo hfileRegionInfo, String hfileName) Create a new HFileLinkstatic String
HFileLink.create
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path dstFamilyPath, org.apache.hadoop.hbase.client.RegionInfo hfileRegionInfo, String hfileName, boolean createBackRef) Create a new HFileLinkstatic String
HFileLink.createHFileLinkName
(org.apache.hadoop.hbase.client.RegionInfo hfileRegionInfo, String hfileName) Create a new HFileLink name -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.ipc
Modifier and TypeMethodDescriptiondefault org.apache.hadoop.hbase.client.RegionInfo
HBaseRpcController.getRegionInfo()
Returns Target Region's RegionInfo or null if not available or pertinent.org.apache.hadoop.hbase.client.RegionInfo
HBaseRpcControllerImpl.getRegionInfo()
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.ipc.HBaseRpcController
RpcControllerFactory.newController
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, List<org.apache.hadoop.hbase.CellScannable> cellIterables) org.apache.hadoop.hbase.ipc.HBaseRpcController
RpcControllerFactory.newController
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.CellScanner cellScanner) -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.mapreduce
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.client.RegionInfo
TableSnapshotInputFormat.TableSnapshotRegionSplit.getRegion()
-
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.master
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.client.RegionInfo
RegionState.getRegion()
org.apache.hadoop.hbase.client.RegionInfo
RegionPlan.getRegionInfo()
Modifier and TypeMethodDescriptionSnapshotOfRegionAssignmentFromMeta.getPrimaryToRegionInfoMap()
SnapshotOfRegionAssignmentFromMeta.getRegionNameToRegionInfoMap()
Get the regioninfo for a regionSnapshotOfRegionAssignmentFromMeta.getRegionServerToRegionMap()
Get regionserver to region mapMap<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.ServerName> SnapshotOfRegionAssignmentFromMeta.getRegionToRegionServerMap()
Get region to region server mapSnapshotOfRegionAssignmentFromMeta.getSecondaryToRegionInfoMap()
SnapshotOfRegionAssignmentFromMeta.getTableToRegionMap()
Get regions for tablesSnapshotOfRegionAssignmentFromMeta.getTertiaryToRegionInfoMap()
LoadBalancer.retainAssignment
(Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> regions, List<org.apache.hadoop.hbase.ServerName> servers) Assign regions to the previously hosting region serverLoadBalancer.roundRobinAssignment
(List<org.apache.hadoop.hbase.client.RegionInfo> regions, List<org.apache.hadoop.hbase.ServerName> servers) Perform a Round Robin assignment of regions.Modifier and TypeMethodDescriptionstatic void
ServerManager.closeRegionSilentlyAndWait
(org.apache.hadoop.hbase.client.ClusterConnection connection, org.apache.hadoop.hbase.ServerName server, org.apache.hadoop.hbase.client.RegionInfo region, long timeout) Contacts a region server and waits up to timeout ms to close the region.static org.apache.hadoop.hbase.master.RegionState
RegionState.createForTesting
(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.master.RegionState.State state) void
MasterFileSystem.deleteFamilyFromFS
(org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.client.RegionInfo region, byte[] familyName) void
MasterFileSystem.deleteFamilyFromFS
(org.apache.hadoop.hbase.client.RegionInfo region, byte[] familyName) org.apache.hadoop.fs.Path
MasterFileSystem.getRegionDir
(org.apache.hadoop.hbase.client.RegionInfo region) Returns the directory for a giveregion
.boolean
ServerManager.isRegionInServerManagerStates
(org.apache.hadoop.hbase.client.RegionInfo hri) long
HMaster.mergeRegions
(org.apache.hadoop.hbase.client.RegionInfo[] regionsToMerge, boolean forcible, long ng, long nonce) long
MasterServices.mergeRegions
(org.apache.hadoop.hbase.client.RegionInfo[] regionsToMerge, boolean forcible, long nonceGroup, long nonce) Merge regions in a table.void
MasterCoprocessorHost.postAssign
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) void
MasterCoprocessorHost.postCompletedCreateTableAction
(org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.client.RegionInfo[] regions, org.apache.hadoop.hbase.security.User user) void
MasterCoprocessorHost.postCompletedMergeRegionsAction
(org.apache.hadoop.hbase.client.RegionInfo[] regionsToMerge, org.apache.hadoop.hbase.client.RegionInfo mergedRegion, org.apache.hadoop.hbase.security.User user) Invoked after completing merge regions operationvoid
MasterCoprocessorHost.postCompletedSplitRegionAction
(org.apache.hadoop.hbase.client.RegionInfo regionInfoA, org.apache.hadoop.hbase.client.RegionInfo regionInfoB, org.apache.hadoop.hbase.security.User user) Invoked just after a splitvoid
MasterCoprocessorHost.postCreateTable
(org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.client.RegionInfo[] regions) void
MasterCoprocessorHost.postMergeRegions
(org.apache.hadoop.hbase.client.RegionInfo[] regionsToMerge) void
MasterCoprocessorHost.postMergeRegionsCommit
(org.apache.hadoop.hbase.client.RegionInfo[] regionsToMerge, org.apache.hadoop.hbase.client.RegionInfo mergedRegion, org.apache.hadoop.hbase.security.User user) Invoked after merge regions operation writes the new region to hbase:metavoid
MasterCoprocessorHost.postMove
(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.ServerName srcServer, org.apache.hadoop.hbase.ServerName destServer) void
MasterCoprocessorHost.postRegionOffline
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) void
MasterCoprocessorHost.postRequestLock
(String namespace, org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.client.RegionInfo[] regionInfos, org.apache.hadoop.hbase.procedure2.LockType type, String description) void
MasterCoprocessorHost.postRollBackMergeRegionsAction
(org.apache.hadoop.hbase.client.RegionInfo[] regionsToMerge, org.apache.hadoop.hbase.security.User user) Invoked after rollback merge regions operationvoid
MasterCoprocessorHost.postTruncateRegion
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Invoked after calling the truncate region procedurevoid
MasterCoprocessorHost.postTruncateRegionAction
(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.security.User user) Invoked after calling the truncate region procedurevoid
MasterCoprocessorHost.postUnassign
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) void
MasterCoprocessorHost.preAssign
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) void
MasterCoprocessorHost.preCreateTable
(org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.client.RegionInfo[] regions) void
MasterCoprocessorHost.preCreateTableAction
(org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.client.RegionInfo[] regions, org.apache.hadoop.hbase.security.User user) void
MasterCoprocessorHost.preMergeRegions
(org.apache.hadoop.hbase.client.RegionInfo[] regionsToMerge) void
MasterCoprocessorHost.preMergeRegionsAction
(org.apache.hadoop.hbase.client.RegionInfo[] regionsToMerge, org.apache.hadoop.hbase.security.User user) Invoked just before a mergevoid
MasterCoprocessorHost.preMergeRegionsCommit
(org.apache.hadoop.hbase.client.RegionInfo[] regionsToMerge, List<org.apache.hadoop.hbase.client.Mutation> metaEntries, org.apache.hadoop.hbase.security.User user) Invoked before merge regions operation writes the new region to hbase:metavoid
MasterCoprocessorHost.preMove
(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.ServerName srcServer, org.apache.hadoop.hbase.ServerName destServer) void
MasterCoprocessorHost.preRegionOffline
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) void
MasterCoprocessorHost.preRequestLock
(String namespace, org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.client.RegionInfo[] regionInfos, org.apache.hadoop.hbase.procedure2.LockType type, String description) void
MasterCoprocessorHost.preTruncateRegion
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Invoked just before calling the truncate region procedurevoid
MasterCoprocessorHost.preTruncateRegionAction
(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.security.User user) Invoked just before calling the truncate region procedurevoid
MasterCoprocessorHost.preUnassign
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) org.apache.hadoop.hbase.ServerName
LoadBalancer.randomAssignment
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, List<org.apache.hadoop.hbase.ServerName> servers) Get a random region server from the listvoid
LoadBalancer.regionOffline
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Marks the region as offline at balancer.void
LoadBalancer.regionOnline
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.ServerName sn) Marks the region as online at balancer.void
ServerManager.removeRegion
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Called by delete table and similar to notify the ServerManager that a region was removed.void
ServerManager.sendRegionWarmup
(org.apache.hadoop.hbase.ServerName server, org.apache.hadoop.hbase.client.RegionInfo region) Sends a WARMUP RPC to the specified server to warmup the specified region.long
HMaster.splitRegion
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, byte[] splitRow, long nonceGroup, long nonce) long
MasterServices.splitRegion
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, byte[] splitRow, long nonceGroup, long nonce) Split a region.long
HMaster.truncateRegion
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, long nonceGroup, long nonce) long
MasterServices.truncateRegion
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, long nonceGroup, long nonce) Truncate regionModifier and TypeMethodDescriptionList<org.apache.hadoop.hbase.master.RegionPlan>
LoadBalancer.balanceCluster
(Map<org.apache.hadoop.hbase.TableName, Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>>> loadOfAllTable) Perform the major balance operation for cluster.void
ServerManager.removeRegions
(List<org.apache.hadoop.hbase.client.RegionInfo> regions) Called by delete table and similar to notify the ServerManager that a region was removed.LoadBalancer.retainAssignment
(Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> regions, List<org.apache.hadoop.hbase.ServerName> servers) Assign regions to the previously hosting region serverLoadBalancer.roundRobinAssignment
(List<org.apache.hadoop.hbase.client.RegionInfo> regions, List<org.apache.hadoop.hbase.ServerName> servers) Perform a Round Robin assignment of regions.default void
LoadBalancer.updateBalancerLoadInfo
(Map<org.apache.hadoop.hbase.TableName, Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>>> loadOfAllTable) In some scenarios, Balancer needs to update internal status or information according to the current tables loadModifierConstructorDescriptionRegionPlan
(org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.ServerName source, org.apache.hadoop.hbase.ServerName dest) Instantiate a plan for a region move, moving the specified region from the specified source server to the specified destination server.RegionState
(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.master.RegionState.State state, long stamp, org.apache.hadoop.hbase.ServerName serverName) RegionState
(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.master.RegionState.State state, long stamp, org.apache.hadoop.hbase.ServerName serverName, long ritDuration) RegionState
(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.master.RegionState.State state, org.apache.hadoop.hbase.ServerName serverName) -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.mob
Modifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.client.RegionInfo
MobUtils.getMobRegionInfo
(org.apache.hadoop.hbase.TableName tableName) Gets the RegionInfo of the mob files.Modifier and TypeMethodDescriptionstatic boolean
MobUtils.isMobRegionInfo
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Gets whether the current RegionInfo is a mob one. -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.namespace
Modifier and TypeMethodDescriptionvoid
NamespaceAuditor.checkQuotaToSplitRegion
(org.apache.hadoop.hbase.client.RegionInfo hri) void
NamespaceAuditor.removeRegionFromNamespaceUsage
(org.apache.hadoop.hbase.client.RegionInfo hri) void
NamespaceAuditor.updateQuotaForRegionMerge
(org.apache.hadoop.hbase.client.RegionInfo mergedRegion) -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.quotas
Modifier and TypeMethodDescriptionNamespaceQuotaSnapshotStore.filterBySubject
(String namespace) QuotaSnapshotStore.filterBySubject
(T subject) Filters the providedregions
, returning those which match the givensubject
.TableQuotaSnapshotStore.filterBySubject
(org.apache.hadoop.hbase.TableName table) Iterator<Map.Entry<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.quotas.RegionSize>> NoOpRegionSizeStore.iterator()
Iterator<Map.Entry<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.quotas.RegionSize>> RegionSizeStoreImpl.iterator()
MasterQuotaManager.snapshotRegionSizes()
Modifier and TypeMethodDescriptionvoid
MasterQuotaManager.addRegionSize
(org.apache.hadoop.hbase.client.RegionInfo hri, long size, long time) org.apache.hadoop.hbase.quotas.RegionSize
NoOpRegionSizeStore.getRegionSize
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) org.apache.hadoop.hbase.quotas.RegionSize
RegionSizeStore.getRegionSize
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Returns the size for the give region if one exists.org.apache.hadoop.hbase.quotas.RegionSize
RegionSizeStoreImpl.getRegionSize
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) void
NoOpRegionSizeStore.incrementRegionSize
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, long delta) void
RegionSizeStore.incrementRegionSize
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, long delta) Atomically alter the size of a region.void
RegionSizeStoreImpl.incrementRegionSize
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, long delta) void
MasterQuotaManager.onRegionMerged
(org.apache.hadoop.hbase.client.RegionInfo mergedRegion) void
MasterQuotaManager.onRegionSplit
(org.apache.hadoop.hbase.client.RegionInfo hri) void
MasterQuotaManager.onRegionSplitReverted
(org.apache.hadoop.hbase.client.RegionInfo hri) void
NoOpRegionSizeStore.put
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, long size) void
RegionSizeStore.put
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, long size) Atomically sets the givensize
for a region.void
RegionSizeStoreImpl.put
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, long size) org.apache.hadoop.hbase.quotas.RegionSize
NoOpRegionSizeStore.remove
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) org.apache.hadoop.hbase.quotas.RegionSize
RegionSizeStore.remove
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Removes the mapping for the given key, returning the value if one exists in the store.org.apache.hadoop.hbase.quotas.RegionSize
RegionSizeStoreImpl.remove
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Modifier and TypeMethodDescriptionvoid
NamespaceQuotaSnapshotStore.setRegionUsage
(Map<org.apache.hadoop.hbase.client.RegionInfo, Long> regionUsage) void
Updatesthis
with the latest snapshot of filesystem use by region.void
TableQuotaSnapshotStore.setRegionUsage
(Map<org.apache.hadoop.hbase.client.RegionInfo, Long> regionUsage) ModifierConstructorDescriptionNamespaceQuotaSnapshotStore
(org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.hbase.quotas.QuotaObserverChore chore, Map<org.apache.hadoop.hbase.client.RegionInfo, Long> regionUsage) TableQuotaSnapshotStore
(org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.hbase.quotas.QuotaObserverChore chore, Map<org.apache.hadoop.hbase.client.RegionInfo, Long> regionUsage) -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.regionserver
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.client.RegionInfo[]
RegionServerServices.RegionStateTransitionContext.getHris()
org.apache.hadoop.hbase.client.RegionInfo
HRegion.getRegionInfo()
org.apache.hadoop.hbase.client.RegionInfo
HRegionFileSystem.getRegionInfo()
Returns theRegionInfo
that describe this on-disk region vieworg.apache.hadoop.hbase.client.RegionInfo
HStore.getRegionInfo()
org.apache.hadoop.hbase.client.RegionInfo
Region.getRegionInfo()
Returns region information for this regionorg.apache.hadoop.hbase.client.RegionInfo
RegionScanner.getRegionInfo()
Returns The RegionInfo for this scanner.org.apache.hadoop.hbase.client.RegionInfo
RegionServicesForStores.getRegionInfo()
org.apache.hadoop.hbase.client.RegionInfo
Store.getRegionInfo()
Returns the parent region info hosting this storeorg.apache.hadoop.hbase.client.RegionInfo
StoreConfigInformation.getRegionInfo()
org.apache.hadoop.hbase.client.RegionInfo
StoreContext.getRegionInfo()
org.apache.hadoop.hbase.client.RegionInfo
HRegionFileSystem.getRegionInfoForFS()
static org.apache.hadoop.hbase.client.RegionInfo
HRegionFileSystem.loadRegionInfoFileContent
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path regionDir) Create aRegionInfo
from the serialized version on-disk.Modifier and TypeMethodDescriptionvoid
HRegionFileSystem.cleanupMergedRegion
(org.apache.hadoop.hbase.client.RegionInfo mergedRegion) Remove merged regionorg.apache.hadoop.fs.Path
HRegionFileSystem.commitDaughterRegion
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, List<org.apache.hadoop.fs.Path> allRegionFiles, org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) Commit a daughter region, moving it from the split temporary directory to the proper location in the filesystem.static org.apache.hadoop.hbase.HDFSBlocksDistribution
HRegion.computeHDFSBlocksDistribution
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, org.apache.hadoop.hbase.client.RegionInfo regionInfo) This is a helper function to compute HDFS block distribution on demandstatic org.apache.hadoop.hbase.HDFSBlocksDistribution
HRegion.computeHDFSBlocksDistribution
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.fs.Path tablePath) This is a helper function to compute HDFS block distribution on demandstatic org.apache.hadoop.hbase.regionserver.HRegion
HRegion.createHRegion
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tableDir, org.apache.hadoop.hbase.client.TableDescriptor tableDesc) Create a region under the given table directory.static org.apache.hadoop.hbase.regionserver.HRegion
HRegion.createHRegion
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.TableDescriptor hTableDescriptor, org.apache.hadoop.hbase.wal.WAL wal) static org.apache.hadoop.hbase.regionserver.HRegion
HRegion.createHRegion
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.TableDescriptor hTableDescriptor, org.apache.hadoop.hbase.wal.WAL wal, boolean initialize) Convenience method creating new HRegions.static org.apache.hadoop.hbase.regionserver.HRegion
HRegion.createHRegion
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.TableDescriptor hTableDescriptor, org.apache.hadoop.hbase.wal.WAL wal, boolean initialize, org.apache.hadoop.hbase.regionserver.RegionServerServices rsRpcServices) Convenience method creating new HRegions.static org.apache.hadoop.hbase.regionserver.HRegionFileSystem
HRegion.createRegionDir
(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.hbase.client.RegionInfo ri, org.apache.hadoop.fs.Path rootDir) Create the region directory in the filesystem.static org.apache.hadoop.hbase.regionserver.HRegionFileSystem
HRegionFileSystem.createRegionOnFileSystem
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tableDir, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Create a new Region on file-system.void
HRegionFileSystem.createSplitsDir
(org.apache.hadoop.hbase.client.RegionInfo daughterA, org.apache.hadoop.hbase.client.RegionInfo daughterB) Creates region split daughter directories under the table dir.static void
HRegionFileSystem.deleteRegionFromFileSystem
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tableDir, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Remove the region from the table directory, archiving the region's hfiles.org.apache.hadoop.fs.Path
HRegionFileSystem.getSplitsDir
(org.apache.hadoop.hbase.client.RegionInfo hri) static org.apache.hadoop.fs.Path
HRegionFileSystem.getStoreHomedir
(org.apache.hadoop.fs.Path tabledir, org.apache.hadoop.hbase.client.RegionInfo hri, byte[] family) org.apache.hadoop.hbase.wal.WAL
HRegionServer.getWAL
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) org.apache.hadoop.hbase.wal.WAL
RegionServerServices.getWAL
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Returns the WAL for a particular region.org.apache.hadoop.fs.Path
HRegionFileSystem.mergeStoreFile
(org.apache.hadoop.hbase.client.RegionInfo mergingRegion, String familyName, org.apache.hadoop.hbase.regionserver.HStoreFile f) Write out a merge reference under the given merges directory.static org.apache.hadoop.hbase.regionserver.HRegion
HRegion.newHRegion
(org.apache.hadoop.fs.Path tableDir, org.apache.hadoop.hbase.wal.WAL wal, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.regionserver.RegionServerServices rsServices) A utility method to create new instances of HRegion based on theHConstants.REGION_IMPL
configuration property.static org.apache.hadoop.hbase.regionserver.HRegion
HRegion.openHRegion
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.wal.WAL wal) Open a Region.static org.apache.hadoop.hbase.regionserver.HRegion
HRegion.openHRegion
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.wal.WAL wal, org.apache.hadoop.hbase.regionserver.RegionServerServices rsServices, org.apache.hadoop.hbase.util.CancelableProgressable reporter) Open a Region.static org.apache.hadoop.hbase.regionserver.HRegion
HRegion.openHRegion
(org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.wal.WAL wal, org.apache.hadoop.conf.Configuration conf) Open a Region.static org.apache.hadoop.hbase.regionserver.HRegion
HRegion.openHRegion
(org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.wal.WAL wal, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.regionserver.RegionServerServices rsServices, org.apache.hadoop.hbase.util.CancelableProgressable reporter) Open a Region.static org.apache.hadoop.hbase.regionserver.HRegion
HRegion.openHRegion
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.wal.WAL wal, org.apache.hadoop.conf.Configuration conf) Open a Region.static org.apache.hadoop.hbase.regionserver.HRegion
HRegion.openHRegion
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.wal.WAL wal, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.regionserver.RegionServerServices rsServices, org.apache.hadoop.hbase.util.CancelableProgressable reporter) Open a Region.static org.apache.hadoop.hbase.regionserver.HRegion
HRegion.openHRegionFromTableDir
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tableDir, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.wal.WAL wal, org.apache.hadoop.hbase.regionserver.RegionServerServices rsServices, org.apache.hadoop.hbase.util.CancelableProgressable reporter) Open a Region.static org.apache.hadoop.hbase.regionserver.HRegion
HRegion.openReadOnlyFileSystemHRegion
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tableDir, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.client.TableDescriptor htd) Open a Region on a read-only file-system (like hdfs snapshots)static org.apache.hadoop.hbase.regionserver.HRegionFileSystem
HRegionFileSystem.openRegionFromFileSystem
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tableDir, org.apache.hadoop.hbase.client.RegionInfo regionInfo, boolean readOnly) Open Region from file-system.void
RegionCoprocessorHost.postReplayWALs
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.fs.Path edits) void
RegionCoprocessorHost.postWALRestore
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKey logKey, org.apache.hadoop.hbase.wal.WALEdit logEdit) Deprecated.Since hbase-2.0.0.void
RegionCoprocessorHost.preReplayWALs
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.fs.Path edits) boolean
RegionCoprocessorHost.preWALRestore
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKey logKey, org.apache.hadoop.hbase.wal.WALEdit logEdit) Deprecated.Since hbase-2.0.0.static boolean
HRegion.rowIsInRange
(org.apache.hadoop.hbase.client.RegionInfo info, byte[] row) Determines if the specified row is within the row range specified by the specified RegionInfostatic boolean
HRegion.rowIsInRange
(org.apache.hadoop.hbase.client.RegionInfo info, byte[] row, int offset, short length) org.apache.hadoop.fs.Path
HRegionFileSystem.splitStoreFile
(org.apache.hadoop.hbase.client.RegionInfo hri, String familyName, org.apache.hadoop.hbase.regionserver.HStoreFile f, byte[] splitRow, boolean top, org.apache.hadoop.hbase.regionserver.RegionSplitPolicy splitPolicy) Write out a split reference.void
RSSnapshotVerifier.verifyRegion
(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, org.apache.hadoop.hbase.client.RegionInfo region) static org.apache.hadoop.hbase.regionserver.HRegion
HRegion.warmupHRegion
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.wal.WAL wal, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.regionserver.RegionServerServices rsServices, org.apache.hadoop.hbase.util.CancelableProgressable reporter) Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.client.locking.EntityLock
HRegionServer.regionLock
(List<org.apache.hadoop.hbase.client.RegionInfo> regionInfos, String description, org.apache.hadoop.hbase.Abortable abort) org.apache.hadoop.hbase.client.locking.EntityLock
RegionServerServices.regionLock
(List<org.apache.hadoop.hbase.client.RegionInfo> regionInfos, String description, org.apache.hadoop.hbase.Abortable abort) Master based locks on namespaces/tables/regions.ModifierConstructorDescriptionHRegion
(org.apache.hadoop.fs.Path tableDir, org.apache.hadoop.hbase.wal.WAL wal, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration confParam, org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.regionserver.RegionServerServices rsServices) Deprecated.Use other constructors.RegionStateTransitionContext
(org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode code, long openSeqNum, long procId, long masterSystemTime, org.apache.hadoop.hbase.client.RegionInfo hri) RegionStateTransitionContext
(org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode code, long openSeqNum, long masterSystemTime, org.apache.hadoop.hbase.client.RegionInfo... hris) -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.regionserver.wal
Modifier and TypeMethodDescriptionprotected abstract long
AbstractFSWAL.append
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKeyImpl key, org.apache.hadoop.hbase.wal.WALEdit edits, boolean inMemstore) Append a set of edits to the WAL.protected long
AsyncFSWAL.append
(org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.wal.WALKeyImpl key, org.apache.hadoop.hbase.wal.WALEdit edits, boolean inMemstore) protected long
FSHLog.append
(org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.wal.WALKeyImpl key, org.apache.hadoop.hbase.wal.WALEdit edits, boolean inMemstore) long
AbstractFSWAL.appendData
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKeyImpl key, org.apache.hadoop.hbase.wal.WALEdit edits) long
AbstractFSWAL.appendMarker
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKeyImpl key, org.apache.hadoop.hbase.wal.WALEdit edits) void
WALCoprocessorHost.postWALWrite
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKey logKey, org.apache.hadoop.hbase.wal.WALEdit logEdit) void
WALCoprocessorHost.preWALWrite
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKey logKey, org.apache.hadoop.hbase.wal.WALEdit logEdit) protected final long
AbstractFSWAL.stampSequenceIdAndPublishToRingBuffer
(org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.wal.WALKeyImpl key, org.apache.hadoop.hbase.wal.WALEdit edits, boolean inMemstore, com.lmax.disruptor.RingBuffer<org.apache.hadoop.hbase.regionserver.wal.RingBufferTruck> ringBuffer) default void
WALActionsListener.visitLogEntryBeforeWrite
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKey logKey, org.apache.hadoop.hbase.wal.WALEdit logEdit) Called before each write.static org.apache.hadoop.hbase.wal.WALKeyImpl
WALUtil.writeBulkLoadMarkerAndSync
(org.apache.hadoop.hbase.wal.WAL wal, NavigableMap<byte[], Integer> replicationScope, org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.BulkLoadDescriptor desc, org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl mvcc) Write a log marker that a bulk load has succeeded and is about to be committed.static org.apache.hadoop.hbase.wal.WALKeyImpl
WALUtil.writeCompactionMarker
(org.apache.hadoop.hbase.wal.WAL wal, NavigableMap<byte[], Integer> replicationScope, org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.CompactionDescriptor c, org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl mvcc) Write the marker that a compaction has succeeded and is about to be committed.static org.apache.hadoop.hbase.wal.WALKeyImpl
WALUtil.writeFlushMarker
(org.apache.hadoop.hbase.wal.WAL wal, NavigableMap<byte[], Integer> replicationScope, org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.FlushDescriptor f, boolean sync, org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl mvcc) Write a flush marker indicating a start / abort or a complete of a region flushstatic org.apache.hadoop.hbase.wal.WALKeyImpl
WALUtil.writeRegionEventMarker
(org.apache.hadoop.hbase.wal.WAL wal, NavigableMap<byte[], Integer> replicationScope, org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.RegionEventDescriptor r, org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl mvcc) Write a region open marker indicating that the region is opened.static void
WALUtil.writeReplicationMarkerAndSync
(org.apache.hadoop.hbase.wal.WAL wal, org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl mvcc, org.apache.hadoop.hbase.client.RegionInfo regionInfo, byte[] rowKey, long timestamp) -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.rsgroup
Modifier and TypeMethodDescriptionRSGroupBasedLoadBalancer.retainAssignment
(Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> regions, List<org.apache.hadoop.hbase.ServerName> servers) RSGroupBasedLoadBalancer.roundRobinAssignment
(List<org.apache.hadoop.hbase.client.RegionInfo> regions, List<org.apache.hadoop.hbase.ServerName> servers) Modifier and TypeMethodDescriptionvoid
RSGroupAdminEndpoint.preCreateTableAction
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.TableDescriptor desc, org.apache.hadoop.hbase.client.RegionInfo[] regions) org.apache.hadoop.hbase.ServerName
RSGroupBasedLoadBalancer.randomAssignment
(org.apache.hadoop.hbase.client.RegionInfo region, List<org.apache.hadoop.hbase.ServerName> servers) void
RSGroupBasedLoadBalancer.regionOffline
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) void
RSGroupBasedLoadBalancer.regionOnline
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.ServerName sn) Modifier and TypeMethodDescriptionList<org.apache.hadoop.hbase.master.RegionPlan>
RSGroupBasedLoadBalancer.balanceCluster
(Map<org.apache.hadoop.hbase.TableName, Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>>> loadOfAllTable) Balance by RSGroup.RSGroupBasedLoadBalancer.retainAssignment
(Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> regions, List<org.apache.hadoop.hbase.ServerName> servers) RSGroupBasedLoadBalancer.roundRobinAssignment
(List<org.apache.hadoop.hbase.client.RegionInfo> regions, List<org.apache.hadoop.hbase.ServerName> servers) void
RSGroupBasedLoadBalancer.updateBalancerLoadInfo
(Map<org.apache.hadoop.hbase.TableName, Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>>> loadOfAllTable) -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.shaded.protobuf
Modifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.client.RegionInfo
ProtobufUtil.getRegionInfo
(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin, byte[] regionName) A helper to retrieve region info given a region name or an encoded region name using admin protocol.static org.apache.hadoop.hbase.client.RegionInfo
ProtobufUtil.toRegionInfo
(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionInfo proto) Convert HBaseProto.RegionInfo to a RegionInfoModifier and TypeMethodDescriptionstatic List<org.apache.hadoop.hbase.client.RegionInfo>
ProtobufUtil.getOnlineRegions
(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin) A helper to get the all the online regions on a region server using admin protocol.static List<org.apache.hadoop.hbase.client.RegionInfo>
ProtobufUtil.getOnlineRegions
(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin) A helper to get the all the online regions on a region server using admin protocol.static List<org.apache.hadoop.hbase.client.RegionInfo>
ProtobufUtil.getRegionInfos
(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetOnlineRegionResponse proto) Get the list of region info from a GetOnlineRegionResponsestatic List<org.apache.hadoop.hbase.client.RegionInfo>
ResponseConverter.getRegionInfos
(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetOnlineRegionResponse proto) Get the list of region info from a GetOnlineRegionResponseModifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.OpenRegionRequest
RequestConverter.buildOpenRegionRequest
(org.apache.hadoop.hbase.ServerName server, org.apache.hadoop.hbase.client.RegionInfo region, List<org.apache.hadoop.hbase.ServerName> favoredNodes) Create a protocol buffer OpenRegionRequest for a given regionstatic org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.OpenRegionRequest.RegionOpenInfo
RequestConverter.buildRegionOpenInfo
(org.apache.hadoop.hbase.client.RegionInfo region, List<org.apache.hadoop.hbase.ServerName> favoredNodes, long openProcId) Create a RegionOpenInfo based on given region info and version of offline nodestatic org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SplitTableRegionRequest
RequestConverter.buildSplitTableRegionRequest
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, byte[] splitRow, long nonceGroup, long nonce) static org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.TruncateRegionRequest
RequestConverter.buildTruncateRegionRequest
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, long nonceGroup, long nonce) static org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WarmupRegionRequest
RequestConverter.buildWarmupRegionRequest
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Create a WarmupRegionRequest for a given region namestatic void
ProtobufUtil.openRegion
(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin, org.apache.hadoop.hbase.ServerName server, org.apache.hadoop.hbase.client.RegionInfo region) A helper to open a region using admin protocol.static org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.CompactionDescriptor
ProtobufUtil.toCompactionDescriptor
(org.apache.hadoop.hbase.client.RegionInfo info, byte[] regionName, byte[] family, List<org.apache.hadoop.fs.Path> inputPaths, List<org.apache.hadoop.fs.Path> outputPaths, org.apache.hadoop.fs.Path storeDir) static org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.CompactionDescriptor
ProtobufUtil.toCompactionDescriptor
(org.apache.hadoop.hbase.client.RegionInfo info, byte[] family, List<org.apache.hadoop.fs.Path> inputPaths, List<org.apache.hadoop.fs.Path> outputPaths, org.apache.hadoop.fs.Path storeDir) static org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.FlushDescriptor
ProtobufUtil.toFlushDescriptor
(org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.FlushDescriptor.FlushAction action, org.apache.hadoop.hbase.client.RegionInfo hri, long flushSeqId, Map<byte[], List<org.apache.hadoop.fs.Path>> committedFiles) static org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.RegionEventDescriptor
ProtobufUtil.toRegionEventDescriptor
(org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.RegionEventDescriptor.EventType eventType, org.apache.hadoop.hbase.client.RegionInfo hri, long seqId, org.apache.hadoop.hbase.ServerName server, Map<byte[], List<org.apache.hadoop.fs.Path>> storeFiles) static org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionInfo
ProtobufUtil.toRegionInfo
(org.apache.hadoop.hbase.client.RegionInfo info) Convert a RegionInfo to a Proto RegionInfostatic void
ProtobufUtil.warmupRegion
(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin, org.apache.hadoop.hbase.client.RegionInfo regionInfo) A helper to warmup a region given a region name using admin protocolModifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ClearRegionBlockCacheRequest
RequestConverter.buildClearRegionBlockCacheRequest
(List<org.apache.hadoop.hbase.client.RegionInfo> hris) Creates a protocol buffer ClearRegionBlockCacheRequeststatic org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetOnlineRegionResponse
ResponseConverter.buildGetOnlineRegionResponse
(List<org.apache.hadoop.hbase.client.RegionInfo> regions) A utility to build a GetOnlineRegionResponse.static org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.UpdateFavoredNodesRequest
RequestConverter.buildUpdateFavoredNodesRequest
(List<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.client.RegionInfo, List<org.apache.hadoop.hbase.ServerName>>> updateRegionInfos) Create a protocol buffer UpdateFavoredNodesRequest to update a list of favorednode mappings -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.snapshot
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.client.RegionInfo
RestoreSnapshotHelper.cloneRegionInfo
(org.apache.hadoop.hbase.client.RegionInfo snapshotRegionInfo) Create a newRegionInfo
from the snapshot region info.static org.apache.hadoop.hbase.client.RegionInfo
RestoreSnapshotHelper.cloneRegionInfo
(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.client.RegionInfo snapshotRegionInfo) Modifier and TypeMethodDescriptionList<org.apache.hadoop.hbase.client.RegionInfo>
RestoreSnapshotHelper.RestoreMetaChanges.getRegionsToAdd()
Returns the list of new regions added during the on-disk restore.List<org.apache.hadoop.hbase.client.RegionInfo>
RestoreSnapshotHelper.RestoreMetaChanges.getRegionsToRemove()
Returns the list of regions removed during the on-disk restore.List<org.apache.hadoop.hbase.client.RegionInfo>
RestoreSnapshotHelper.RestoreMetaChanges.getRegionsToRestore()
Returns the list of 'restored regions' during the on-disk restore.Modifier and TypeMethodDescriptionvoid
SnapshotManifest.addMobRegion
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) protected void
SnapshotManifest.addMobRegion
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.snapshot.SnapshotManifest.RegionVisitor visitor) void
SnapshotManifest.addRegion
(org.apache.hadoop.fs.Path tableDir, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Creates a 'manifest' for the specified region, by reading directly from the disk.protected void
SnapshotManifest.addRegion
(org.apache.hadoop.fs.Path tableDir, org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.snapshot.SnapshotManifest.RegionVisitor visitor) org.apache.hadoop.hbase.client.RegionInfo
RestoreSnapshotHelper.cloneRegionInfo
(org.apache.hadoop.hbase.client.RegionInfo snapshotRegionInfo) Create a newRegionInfo
from the snapshot region info.static org.apache.hadoop.hbase.client.RegionInfo
RestoreSnapshotHelper.cloneRegionInfo
(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.client.RegionInfo snapshotRegionInfo) void
SnapshotReferenceUtil.StoreFileVisitor.storeFile
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, String familyName, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile storeFile) static void
SnapshotReferenceUtil.verifyStoreFile
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path snapshotDir, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, org.apache.hadoop.hbase.client.RegionInfo regionInfo, String family, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile storeFile) Verify the validity of the snapshot store fileModifier and TypeMethodDescriptionvoid
RestoreSnapshotHelper.RestoreMetaChanges.updateMetaParentRegions
(org.apache.hadoop.hbase.client.Connection connection, List<org.apache.hadoop.hbase.client.RegionInfo> regionInfos) -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.testing
Modifier and TypeMethodDescriptionOptional<org.apache.hadoop.hbase.regionserver.Region>
TestingHBaseCluster.getRegion
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Get the server sideRegion
interface for the specific region. -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.util
Modifier and TypeClassDescriptionstatic class
org.apache.hadoop.hbase.util.HbckRegionInfo.MetaEntry
Stores the regioninfo entries scanned from METAModifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.client.RegionInfo
ModifyRegionUtils.createRegion
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, org.apache.hadoop.hbase.client.RegionInfo newRegion, org.apache.hadoop.hbase.util.ModifyRegionUtils.RegionFillTask task) Create new set of regions on the specified file-system.static org.apache.hadoop.hbase.client.RegionInfo[]
ModifyRegionUtils.createRegionInfos
(org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, byte[][] splitKeys) org.apache.hadoop.hbase.client.RegionInfo
HbckRegionInfo.getHdfsHRI()
org.apache.hadoop.hbase.client.RegionInfo
HbckRegionInfo.getPrimaryHRIForDeployedReplica()
static org.apache.hadoop.hbase.client.RegionInfo
ServerRegionReplicaUtil.getRegionInfoForFs
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Returns the regionInfo object to use for interacting with the file system.Modifier and TypeMethodDescriptionstatic List<org.apache.hadoop.hbase.client.RegionInfo>
ModifyRegionUtils.createRegions
(ThreadPoolExecutor exec, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, org.apache.hadoop.hbase.client.RegionInfo[] newRegions, org.apache.hadoop.hbase.util.ModifyRegionUtils.RegionFillTask task) Create new set of regions on the specified file-system.static List<org.apache.hadoop.hbase.client.RegionInfo>
ModifyRegionUtils.createRegions
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, org.apache.hadoop.hbase.client.RegionInfo[] newRegions, org.apache.hadoop.hbase.util.ModifyRegionUtils.RegionFillTask task) Create new set of regions on the specified file-system.org.apache.hbase.thirdparty.com.google.common.collect.ImmutableList<org.apache.hadoop.hbase.client.RegionInfo>
HbckTableInfo.getRegionsFromMeta
(TreeMap<String, org.apache.hadoop.hbase.util.HbckRegionInfo> regionInfoMap) Modifier and TypeMethodDescriptionvoid
HbckRegionInfo.addServer
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.ServerName serverName) static void
HBaseFsckRepair.closeRegionSilentlyAndWait
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.ServerName server, org.apache.hadoop.hbase.client.RegionInfo region) Contacts a region server and waits up to hbase.hbck.close.timeout ms (default 120s) to close the region.static org.apache.hadoop.hbase.regionserver.HRegion
HBaseFsckRepair.createHDFSRegionDir
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.client.TableDescriptor htd) Creates, flushes, and closes a new region.static org.apache.hadoop.hbase.client.RegionInfo
ModifyRegionUtils.createRegion
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, org.apache.hadoop.hbase.client.RegionInfo newRegion, org.apache.hadoop.hbase.util.ModifyRegionUtils.RegionFillTask task) Create new set of regions on the specified file-system.static List<org.apache.hadoop.hbase.client.RegionInfo>
ModifyRegionUtils.createRegions
(ThreadPoolExecutor exec, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, org.apache.hadoop.hbase.client.RegionInfo[] newRegions, org.apache.hadoop.hbase.util.ModifyRegionUtils.RegionFillTask task) Create new set of regions on the specified file-system.static List<org.apache.hadoop.hbase.client.RegionInfo>
ModifyRegionUtils.createRegions
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, org.apache.hadoop.hbase.client.RegionInfo[] newRegions, org.apache.hadoop.hbase.util.ModifyRegionUtils.RegionFillTask task) Create new set of regions on the specified file-system.static boolean
FSUtils.deleteRegionDir
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.RegionInfo hri) Delete the region directory if exists.void
ModifyRegionUtils.RegionEditTask.editRegion
(org.apache.hadoop.hbase.client.RegionInfo region) static void
HBaseFsckRepair.fixMetaHoleOnlineAndAddReplicas
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.RegionInfo hri, Collection<org.apache.hadoop.hbase.ServerName> servers, int numReplicas) Puts the specified RegionInfo into META with replica related columnsstatic void
HBaseFsckRepair.fixMultiAssignment
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo region, List<org.apache.hadoop.hbase.ServerName> servers) Fix multiple assignment by doing silent closes on each RS hosting the region and then force ZK unassigned node to OFFLINE to trigger assignment by master.static void
HBaseFsckRepair.fixUnassigned
(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.client.RegionInfo region) Fix unassigned by creating/transition the unassigned ZK node for this region to OFFLINE state with a special flag to tell the master that this is a forced operation by HBCK.static org.apache.hadoop.fs.Path
FSUtils.getRegionDirFromRootDir
(org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.client.RegionInfo region) static org.apache.hadoop.fs.Path
FSUtils.getRegionDirFromTableDir
(org.apache.hadoop.fs.Path tableDir, org.apache.hadoop.hbase.client.RegionInfo region) static org.apache.hadoop.hbase.client.RegionInfo
ServerRegionReplicaUtil.getRegionInfoForFs
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) Returns the regionInfo object to use for interacting with the file system.static org.apache.hadoop.fs.Path
HFileArchiveUtil.getStoreArchivePath
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.RegionInfo region, byte[] family) Gets the directory to archive a store directory.static org.apache.hadoop.fs.Path
HFileArchiveUtil.getStoreArchivePath
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.fs.Path tabledir, byte[] family) Get the directory to archive a store directorystatic org.apache.hadoop.fs.Path
HFileArchiveUtil.getStoreArchivePathForArchivePath
(org.apache.hadoop.fs.Path archivePath, org.apache.hadoop.hbase.client.RegionInfo region, byte[] family) static org.apache.hadoop.fs.Path
HFileArchiveUtil.getStoreArchivePathForRootDir
(org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.client.RegionInfo region, byte[] family) Gets the archive directory under specified root dir.static org.apache.hadoop.hbase.regionserver.StoreFileInfo
ServerRegionReplicaUtil.getStoreFileInfo
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.client.RegionInfo regionInfoForFs, String familyName, org.apache.hadoop.fs.Path path) Returns a StoreFileInfo from the given FileStatus.static void
HBaseFsckRepair.removeParentInMeta
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.RegionInfo hri) static void
HBaseFsckRepair.waitUntilAssigned
(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.client.RegionInfo region) Modifier and TypeMethodDescriptionstatic void
ModifyRegionUtils.editRegions
(ThreadPoolExecutor exec, Collection<org.apache.hadoop.hbase.client.RegionInfo> regions, org.apache.hadoop.hbase.util.ModifyRegionUtils.RegionEditTask task) Execute the task on the specified set of regions.ModifierConstructorDescriptionMetaEntry
(org.apache.hadoop.hbase.client.RegionInfo rinfo, org.apache.hadoop.hbase.ServerName regionServer, long modTime) MetaEntry
(org.apache.hadoop.hbase.client.RegionInfo rinfo, org.apache.hadoop.hbase.ServerName regionServer, long modTime, org.apache.hadoop.hbase.client.RegionInfo splitA, org.apache.hadoop.hbase.client.RegionInfo splitB) -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.util.compaction
Modifier and TypeFieldDescriptionprotected final org.apache.hadoop.hbase.client.RegionInfo
MajorCompactionRequest.region
Modifier and TypeMethodDescriptionprotected Optional<org.apache.hadoop.hbase.util.compaction.MajorCompactionRequest>
MajorCompactor.getMajorCompactionRequest
(org.apache.hadoop.hbase.client.RegionInfo hri) protected Optional<org.apache.hadoop.hbase.util.compaction.MajorCompactionRequest>
MajorCompactorTTL.getMajorCompactionRequest
(org.apache.hadoop.hbase.client.RegionInfo hri) -
Uses of org.apache.hadoop.hbase.client.RegionInfo in org.apache.hadoop.hbase.wal
Modifier and TypeMethodDescriptionlong
WAL.appendData
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKeyImpl key, org.apache.hadoop.hbase.wal.WALEdit edits) Append a set of data edits to the WAL.long
WAL.appendMarker
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKeyImpl key, org.apache.hadoop.hbase.wal.WALEdit edits) Append an operational 'meta' event marker edit to the WAL.static org.apache.hadoop.hbase.wal.WALEdit
WALEdit.createBulkLoadEvent
(org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.BulkLoadDescriptor bulkLoadDescriptor) Create a bulk loader WALEditstatic org.apache.hadoop.hbase.wal.WALEdit
WALEdit.createCompaction
(org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.CompactionDescriptor c) Returns A Marker WALEdit that hasc
serialized as its valuestatic org.apache.hadoop.hbase.wal.WALEdit
WALEdit.createFlushWALEdit
(org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.FlushDescriptor f) static org.apache.hadoop.hbase.wal.WALEdit
WALEdit.createRegionEventWALEdit
(org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.RegionEventDescriptor regionEventDesc) static long
WALSplitUtil.getMaxRegionSequenceId
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.util.IOExceptionSupplier<org.apache.hadoop.fs.FileSystem> rootFsSupplier, org.apache.hadoop.hbase.util.IOExceptionSupplier<org.apache.hadoop.fs.FileSystem> walFsSupplier) Deprecated.Only for compatibility, will be removed in 4.0.0.static byte[]
WALEdit.getRowForRegion
(org.apache.hadoop.hbase.client.RegionInfo hri) T
AbstractFSWALProvider.getWAL
(org.apache.hadoop.hbase.client.RegionInfo region) org.apache.hadoop.hbase.wal.WAL
RegionGroupingProvider.getWAL
(org.apache.hadoop.hbase.client.RegionInfo region) org.apache.hadoop.hbase.wal.WAL
WALFactory.getWAL
(org.apache.hadoop.hbase.client.RegionInfo region) org.apache.hadoop.hbase.wal.WAL
WALProvider.getWAL
(org.apache.hadoop.hbase.client.RegionInfo region) static boolean
WALSplitUtil.hasRecoveredEdits
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Check whether there is recovered.edits in the region dir