From 84e9339c5aebb39306e9b3404ce465b431b90751 Mon Sep 17 00:00:00 2001 From: zeekling Date: Sun, 17 Sep 2023 00:25:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0rocksdb=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++ pom.xml | 33 +++++++++++++++++++ .../java/com/zeekling/cn/package-info.java | 1 + .../com/zeekling/cn/rocksdb/RocksDbLoad.java | 13 ++++++++ 4 files changed, 50 insertions(+) create mode 100644 pom.xml create mode 100644 src/main/java/com/zeekling/cn/package-info.java create mode 100644 src/main/java/com/zeekling/cn/rocksdb/RocksDbLoad.java diff --git a/.gitignore b/.gitignore index 0f23dea..4c2add1 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,6 @@ tags hs_err_pid* replay_pid* +.idea +target + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..b24fb09 --- /dev/null +++ b/pom.xml @@ -0,0 +1,33 @@ + + 4.0.0 + + com.zeekling.cn + test + 1.0-SNAPSHOT + jar + + test + + + UTF-8 + 1.8 + 1.8 + + + + + + org.rocksdb + rocksdbjni + 6.20.3 + + + + junit + junit + 4.13.2 + test + + + diff --git a/src/main/java/com/zeekling/cn/package-info.java b/src/main/java/com/zeekling/cn/package-info.java new file mode 100644 index 0000000..a14a81f --- /dev/null +++ b/src/main/java/com/zeekling/cn/package-info.java @@ -0,0 +1 @@ +package com.zeekling.cn; \ No newline at end of file diff --git a/src/main/java/com/zeekling/cn/rocksdb/RocksDbLoad.java b/src/main/java/com/zeekling/cn/rocksdb/RocksDbLoad.java new file mode 100644 index 0000000..a50ab62 --- /dev/null +++ b/src/main/java/com/zeekling/cn/rocksdb/RocksDbLoad.java @@ -0,0 +1,13 @@ +package com.zeekling.cn.rocksdb; + +import org.rocksdb.RocksDB; + +public class RocksDbLoad { + + public static void main(String[] args) { + RocksDB.loadLibrary(); + RocksDB.Version version = RocksDB.rocksdbVersion(); + System.out.println(version); + } + +}