Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GreptimeTeam/rust-java-demo
/ functions
Functions
40 in github.com/GreptimeTeam/rust-java-demo
⨍
Functions
40
◇
Types & classes
9
↓ 5 callers
Method
get
(long futureId)
core/src/main/java/io/greptime/demo/utils/AsyncRegistry.java:46
↓ 2 callers
Method
getLogger
(Class<?> clazz)
core/src/main/java/io/greptime/demo/utils/Logger.java:30
↓ 2 callers
Method
info
(String msg)
core/src/main/java/io/greptime/demo/utils/Logger.java:56
↓ 2 callers
Function
jni_env
()
core/src/main/rust/demo/src/lib.rs:70
↓ 1 callers
Function
call_state
()
core/src/main/rust/demo/src/lib.rs:64
↓ 1 callers
Function
complete_future
This future interaction between Java and Rust idea is borrow from OpenDAL, hats off to it!
core/src/main/rust/demo/src/lib.rs:168
↓ 1 callers
Method
enabled
(&self, metadata: &log::Metadata)
core/src/main/rust/demo/src/logger.rs:101
↓ 1 callers
Method
find_method
(&self, level: Level)
core/src/main/rust/demo/src/logger.rs:40
↓ 1 callers
Function
get_future
(env: &mut JNIEnv<'local>, id: jlong)
core/src/main/rust/demo/src/lib.rs:212
↓ 1 callers
Method
hello
Hello to fetch the web content of the param `url`.
core/src/main/java/io/greptime/demo/RustJavaDemo.java:62
↓ 1 callers
Function
init
(env: &mut JNIEnv)
core/src/main/rust/demo/src/method_invoker.rs:112
↓ 1 callers
Method
init_logger
(&self, env: &mut JNIEnv, name: &str)
core/src/main/rust/demo/src/logger.rs:90
↓ 1 callers
Method
invoke
( &self, env: &mut JNIEnv<'local>, args: &[jvalue], )
core/src/main/rust/demo/src/method_invoker.rs:78
↓ 1 callers
Function
java_vm
()
core/src/main/rust/demo/src/lib.rs:58
↓ 1 callers
Function
jvm
()
core/src/main/rust/demo/src/method_invoker/test.rs:23
↓ 1 callers
Method
libInit
Load the demo rust lib and init it with a size of it's runtime. Setting the `runtimeSize` to 0 will use the cpu's cores. This method can be called mul
core/src/main/java/io/greptime/demo/RustJavaDemo.java:57
↓ 1 callers
Function
make_exception
( env: &mut JNIEnv<'local>, err: &Error, )
core/src/main/rust/demo/src/lib.rs:216
↓ 1 callers
Method
nativeHello
(String url)
core/src/main/java/io/greptime/demo/RustJavaDemo.java:67
↓ 1 callers
Function
register
(env: &mut JNIEnv)
core/src/main/rust/demo/src/lib.rs:226
↓ 1 callers
Function
runtime
()
core/src/main/rust/demo/src/lib.rs:52
↓ 1 callers
Method
take
Take the [CompletableFuture] associated with the future id.
core/src/main/java/io/greptime/demo/utils/AsyncRegistry.java:53
↓ 1 callers
Function
throw_runtime_exception
(env: &mut JNIEnv, msg: String)
core/src/main/rust/demo/src/lib.rs:230
↓ 1 callers
Method
with_logger
(&self, env: &mut JNIEnv, name: &str, f: F)
core/src/main/rust/demo/src/logger.rs:75
Function
JNI_OnLoad
(vm: JavaVM, _: *mut c_void)
core/src/main/rust/demo/src/method_invoker.rs:101
Function
Java_io_greptime_demo_RustJavaDemo_libInit
( mut env: JNIEnv, _class: JClass, runtime_size: sys::jint, )
core/src/main/rust/demo/src/lib.rs:80
Function
Java_io_greptime_demo_RustJavaDemo_nativeHello
( mut env: JNIEnv<'a>, _class: JClass, url: JString<'a>, )
core/src/main/rust/demo/src/lib.rs:138
Method
Logger
(org.slf4j.Logger inner)
core/src/main/java/io/greptime/demo/utils/Logger.java:40
Method
debug
(String msg)
core/src/main/java/io/greptime/demo/utils/Logger.java:64
Method
error
(String msg)
core/src/main/java/io/greptime/demo/utils/Logger.java:44
Method
flush
(&self)
core/src/main/rust/demo/src/logger.rs:142
Function
format_msg
Format the log message as "{file}:{line} - {args}".
core/src/main/rust/demo/src/logger.rs:148
Function
hello
(env: &mut JNIEnv<'a>, url: JString<'a>)
core/src/main/rust/demo/src/lib.rs:146
Method
log
(&self, record: &log::Record)
core/src/main/rust/demo/src/logger.rs:106
Method
main
(String[] args)
example/src/main/java/RustJavaDemoExample.java:30
Method
register
()
core/src/main/java/io/greptime/demo/utils/AsyncRegistry.java:39
Function
test_static_method_invoker
()
core/src/main/rust/demo/src/method_invoker/test.rs:36
Method
trace
(String msg)
core/src/main/java/io/greptime/demo/utils/Logger.java:72
Method
try_new
(env: &mut JNIEnv)
core/src/main/rust/demo/src/logger.rs:60
Method
try_new
( env: &mut JNIEnv, class_name: &str, method_name: &str, sig: &str, re
core/src/main/rust/demo/src/method_invoker.rs:61
Method
warn
(String msg)
core/src/main/java/io/greptime/demo/utils/Logger.java:52