Merge pull request '添加rocksdb初始化代码' (#1) from rosksdb into main
Reviewed-on: #1
This commit is contained in:
commit
efdf5b18a1
3
.gitignore
vendored
3
.gitignore
vendored
@ -45,3 +45,6 @@ tags
|
|||||||
hs_err_pid*
|
hs_err_pid*
|
||||||
replay_pid*
|
replay_pid*
|
||||||
|
|
||||||
|
.idea
|
||||||
|
target
|
||||||
|
|
||||||
|
33
pom.xml
Normal file
33
pom.xml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<groupId>com.zeekling.cn</groupId>
|
||||||
|
<artifactId>test</artifactId>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<name>test</name>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.rocksdb</groupId>
|
||||||
|
<artifactId>rocksdbjni</artifactId>
|
||||||
|
<version>6.20.3</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<version>4.13.2</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
1
src/main/java/com/zeekling/cn/package-info.java
Normal file
1
src/main/java/com/zeekling/cn/package-info.java
Normal file
@ -0,0 +1 @@
|
|||||||
|
package com.zeekling.cn;
|
13
src/main/java/com/zeekling/cn/rocksdb/RocksDbLoad.java
Normal file
13
src/main/java/com/zeekling/cn/rocksdb/RocksDbLoad.java
Normal file
@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user