mirror of
https://github.com/wassname/ray.git
synced 2026-07-26 13:37:24 +08:00
[Streaming] Supports multiple downstream collector (#9240)
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
/* DO NOT EDIT THIS FILE - it is machine generated */
|
||||
#include <jni.h>
|
||||
/* Header for class io_ray_streaming_runtime_transfer_ChannelID */
|
||||
|
||||
#ifndef _Included_io_ray_streaming_runtime_transfer_ChannelID
|
||||
#define _Included_io_ray_streaming_runtime_transfer_ChannelID
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#undef io_ray_streaming_runtime_transfer_ChannelID_ID_LENGTH
|
||||
#define io_ray_streaming_runtime_transfer_ChannelID_ID_LENGTH 20L
|
||||
/*
|
||||
* Class: io_ray_streaming_runtime_transfer_ChannelID
|
||||
* Method: createNativeID
|
||||
* Signature: (J)J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL Java_io_ray_streaming_runtime_transfer_ChannelID_createNativeID
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: io_ray_streaming_runtime_transfer_ChannelID
|
||||
* Method: destroyNativeID
|
||||
* Signature: (J)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_io_ray_streaming_runtime_transfer_ChannelID_destroyNativeID
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
+3
-3
@@ -1,15 +1,15 @@
|
||||
#include "io_ray_streaming_runtime_transfer_ChannelID.h"
|
||||
#include "io_ray_streaming_runtime_transfer_ChannelId.h"
|
||||
#include "streaming_jni_common.h"
|
||||
using namespace ray::streaming;
|
||||
|
||||
JNIEXPORT jlong JNICALL Java_io_ray_streaming_runtime_transfer_ChannelID_createNativeID(
|
||||
JNIEXPORT jlong JNICALL Java_io_ray_streaming_runtime_transfer_ChannelId_createNativeId(
|
||||
JNIEnv *env, jclass cls, jlong qid_address) {
|
||||
auto id = ray::ObjectID::FromBinary(
|
||||
std::string(reinterpret_cast<const char *>(qid_address), ray::ObjectID::Size()));
|
||||
return reinterpret_cast<jlong>(new ray::ObjectID(id));
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_io_ray_streaming_runtime_transfer_ChannelID_destroyNativeID(
|
||||
JNIEXPORT void JNICALL Java_io_ray_streaming_runtime_transfer_ChannelId_destroyNativeId(
|
||||
JNIEnv *env, jclass cls, jlong native_id_ptr) {
|
||||
auto id = reinterpret_cast<ray::ObjectID *>(native_id_ptr);
|
||||
STREAMING_CHECK(id != nullptr);
|
||||
@@ -0,0 +1,31 @@
|
||||
/* DO NOT EDIT THIS FILE - it is machine generated */
|
||||
#include <jni.h>
|
||||
/* Header for class io_ray_streaming_runtime_transfer_ChannelId */
|
||||
|
||||
#ifndef _Included_io_ray_streaming_runtime_transfer_ChannelId
|
||||
#define _Included_io_ray_streaming_runtime_transfer_ChannelId
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#undef io_ray_streaming_runtime_transfer_ChannelId_ID_LENGTH
|
||||
#define io_ray_streaming_runtime_transfer_ChannelId_ID_LENGTH 20L
|
||||
/*
|
||||
* Class: io_ray_streaming_runtime_transfer_ChannelId
|
||||
* Method: createNativeId
|
||||
* Signature: (J)J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL Java_io_ray_streaming_runtime_transfer_ChannelId_createNativeId
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: io_ray_streaming_runtime_transfer_ChannelId
|
||||
* Method: destroyNativeId
|
||||
* Signature: (J)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_io_ray_streaming_runtime_transfer_ChannelId_destroyNativeId
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user