private class HBaseFsck.TableInfo.IntegrityFixSuggester extends TableIntegrityErrorHandlerImpl
| Modifier and Type | Field and Description |
|---|---|
(package private) HBaseFsck.ErrorReporter |
errors |
| Constructor and Description |
|---|
HBaseFsck.TableInfo.IntegrityFixSuggester(HBaseFsck.TableInfo ti,
HBaseFsck.ErrorReporter errors) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleDegenerateRegion(HBaseFsck.HbckInfo hi)
Callback for handling a region that has the same start and end key.
|
void |
handleDuplicateStartKeys(HBaseFsck.HbckInfo r1,
HBaseFsck.HbckInfo 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(HBaseFsck.HbckInfo hi1,
HBaseFsck.HbckInfo 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(HBaseFsck.HbckInfo hi)
Callback for handling case where a Table has a first region that does not
have an empty start key.
|
void |
handleSplit(HBaseFsck.HbckInfo r1,
HBaseFsck.HbckInfo r2)
Callback for handling two regions that have the same regionID
a specific case of a split
|
getTableInfo, handleOverlapGroup, setTableInfoHBaseFsck.ErrorReporter errors
HBaseFsck.TableInfo.IntegrityFixSuggester(HBaseFsck.TableInfo ti, HBaseFsck.ErrorReporter errors)
public void handleRegionStartKeyNotEmpty(HBaseFsck.HbckInfo hi) throws IOException
TableIntegrityErrorHandlerImplhandleRegionStartKeyNotEmpty in interface TableIntegrityErrorHandlerhandleRegionStartKeyNotEmpty in class TableIntegrityErrorHandlerImplhi - An HbckInfo 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(HBaseFsck.HbckInfo hi) throws IOException
TableIntegrityErrorHandlerImplhandleDegenerateRegion in interface TableIntegrityErrorHandlerhandleDegenerateRegion in class TableIntegrityErrorHandlerImplhi - An HbckInfo for a degenerate key.IOExceptionpublic void handleDuplicateStartKeys(HBaseFsck.HbckInfo r1, HBaseFsck.HbckInfo r2) throws IOException
TableIntegrityErrorHandlerImplhandleDuplicateStartKeys in interface TableIntegrityErrorHandlerhandleDuplicateStartKeys in class TableIntegrityErrorHandlerImplr1 - one of the overlapping HbckInfor2 - the other overlapping HbckInfoIOExceptionpublic void handleSplit(HBaseFsck.HbckInfo r1, HBaseFsck.HbckInfo r2) throws IOException
TableIntegrityErrorHandlerr1 - one of the overlapping HbckInfor2 - the other overlapping HbckInfoIOExceptionpublic void handleOverlapInRegionChain(HBaseFsck.HbckInfo hi1, HBaseFsck.HbckInfo hi2) throws IOException
TableIntegrityErrorHandlerImplhandleOverlapInRegionChain in interface TableIntegrityErrorHandlerhandleOverlapInRegionChain in class TableIntegrityErrorHandlerImplhi1 - one of the overlapping HbckInfohi2 - the other overlapping HbckInfoIOExceptionpublic 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–2019 The Apache Software Foundation. All rights reserved.