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.
20 #ifndef ASYNC_HBASE_GET_H_
21 #define ASYNC_HBASE_GET_H_
27 #include "core/hbase_macros.h"
28 #include "core/hbase_types.h"
31 * Allocate a new get structure.
32 * Ownership passes to the caller.
34 HBASE_API
int32_t hb_get_create(hb_get_t
* get_ptr
);
37 * Destroy and free a get structure.
39 HBASE_API
int32_t hb_get_destroy(hb_get_t get
);
42 * set the row of this get.
44 HBASE_API
int32_t hb_get_set_row(hb_get_t get
, hb_byte_t
* row
,
50 HBASE_API
int32_t hb_get_set_table(hb_get_t get
,
51 char * table
, size_t table_length
);
54 * Set the namespace this get is targeting.
56 HBASE_API
int32_t hb_get_set_namespace(hb_get_t get
,
57 char * name_space
, size_t name_space_length
);
60 * get call back typedef.
62 typedef void (* hb_get_cb
)(int32_t status
, hb_client_t client
,
63 hb_get_t get
, hb_result_t results
, void * extra
);
65 HBASE_API
int32_t hb_get_send(hb_client_t client
,
66 hb_get_t get
, hb_get_cb cb
, void * extra
);
73 #endif // ASYNC_HBASE_GET_H_