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
028 * class.
029 */
030@InterfaceAudience.Private
031abstract public class TableIntegrityErrorHandlerImpl implements
032    TableIntegrityErrorHandler {
033  HbckTableInfo ti;
034
035  /**
036   * {@inheritDoc}
037   */
038  @Override
039  public HbckTableInfo getTableInfo() {
040    return ti;
041  }
042
043  /**
044   * {@inheritDoc}
045   */
046  @Override
047  public void setTableInfo(HbckTableInfo ti2) {
048    this.ti = ti2;
049  }
050
051  /**
052   * {@inheritDoc}
053   */
054  @Override
055  public void handleRegionStartKeyNotEmpty(HbckRegionInfo hi) throws IOException {
056  }
057
058  /**
059   * {@inheritDoc}
060   */
061  @Override
062  public void handleRegionEndKeyNotEmpty(byte[] curEndKey) throws IOException {
063  }
064
065  /**
066   * {@inheritDoc}
067   */
068  @Override
069  public void handleDegenerateRegion(HbckRegionInfo hi) throws IOException {
070  }
071
072  /**
073   * {@inheritDoc}
074   */
075  @Override
076  public void handleDuplicateStartKeys(HbckRegionInfo hi1, HbckRegionInfo hi2)
077      throws IOException {
078  }
079
080  /**
081   * {@inheritDoc}
082   */
083  @Override
084  public void handleOverlapInRegionChain(HbckRegionInfo hi1, HbckRegionInfo hi2)
085      throws IOException {
086  }
087
088  /**
089   * {@inheritDoc}
090   */
091  @Override
092  public void handleHoleInRegionChain(byte[] holeStart, byte[] holeEnd)
093      throws IOException {
094  }
095
096  /**
097   * {@inheritDoc}
098   */
099  @Override
100  public void handleOverlapGroup(Collection<HbckRegionInfo> overlap)
101      throws IOException {
102  }
103
104}