class HbckTableInfo.IntegrityFixSuggester extends TableIntegrityErrorHandlerImpl
| Modifier and Type | Field and Description |
|---|---|
(package private) HbckErrorReporter |
errors |
| Constructor and Description |
|---|
IntegrityFixSuggester(HbckTableInfo ti,
HbckErrorReporter errors) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleDegenerateRegion(HbckRegionInfo hi)
Callback for handling a region that has the same start and end key.
|
void |
handleDuplicateStartKeys(HbckRegionInfo r1,
HbckRegionInfo r2)
Callback for handling two regions that have the same start key.
|
void |
handleHoleInRegionChain(byte[] holeStart,
byte[] holeStop)
Callback for handling a region hole between two keys.
|
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 |
handleSplit(HbckRegionInfo r1,
HbckRegionInfo r2)
Callback for handling two regions that have the same regionID a specific case of a split
|
getTableInfo, handleOverlapGroup, setTableInfoHbckErrorReporter errors
IntegrityFixSuggester(HbckTableInfo ti, HbckErrorReporter errors)
public void handleRegionStartKeyNotEmpty(HbckRegionInfo hi) throws IOException
TableIntegrityErrorHandlerImplhandleRegionStartKeyNotEmpty in interface TableIntegrityErrorHandlerhandleRegionStartKeyNotEmpty in class TableIntegrityErrorHandlerImplhi - 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
TableIntegrityErrorHandlerImplhandleRegionEndKeyNotEmpty in interface TableIntegrityErrorHandlerhandleRegionEndKeyNotEmpty in class TableIntegrityErrorHandlerImplcurEndKey - 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
TableIntegrityErrorHandlerImplhandleDegenerateRegion in interface TableIntegrityErrorHandlerhandleDegenerateRegion in class TableIntegrityErrorHandlerImplhi - An HbckRegionInfo for a degenerate key.IOExceptionpublic void handleDuplicateStartKeys(HbckRegionInfo r1, HbckRegionInfo r2) throws IOException
TableIntegrityErrorHandlerImplhandleDuplicateStartKeys in interface TableIntegrityErrorHandlerhandleDuplicateStartKeys in class TableIntegrityErrorHandlerImplr1 - one of the overlapping HbckRegionInfor2 - the other overlapping HbckRegionInfoIOExceptionpublic void handleSplit(HbckRegionInfo r1, HbckRegionInfo r2) throws IOException
TableIntegrityErrorHandlerr1 - one of the overlapping HbckRegionInfor2 - the other overlapping HbckRegionInfoIOExceptionpublic void handleOverlapInRegionChain(HbckRegionInfo hi1, HbckRegionInfo hi2) throws IOException
TableIntegrityErrorHandlerImplhandleOverlapInRegionChain in interface TableIntegrityErrorHandlerhandleOverlapInRegionChain in class TableIntegrityErrorHandlerImplhi1 - one of the overlapping HbckRegionInfohi2 - the other overlapping HbckRegionInfoIOExceptionpublic void handleHoleInRegionChain(byte[] holeStart, byte[] holeStop) throws IOException
TableIntegrityErrorHandlerImplhandleHoleInRegionChain in interface TableIntegrityErrorHandlerhandleHoleInRegionChain in class TableIntegrityErrorHandlerImplholeStart - key at the beginning of the region holeholeStop - key at the end of the region holeIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.