HBASE-26567 Remove IndexType from ChunkCreator (#3947)
[hbase.git] / hbase-server / src / test / java / org / apache / hadoop / hbase / regionserver / DelegatingKeyValueScanner.java
blob568ab7226e93de1a237da29570143bf7749344e7
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 package org.apache.hadoop.hbase.regionserver;
20 import java.io.IOException;
22 import org.apache.hadoop.fs.Path;
23 import org.apache.hadoop.hbase.Cell;
24 import org.apache.hadoop.hbase.client.Scan;
26 public class DelegatingKeyValueScanner implements KeyValueScanner {
27 protected KeyValueScanner delegate;
29 public DelegatingKeyValueScanner(KeyValueScanner delegate) {
30 this.delegate = delegate;
33 @Override
34 public void shipped() throws IOException {
35 delegate.shipped();
38 @Override
39 public Cell peek() {
40 return delegate.peek();
43 @Override
44 public Cell next() throws IOException {
45 return delegate.next();
48 @Override
49 public boolean seek(Cell key) throws IOException {
50 return delegate.seek(key);
53 @Override
54 public boolean reseek(Cell key) throws IOException {
55 return delegate.reseek(key);
58 @Override
59 public long getScannerOrder() {
60 return delegate.getScannerOrder();
63 @Override
64 public void close() {
65 delegate.close();
68 @Override
69 public boolean shouldUseScanner(Scan scan, HStore store, long oldestUnexpiredTS) {
70 return delegate.shouldUseScanner(scan, store, oldestUnexpiredTS);
73 @Override
74 public boolean requestSeek(Cell kv, boolean forward, boolean useBloom) throws IOException {
75 return delegate.requestSeek(kv, forward, useBloom);
78 @Override
79 public boolean realSeekDone() {
80 return delegate.realSeekDone();
83 @Override
84 public void enforceSeek() throws IOException {
85 delegate.enforceSeek();
88 @Override
89 public boolean isFileScanner() {
90 return delegate.isFileScanner();
93 @Override
94 public Path getFilePath() {
95 return delegate.getFilePath();
98 @Override
99 public boolean backwardSeek(Cell key) throws IOException {
100 return delegate.backwardSeek(key);
103 @Override
104 public boolean seekToPreviousRow(Cell key) throws IOException {
105 return delegate.seekToPreviousRow(key);
108 @Override
109 public boolean seekToLastRow() throws IOException {
110 return delegate.seekToLastRow();
113 @Override
114 public Cell getNextIndexedKey() {
115 return delegate.getNextIndexedKey();