@InterfaceAudience.Private public abstract class TableIntegrityErrorHandlerImpl extends Object implements TableIntegrityErrorHandler
| Modifier and Type | Field and Description |
|---|---|
(package private) HbckTableInfo |
ti |
| Constructor and Description |
|---|
TableIntegrityErrorHandlerImpl() |
| Modifier and Type | Method and Description |
|---|---|
HbckTableInfo |
getTableInfo() |
void |
handleDegenerateRegion(HbckRegionInfo hi)
Callback for handling a region that has the same start and end key.
|
void |
handleDuplicateStartKeys(HbckRegionInfo hi1,
HbckRegionInfo hi2)
Callback for handling two regions that have the same start key.
|
void |
handleHoleInRegionChain(byte[] holeStart,
byte[] holeEnd)
Callback for handling a region hole between two keys.
|
void |
handleOverlapGroup(Collection<HbckRegionInfo> overlap)
Callback for handling an group of regions that overlap.
|
void |
handleOverlapInRegionChain(HbckRegionInfo hi1,
HbckRegionInfo hi2)
Callback for handling two reigons that overlap in some arbitrary way.
|
void |
handleRegionEndKeyNotEmpty(byte[] curEndKey)
Callback for handling case where a Table has a last region that does not
have an empty end key.
|
void |
handleRegionStartKeyNotEmpty(HbckRegionInfo hi)
Callback for handling case where a Table has a first region that does not
have an empty start key.
|
void |
setTableInfo(HbckTableInfo ti2)
Set the TableInfo used by all HRegionInfos fabricated by other callbacks
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleSplitHbckTableInfo ti
public TableIntegrityErrorHandlerImpl()
public HbckTableInfo getTableInfo()
getTableInfo in interface TableIntegrityErrorHandlerpublic void setTableInfo(HbckTableInfo ti2)
setTableInfo in interface TableIntegrityErrorHandlerpublic void handleRegionStartKeyNotEmpty(HbckRegionInfo hi) throws IOException
handleRegionStartKeyNotEmpty in interface TableIntegrityErrorHandlerhi - An HbckRegionInfo of the second region in a table. This should have
a non-empty startkey, and can be used to fabricate a first region that
has an empty start key.IOExceptionpublic void handleRegionEndKeyNotEmpty(byte[] curEndKey) throws IOException
handleRegionEndKeyNotEmpty in interface TableIntegrityErrorHandlercurEndKey - The end key of the current last region. There should be a new region
with start key as this and an empty end key.IOExceptionpublic void handleDegenerateRegion(HbckRegionInfo hi) throws IOException
handleDegenerateRegion in interface TableIntegrityErrorHandlerhi - An HbckRegionInfo for a degenerate key.IOExceptionpublic void handleDuplicateStartKeys(HbckRegionInfo hi1, HbckRegionInfo hi2) throws IOException
handleDuplicateStartKeys in interface TableIntegrityErrorHandlerhi1 - one of the overlapping HbckRegionInfohi2 - the other overlapping HbckRegionInfoIOExceptionpublic void handleOverlapInRegionChain(HbckRegionInfo hi1, HbckRegionInfo hi2) throws IOException
handleOverlapInRegionChain in interface TableIntegrityErrorHandlerhi1 - one of the overlapping HbckRegionInfohi2 - the other overlapping HbckRegionInfoIOExceptionpublic void handleHoleInRegionChain(byte[] holeStart, byte[] holeEnd) throws IOException
handleHoleInRegionChain in interface TableIntegrityErrorHandlerholeStart - key at the beginning of the region holeholeEnd - key at the end of the region holeIOExceptionpublic void handleOverlapGroup(Collection<HbckRegionInfo> overlap) throws IOException
handleOverlapGroup in interface TableIntegrityErrorHandleroverlap - Collection of overlapping regions.IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.