Crate risingwave_jni_core

source

Modulesยง

Macrosยง

  • Cast a JValueGen to a concrete type by the given type
  • Convert the argument value list when invoking a method to a list of JValue by the argument type list in the signature
  • Pass the information of all native methods to the callback $macro. The input can be matched with pattern {$({$func_name:ident, {$($ret:tt)*}, {$($args:tt)*}})*}
  • Generate the dot separated java class name to the slash separated name.
  • Generate the jni signature of a given function
  • Generate the type signature of a single type
  • A macro that splits the input by comma and calls the callback $macro with the split result. The each part of the split result is within a bracket, and the callback $macro can have its first parameter as {$({$($args:tt)+})*} to match the split result.
  • Given the plain text of a list native methods, split the methods by semicolon (;), extract the return type, argument list and name of the methods and pass the result to the callback $macro with the extracted result as the first parameter. The result can be matched with pattern {$({$func_name:ident, {$($ret:tt)*}, {$($args:tt)*}})*}
  • Cast a JValueGen to a concrete type by the given type

Structsยง

  • In most Jni interfaces, the first parameter is JNIEnv, and the second parameter is JClass. This struct simply encapsulates the two common parameters into a single struct for simplicity.
  • RowCursor ๐Ÿ”’
  • Wrapper around &[u8] derived from jbyteArray to prevent it from being auto-released.

Enumsยง

Staticsยง

Functionsยง

Type Aliasesยง