|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.util.hbck.TableIntegrityErrorHandlerImpl
public abstract class TableIntegrityErrorHandlerImpl
Simple implementation of TableIntegrityErrorHandler. Can be used as a base class.
Constructor Summary | |
---|---|
TableIntegrityErrorHandlerImpl()
|
Method Summary | |
---|---|
HBaseFsck.TableInfo |
getTableInfo()
|
void |
handleDegenerateRegion(HBaseFsck.HbckInfo hi)
Callback for handling a region that has the same start and end key. |
void |
handleDuplicateStartKeys(HBaseFsck.HbckInfo hi1,
HBaseFsck.HbckInfo 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<HBaseFsck.HbckInfo> overlap)
Callback for handling an group of regions that overlap. |
void |
handleOverlapInRegionChain(HBaseFsck.HbckInfo hi1,
HBaseFsck.HbckInfo hi2)
Callback for handling two reigons that overlap in some arbitrary way. |
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 |
setTableInfo(HBaseFsck.TableInfo ti2)
Set the TableInfo used by all HRegionInfos fabricated by other callbacks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableIntegrityErrorHandlerImpl()
Method Detail |
---|
public HBaseFsck.TableInfo getTableInfo()
getTableInfo
in interface TableIntegrityErrorHandler
public void setTableInfo(HBaseFsck.TableInfo ti2)
TableIntegrityErrorHandler
setTableInfo
in interface TableIntegrityErrorHandler
public void handleRegionStartKeyNotEmpty(HBaseFsck.HbckInfo hi) throws IOException
TableIntegrityErrorHandler
handleRegionStartKeyNotEmpty
in interface TableIntegrityErrorHandler
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 handleDegenerateRegion(HBaseFsck.HbckInfo hi) throws IOException
TableIntegrityErrorHandler
handleDegenerateRegion
in interface TableIntegrityErrorHandler
hi
- An HbckInfo for a degenerate key.
IOException
public void handleDuplicateStartKeys(HBaseFsck.HbckInfo hi1, HBaseFsck.HbckInfo hi2) throws IOException
TableIntegrityErrorHandler
handleDuplicateStartKeys
in interface TableIntegrityErrorHandler
IOException
public void handleOverlapInRegionChain(HBaseFsck.HbckInfo hi1, HBaseFsck.HbckInfo hi2) throws IOException
TableIntegrityErrorHandler
handleOverlapInRegionChain
in interface TableIntegrityErrorHandler
IOException
public void handleHoleInRegionChain(byte[] holeStart, byte[] holeEnd) throws IOException
TableIntegrityErrorHandler
handleHoleInRegionChain
in interface TableIntegrityErrorHandler
IOException
public void handleOverlapGroup(Collection<HBaseFsck.HbckInfo> overlap) throws IOException
TableIntegrityErrorHandler
handleOverlapGroup
in interface TableIntegrityErrorHandler
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |