Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GreptimeTeam/rust-java-demo
/ types & classes
Types & classes
9 in github.com/GreptimeTeam/rust-java-demo
⨍
Functions
40
◇
Types & classes
9
Class
AsyncRegistry
core/src/main/java/io/greptime/demo/utils/AsyncRegistry.java:32
Class
CallState
[CallState] is used to bridge the loggers between Rust and Java. It initializes and stores the Java logger objects, and finds the Java methods to call
core/src/main/rust/demo/src/logger.rs:53
Enum
Error
core/src/main/rust/demo/src/error.rs:22
Class
LogMethods
core/src/main/rust/demo/src/logger.rs:31
Class
Logger
Custom logger impl, that delegates log messages to Java loggers.
core/src/main/rust/demo/src/logger.rs:98
Class
Logger
A simple wrapper of slf4j logger, and more importantly, it's used in Rust code for logging.
core/src/main/java/io/greptime/demo/utils/Logger.java:26
Class
RustJavaDemo
The main functionality of this class is implemented in Rust. Called from Java via JNI. So it's important to load the Rust lib first. It's recommended
core/src/main/java/io/greptime/demo/RustJavaDemo.java:40
Class
RustJavaDemoExample
example/src/main/java/RustJavaDemoExample.java:18
Class
StaticMethodInvoker
A struct that holds a the static method of the Java side, to be invoked later. Why not directly use the more convenient `JNIEnv::call_static_method`?
core/src/main/rust/demo/src/method_invoker.rs:54