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
;
34 public void shipped() throws IOException
{
40 return delegate
.peek();
44 public Cell
next() throws IOException
{
45 return delegate
.next();
49 public boolean seek(Cell key
) throws IOException
{
50 return delegate
.seek(key
);
54 public boolean reseek(Cell key
) throws IOException
{
55 return delegate
.reseek(key
);
59 public long getScannerOrder() {
60 return delegate
.getScannerOrder();
69 public boolean shouldUseScanner(Scan scan
, HStore store
, long oldestUnexpiredTS
) {
70 return delegate
.shouldUseScanner(scan
, store
, oldestUnexpiredTS
);
74 public boolean requestSeek(Cell kv
, boolean forward
, boolean useBloom
) throws IOException
{
75 return delegate
.requestSeek(kv
, forward
, useBloom
);
79 public boolean realSeekDone() {
80 return delegate
.realSeekDone();
84 public void enforceSeek() throws IOException
{
85 delegate
.enforceSeek();
89 public boolean isFileScanner() {
90 return delegate
.isFileScanner();
94 public Path
getFilePath() {
95 return delegate
.getFilePath();
99 public boolean backwardSeek(Cell key
) throws IOException
{
100 return delegate
.backwardSeek(key
);
104 public boolean seekToPreviousRow(Cell key
) throws IOException
{
105 return delegate
.seekToPreviousRow(key
);
109 public boolean seekToLastRow() throws IOException
{
110 return delegate
.seekToLastRow();
114 public Cell
getNextIndexedKey() {
115 return delegate
.getNextIndexedKey();