View Javadoc

1   /**
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *     http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  package org.apache.hadoop.hbase.util.hbck;
19  
20  import java.io.IOException;
21  import java.util.Collection;
22  
23  import org.apache.hadoop.hbase.util.HBaseFsck.HbckInfo;
24  import org.apache.hadoop.hbase.util.HBaseFsck.TableInfo;
25  
26  /**
27   * Simple implementation of TableIntegrityErrorHandler. Can be used as a base
28   * class.
29   */
30  abstract public class TableIntegrityErrorHandlerImpl implements
31      TableIntegrityErrorHandler {
32    TableInfo ti;
33  
34    /**
35     * {@inheritDoc}
36     */
37    @Override
38    public TableInfo getTableInfo() {
39      return ti;
40    }
41  
42    /**
43     * {@inheritDoc}
44     */
45    @Override
46    public void setTableInfo(TableInfo ti2) {
47      this.ti = ti2;
48    }
49  
50    /**
51     * {@inheritDoc}
52     */
53    @Override
54    public void handleRegionStartKeyNotEmpty(HbckInfo hi) throws IOException {
55    }
56    
57    /**
58     * {@inheritDoc}
59     */
60    @Override
61    public void handleRegionEndKeyNotEmpty(byte[] curEndKey) throws IOException {
62    }
63  
64    /**
65     * {@inheritDoc}
66     */
67    @Override
68    public void handleDegenerateRegion(HbckInfo hi) throws IOException {
69    }
70  
71    /**
72     * {@inheritDoc}
73     */
74    @Override
75    public void handleDuplicateStartKeys(HbckInfo hi1, HbckInfo hi2)
76        throws IOException {
77    }
78  
79    /**
80     * {@inheritDoc}
81     */
82    @Override
83    public void handleOverlapInRegionChain(HbckInfo hi1, HbckInfo hi2)
84        throws IOException {
85    }
86  
87    /**
88     * {@inheritDoc}
89     */
90    @Override
91    public void handleHoleInRegionChain(byte[] holeStart, byte[] holeEnd)
92        throws IOException {
93    }
94  
95    /**
96     * {@inheritDoc}
97     */
98    @Override
99    public void handleOverlapGroup(Collection<HbckInfo> overlap)
100       throws IOException {
101   }
102 
103 }