Skip to content

Commit

Permalink
add include/tera.h #964
Browse files Browse the repository at this point in the history
  • Loading branch information
xupeilin committed Aug 16, 2016
1 parent dd23441 commit ddff2d0
Show file tree
Hide file tree
Showing 33 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ all: $(PROGRAM) $(LIBRARY) $(SOLIBRARY) $(TERA_C_SO) $(JNILIBRARY) $(BENCHMARK)
cp $(LIBRARY) $(SOLIBRARY) $(TERA_C_SO) $(JNILIBRARY) build/lib
cp src/leveldb/tera_bench .
cp -r benchmark/*.sh $(BENCHMARK) build/benchmark
cp src/sdk/tera.h build/include
cp -r include build/
cp -r conf build
echo 'Done'

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/benchmark/mark.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <glog/logging.h>

#include "common/mutex.h"
#include "sdk/tera.h"
#include "tera.h"
#include "utils/counter.h"

DECLARE_int64(pend_size);
Expand Down
2 changes: 1 addition & 1 deletion src/monitor/teramo_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "common/file/file_path.h"
#include "proto/monitor.pb.h"
#include "proto/tabletnode.pb.h"
#include "sdk/tera.h"
#include "tera.h"
#include "utils/utils_cmd.h"
#include "utils/timer.h"

Expand Down
2 changes: 1 addition & 1 deletion src/sample/tera_row_txn_sample.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "sdk/tera.h"
#include "tera.h"

int main() {
tera::ErrorCode error_code;
Expand Down
2 changes: 1 addition & 1 deletion src/sample/tera_sample.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <time.h>
#include <unistd.h>

#include "sdk/tera.h"
#include "tera.h"

/// 创建一个表格
int CreateTable(tera::Client* client) {
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/client_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "proto/master_rpc.pb.h"
#include "proto/tabletnode_client.h"
#include "sdk/sdk_zk.h"
#include "sdk/tera.h"
#include "tera.h"
#include "utils/timer.h"

using std::string;
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/http/http.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "sofa/pbrpc/pbrpc.h"

#include "proto/http.pb.h"
#include "sdk/tera.h"
#include "tera.h"
#include "utils/counter.h"

DECLARE_int32(tera_http_ctrl_thread_num);
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/java/native-src/jni_tera_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

#include "glog/logging.h"

#include "sdk/tera.h"
#include "sdk/sdk_utils.h"
#include "tera.h"

#define NativeNewClient \
JNICALL Java_com_baidu_tera_client_TeraClientImpl_nativeNewClient
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/java/native-src/jni_tera_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <map>
#include <string>

#include "sdk/tera.h"
#include "tera.h"

void SendErrorJ(JNIEnv *env, jobject jobj, std::string msg);

Expand Down
2 changes: 1 addition & 1 deletion src/sdk/java/native-src/jni_tera_mutation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "jni_tera_mutation.h"
#include "jni_tera_common.h"

#include "sdk/tera.h"
#include "tera.h"

#define NativeAdd \
JNICALL Java_com_baidu_tera_client_TeraMutationImpl_nativeAdd
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/java/native-src/jni_tera_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "jni_tera_reader.h"
#include "jni_tera_common.h"

#include "sdk/tera.h"
#include "tera.h"

#define NativeAddColumn \
JNICALL Java_com_baidu_tera_client_TeraReaderImpl_nativeAddColumn
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/java/native-src/jni_tera_result_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "jni_tera_result_stream.h"
#include "jni_tera_common.h"

#include "sdk/tera.h"
#include "tera.h"

#define NativeDone \
JNICALL Java_com_baidu_tera_client_ScanResultStreamImpl_nativeDone
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/java/native-src/jni_tera_scan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "jni_tera_scan.h"
#include "jni_tera_common.h"

#include "sdk/tera.h"
#include "tera.h"

#define NativeNewScanDesc \
JNICALL Java_com_baidu_tera_client_TeraScanImpl_nativeNewScanDesc
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/java/native-src/jni_tera_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "glog/logging.h"

#include "sdk/tera.h"
#include "tera.h"

#define NativePut \
JNICALL Java_com_baidu_tera_client_TeraTableImpl_nativePut
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/mutate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

#include "sdk/mutate_impl.h"
#include "sdk/tera.h"
#include "tera.h"

namespace tera {

Expand Down
2 changes: 1 addition & 1 deletion src/sdk/mutate_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "common/mutex.h"
#include "proto/tabletnode_rpc.pb.h"
#include "sdk/sdk_task.h"
#include "sdk/tera.h"
#include "tera.h"
#include "types.h"
#include "utils/timer.h"

Expand Down
2 changes: 1 addition & 1 deletion src/sdk/read.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

#include "sdk/read_impl.h"
#include "sdk/tera.h"
#include "tera.h"

namespace tera {

Expand Down
2 changes: 1 addition & 1 deletion src/sdk/read_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "common/mutex.h"
#include "proto/tabletnode_rpc.pb.h"
#include "sdk/sdk_task.h"
#include "sdk/tera.h"
#include "tera.h"
#include "types.h"
#include "utils/timer.h"

Expand Down
2 changes: 1 addition & 1 deletion src/sdk/scan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

#include "sdk/scan_impl.h"
#include "sdk/tera.h"
#include "tera.h"

namespace tera {

Expand Down
2 changes: 1 addition & 1 deletion src/sdk/scan_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "common/thread.h"
#include "proto/tabletnode_rpc.pb.h"
#include "sdk/sdk_task.h"
#include "sdk/tera.h"
#include "tera.h"
#include "types.h"
#include "utils/timer.h"

Expand Down
2 changes: 1 addition & 1 deletion src/sdk/schema.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

#include "sdk/schema_impl.h"
#include "sdk/tera.h"
#include "tera.h"

namespace tera {

Expand Down
2 changes: 1 addition & 1 deletion src/sdk/schema_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <string>

#include "proto/table_meta.pb.h"
#include "sdk/tera.h"
#include "tera.h"

namespace tera {

Expand Down
2 changes: 1 addition & 1 deletion src/sdk/sdk_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "common/thread_pool.h"

#include "proto/table_meta.pb.h"
#include "sdk/tera.h"
#include "tera.h"

namespace tera {

Expand Down
2 changes: 1 addition & 1 deletion src/sdk/sdk_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define TERA_SDK_SDK_UTILS_H_

#include "proto/table_meta.pb.h"
#include "sdk/tera.h"
#include "tera.h"
#include "utils/prop_tree.h"

using std::string;
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/single_row_txn.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <string>

#include "sdk/mutate_impl.h"
#include "sdk/tera.h"
#include "tera.h"

namespace common {
class ThreadPool;
Expand Down
4 changes: 2 additions & 2 deletions src/sdk/table_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "sdk/table_impl.h"
#include "table_impl.h"
#include "tera.h"

#include <errno.h>
#include <fcntl.h>
Expand Down Expand Up @@ -31,7 +32,6 @@
#include "sdk/scan_impl.h"
#include "sdk/schema_impl.h"
#include "sdk/sdk_zk.h"
#include "sdk/tera.h"
#include "utils/crypt.h"
#include "utils/string_util.h"
#include "utils/timer.h"
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/table_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "sdk/client_impl.h"
#include "sdk/sdk_task.h"
#include "sdk/sdk_zk.h"
#include "sdk/tera.h"
#include "tera.h"
#include "utils/counter.h"

namespace tera {
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/tera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "sdk/tera.h"
#include "tera.h"

#include <limits>

Expand Down
4 changes: 2 additions & 2 deletions src/tera_c.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "sdk/tera_c.h"
#include "tera_c.h"

#include <assert.h>
#include <stdlib.h>
Expand All @@ -13,7 +13,7 @@

#include "common/mutex.h"

#include "sdk/tera.h"
#include "tera.h"

using tera::Client;
using tera::ErrorCode;
Expand Down
2 changes: 1 addition & 1 deletion src/tera_test_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "common/mutex.h"
#include "common/timer.h"
#include "common/thread_pool.h"
#include "sdk/tera.h"
#include "tera.h"
#include "version.h"

DEFINE_string(table, "", "table name");
Expand Down
2 changes: 1 addition & 1 deletion src/teracli_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "sdk/sdk_utils.h"
#include "sdk/sdk_zk.h"
#include "sdk/table_impl.h"
#include "sdk/tera.h"
#include "tera.h"
#include "utils/crypt.h"
#include "utils/string_util.h"
#include "utils/tprinter.h"
Expand Down

0 comments on commit ddff2d0

Please sign in to comment.