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, setTableInfo
HbckErrorReporter errors
IntegrityFixSuggester(HbckTableInfo ti, HbckErrorReporter errors)
public void handleRegionStartKeyNotEmpty(HbckRegionInfo hi) throws IOException
TableIntegrityErrorHandlerImpl
handleRegionStartKeyNotEmpty
in interface TableIntegrityErrorHandler
handleRegionStartKeyNotEmpty
in class TableIntegrityErrorHandlerImpl
hi
- 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.IOException
public void handleRegionEndKeyNotEmpty(byte[] curEndKey) throws IOException
TableIntegrityErrorHandlerImpl
handleRegionEndKeyNotEmpty
in interface TableIntegrityErrorHandler
handleRegionEndKeyNotEmpty
in class TableIntegrityErrorHandlerImpl
curEndKey
- The end key of the current last region. There should be a new region
with start key as this and an empty end key.IOException
public void handleDegenerateRegion(HbckRegionInfo hi) throws IOException
TableIntegrityErrorHandlerImpl
handleDegenerateRegion
in interface TableIntegrityErrorHandler
handleDegenerateRegion
in class TableIntegrityErrorHandlerImpl
hi
- An HbckRegionInfo for a degenerate key.IOException
public void handleDuplicateStartKeys(HbckRegionInfo r1, HbckRegionInfo r2) throws IOException
TableIntegrityErrorHandlerImpl
handleDuplicateStartKeys
in interface TableIntegrityErrorHandler
handleDuplicateStartKeys
in class TableIntegrityErrorHandlerImpl
r1
- one of the overlapping HbckRegionInfor2
- the other overlapping HbckRegionInfoIOException
public void handleSplit(HbckRegionInfo r1, HbckRegionInfo r2) throws IOException
TableIntegrityErrorHandler
r1
- one of the overlapping HbckRegionInfor2
- the other overlapping HbckRegionInfoIOException
public void handleOverlapInRegionChain(HbckRegionInfo hi1, HbckRegionInfo hi2) throws IOException
TableIntegrityErrorHandlerImpl
handleOverlapInRegionChain
in interface TableIntegrityErrorHandler
handleOverlapInRegionChain
in class TableIntegrityErrorHandlerImpl
hi1
- one of the overlapping HbckRegionInfohi2
- the other overlapping HbckRegionInfoIOException
public void handleHoleInRegionChain(byte[] holeStart, byte[] holeStop) throws IOException
TableIntegrityErrorHandlerImpl
handleHoleInRegionChain
in interface TableIntegrityErrorHandler
handleHoleInRegionChain
in class TableIntegrityErrorHandlerImpl
holeStart
- key at the beginning of the region holeholeStop
- key at the end of the region holeIOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.