001/* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software 013 * distributed under the License is distributed on an "AS IS" BASIS, 014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 015 * See the License for the specific language governing permissions and 016 * limitations under the License. 017 */ 018package org.apache.hadoop.hbase.util.hbck; 019 020import java.io.IOException; 021import java.util.Collection; 022import org.apache.hadoop.hbase.util.HbckRegionInfo; 023import org.apache.hadoop.hbase.util.HbckTableInfo; 024import org.apache.yetus.audience.InterfaceAudience; 025 026/** 027 * Simple implementation of TableIntegrityErrorHandler. Can be used as a base class. 028 */ 029@InterfaceAudience.Private 030abstract public class TableIntegrityErrorHandlerImpl implements TableIntegrityErrorHandler { 031 HbckTableInfo ti; 032 033 /** 034 * {@inheritDoc} 035 */ 036 @Override 037 public HbckTableInfo getTableInfo() { 038 return ti; 039 } 040 041 /** 042 * {@inheritDoc} 043 */ 044 @Override 045 public void setTableInfo(HbckTableInfo ti2) { 046 this.ti = ti2; 047 } 048 049 /** 050 * {@inheritDoc} 051 */ 052 @Override 053 public void handleRegionStartKeyNotEmpty(HbckRegionInfo hi) throws IOException { 054 } 055 056 /** 057 * {@inheritDoc} 058 */ 059 @Override 060 public void handleRegionEndKeyNotEmpty(byte[] curEndKey) throws IOException { 061 } 062 063 /** 064 * {@inheritDoc} 065 */ 066 @Override 067 public void handleDegenerateRegion(HbckRegionInfo hi) throws IOException { 068 } 069 070 /** 071 * {@inheritDoc} 072 */ 073 @Override 074 public void handleDuplicateStartKeys(HbckRegionInfo hi1, HbckRegionInfo hi2) throws IOException { 075 } 076 077 /** 078 * {@inheritDoc} 079 */ 080 @Override 081 public void handleOverlapInRegionChain(HbckRegionInfo hi1, HbckRegionInfo hi2) 082 throws IOException { 083 } 084 085 /** 086 * {@inheritDoc} 087 */ 088 @Override 089 public void handleHoleInRegionChain(byte[] holeStart, byte[] holeEnd) throws IOException { 090 } 091 092 /** 093 * {@inheritDoc} 094 */ 095 @Override 096 public void handleOverlapGroup(Collection<HbckRegionInfo> overlap) throws IOException { 097 } 098 099}