Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hbase-table-factory.h
Go to the documentation of this file.
1 // Copyright 2012 Cloudera Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef IMPALA_RUNTIME_HBASE_TABLE_FACTORY_H
16 #define IMPALA_RUNTIME_HBASE_TABLE_FACTORY_H
17 
18 #include <boost/scoped_ptr.hpp>
19 #include <jni.h>
20 #include <string>
21 
22 #include "common/status.h"
23 #include "runtime/hbase-table.h"
24 
25 namespace impala {
26 
35  public:
37 
40  static Status Init();
41 
46  Status GetTable(const std::string& table_name,
47  boost::scoped_ptr<HBaseTable>* hbase_table);
48 
49  private:
51  static jclass executor_cl_;
52  static jmethodID executor_shutdown_id_;
53 
55  static jobject conf_;
56  static jobject executor_;
57 };
58 
59 } // namespace impala
60 
61 #endif // IMPALA_RUNTIME_HBASE_TABLE_FACTORY_H
static jmethodID executor_shutdown_id_
Status GetTable(const std::string &table_name, boost::scoped_ptr< HBaseTable > *hbase_table)
static jobject conf_
Configuration and executor jobject's. Initialized in Init().
static jclass executor_cl_
ExecutorService class and methods.