MCPcopy Create free account

hub / github.com/GreptimeTeam/rust-java-demo / functions

Functions40 in github.com/GreptimeTeam/rust-java-demo

↓ 5 callersMethodget
(long futureId)
core/src/main/java/io/greptime/demo/utils/AsyncRegistry.java:46
↓ 2 callersMethodgetLogger
(Class<?> clazz)
core/src/main/java/io/greptime/demo/utils/Logger.java:30
↓ 2 callersMethodinfo
(String msg)
core/src/main/java/io/greptime/demo/utils/Logger.java:56
↓ 2 callersFunctionjni_env
()
core/src/main/rust/demo/src/lib.rs:70
↓ 1 callersFunctioncall_state
()
core/src/main/rust/demo/src/lib.rs:64
↓ 1 callersFunctioncomplete_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 callersMethodenabled
(&self, metadata: &log::Metadata)
core/src/main/rust/demo/src/logger.rs:101
↓ 1 callersMethodfind_method
(&self, level: Level)
core/src/main/rust/demo/src/logger.rs:40
↓ 1 callersFunctionget_future
(env: &mut JNIEnv<'local>, id: jlong)
core/src/main/rust/demo/src/lib.rs:212
↓ 1 callersMethodhello
Hello to fetch the web content of the param `url`.
core/src/main/java/io/greptime/demo/RustJavaDemo.java:62
↓ 1 callersFunctioninit
(env: &mut JNIEnv)
core/src/main/rust/demo/src/method_invoker.rs:112
↓ 1 callersMethodinit_logger
(&self, env: &mut JNIEnv, name: &str)
core/src/main/rust/demo/src/logger.rs:90
↓ 1 callersMethodinvoke
( &self, env: &mut JNIEnv<'local>, args: &[jvalue], )
core/src/main/rust/demo/src/method_invoker.rs:78
↓ 1 callersFunctionjava_vm
()
core/src/main/rust/demo/src/lib.rs:58
↓ 1 callersFunctionjvm
()
core/src/main/rust/demo/src/method_invoker/test.rs:23
↓ 1 callersMethodlibInit
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 callersFunctionmake_exception
( env: &mut JNIEnv<'local>, err: &Error, )
core/src/main/rust/demo/src/lib.rs:216
↓ 1 callersMethodnativeHello
(String url)
core/src/main/java/io/greptime/demo/RustJavaDemo.java:67
↓ 1 callersFunctionregister
(env: &mut JNIEnv)
core/src/main/rust/demo/src/lib.rs:226
↓ 1 callersFunctionruntime
()
core/src/main/rust/demo/src/lib.rs:52
↓ 1 callersMethodtake
Take the [CompletableFuture] associated with the future id.
core/src/main/java/io/greptime/demo/utils/AsyncRegistry.java:53
↓ 1 callersFunctionthrow_runtime_exception
(env: &mut JNIEnv, msg: String)
core/src/main/rust/demo/src/lib.rs:230
↓ 1 callersMethodwith_logger
(&self, env: &mut JNIEnv, name: &str, f: F)
core/src/main/rust/demo/src/logger.rs:75
FunctionJNI_OnLoad
(vm: JavaVM, _: *mut c_void)
core/src/main/rust/demo/src/method_invoker.rs:101
FunctionJava_io_greptime_demo_RustJavaDemo_libInit
( mut env: JNIEnv, _class: JClass, runtime_size: sys::jint, )
core/src/main/rust/demo/src/lib.rs:80
FunctionJava_io_greptime_demo_RustJavaDemo_nativeHello
( mut env: JNIEnv<'a>, _class: JClass, url: JString<'a>, )
core/src/main/rust/demo/src/lib.rs:138
MethodLogger
(org.slf4j.Logger inner)
core/src/main/java/io/greptime/demo/utils/Logger.java:40
Methoddebug
(String msg)
core/src/main/java/io/greptime/demo/utils/Logger.java:64
Methoderror
(String msg)
core/src/main/java/io/greptime/demo/utils/Logger.java:44
Methodflush
(&self)
core/src/main/rust/demo/src/logger.rs:142
Functionformat_msg
Format the log message as "{file}:{line} - {args}".
core/src/main/rust/demo/src/logger.rs:148
Functionhello
(env: &mut JNIEnv<'a>, url: JString<'a>)
core/src/main/rust/demo/src/lib.rs:146
Methodlog
(&self, record: &log::Record)
core/src/main/rust/demo/src/logger.rs:106
Methodmain
(String[] args)
example/src/main/java/RustJavaDemoExample.java:30
Methodregister
()
core/src/main/java/io/greptime/demo/utils/AsyncRegistry.java:39
Functiontest_static_method_invoker
()
core/src/main/rust/demo/src/method_invoker/test.rs:36
Methodtrace
(String msg)
core/src/main/java/io/greptime/demo/utils/Logger.java:72
Methodtry_new
(env: &mut JNIEnv)
core/src/main/rust/demo/src/logger.rs:60
Methodtry_new
( env: &mut JNIEnv, class_name: &str, method_name: &str, sig: &str, re
core/src/main/rust/demo/src/method_invoker.rs:61
Methodwarn
(String msg)
core/src/main/java/io/greptime/demo/utils/Logger.java:52