Merge pull request '添加rocksdb初始化代码' (#1) from rosksdb into main

Reviewed-on: #1
This commit is contained in:
LingZhaoHui 2023-09-16 16:25:53 +00:00
commit efdf5b18a1
4 changed files with 50 additions and 0 deletions

3
.gitignore vendored
View File

@ -45,3 +45,6 @@ tags
hs_err_pid*
replay_pid*
.idea
target

33
pom.xml Normal file
View 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>

View File

@ -0,0 +1 @@
package com.zeekling.cn;

View 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);
}
}