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.
19 #include "async/hbase_scanner.h"
23 #include "core/hbase_types.h"
24 #include "core/scanner.h"
26 int32_t hb_scanner_create(hb_scanner_t
* scanner_ptr
) {
27 (*scanner_ptr
) = reinterpret_cast<hb_scanner_t
>(new Scanner());
28 return (*scanner_ptr
!= NULL
)?0:1;
31 HBASE_API
int32_t hb_scanner_set_table(hb_scanner_t scanner
,
32 char * table
, size_t table_length
) {
36 HBASE_API
int32_t hb_scanner_set_namespace(hb_scanner_t scanner
,
37 char * name_space
, size_t name_space_length
) {
41 int32_t hb_scanner_set_start_row(hb_scanner_t scanner
,
42 unsigned char * start_row
, size_t start_row_length
) {
46 int32_t hb_scanner_set_end_row(hb_scanner_t scanner
,
47 unsigned char * end_row
, size_t end_row_length
) {
51 int32_t hb_scanner_set_cache_size(hb_scanner_t scanner
,
56 int32_t hb_scanner_set_num_versions(hb_scanner_t scanner
,
57 int8_t num_versions
) {