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, setTableInfo
HBaseFsck.ErrorReporter errors
HBaseFsck.TableInfo.IntegrityFixSuggester(HBaseFsck.TableInfo ti, HBaseFsck.ErrorReporter errors)
public void handleRegionStartKeyNotEmpty(HBaseFsck.HbckInfo hi) throws IOException
TableIntegrityErrorHandlerImpl
handleRegionStartKeyNotEmpty
in interface TableIntegrityErrorHandler
handleRegionStartKeyNotEmpty
in class TableIntegrityErrorHandlerImpl
hi
- 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.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(HBaseFsck.HbckInfo hi) throws IOException
TableIntegrityErrorHandlerImpl
handleDegenerateRegion
in interface TableIntegrityErrorHandler
handleDegenerateRegion
in class TableIntegrityErrorHandlerImpl
hi
- An HbckInfo for a degenerate key.IOException
public void handleDuplicateStartKeys(HBaseFsck.HbckInfo r1, HBaseFsck.HbckInfo r2) throws IOException
TableIntegrityErrorHandlerImpl
handleDuplicateStartKeys
in interface TableIntegrityErrorHandler
handleDuplicateStartKeys
in class TableIntegrityErrorHandlerImpl
r1
- one of the overlapping HbckInfor2
- the other overlapping HbckInfoIOException
public void handleSplit(HBaseFsck.HbckInfo r1, HBaseFsck.HbckInfo r2) throws IOException
TableIntegrityErrorHandler
r1
- one of the overlapping HbckInfor2
- the other overlapping HbckInfoIOException
public void handleOverlapInRegionChain(HBaseFsck.HbckInfo hi1, HBaseFsck.HbckInfo hi2) throws IOException
TableIntegrityErrorHandlerImpl
handleOverlapInRegionChain
in interface TableIntegrityErrorHandler
handleOverlapInRegionChain
in class TableIntegrityErrorHandlerImpl
hi1
- one of the overlapping HbckInfohi2
- the other overlapping HbckInfoIOException
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–2019 The Apache Software Foundation. All rights reserved.