From 31a4d07bc4cfd2fc74ddb29c8678b02b7c3002d9 Mon Sep 17 00:00:00 2001 From: chaokunyang Date: Tue, 9 Jun 2020 11:40:43 +0800 Subject: [PATCH] [Java] Rename java ObjectRef/ActorHandle (#8799) --- .../src/main/java/io/ray/api/ActorCall.java | 492 +++--- .../api/{RayActor.java => ActorHandle.java} | 6 +- .../{BaseActor.java => BaseActorHandle.java} | 2 +- .../api/{RayObject.java => ObjectRef.java} | 4 +- .../src/main/java/io/ray/api/PyActorCall.java | 24 +- .../{RayPyActor.java => PyActorHandle.java} | 2 +- java/api/src/main/java/io/ray/api/Ray.java | 26 +- .../api/src/main/java/io/ray/api/RayCall.java | 1552 ++++++++--------- .../src/main/java/io/ray/api/WaitResult.java | 10 +- .../io/ray/api/function/PyActorClass.java | 2 +- .../io/ray/api/function/PyActorMethod.java | 4 +- .../io/ray/api/function/PyRemoteFunction.java | 4 +- .../java/io/ray/api/runtime/RayRuntime.java | 34 +- java/generate_jni_header_files.sh | 2 +- .../io/ray/runtime/AbstractRayRuntime.java | 58 +- .../java/io/ray/runtime/RayDevRuntime.java | 4 +- .../java/io/ray/runtime/RayNativeRuntime.java | 4 +- ...ayActor.java => LocalModeActorHandle.java} | 8 +- ...veRayActor.java => NativeActorHandle.java} | 21 +- ....java => NativeActorHandleSerializer.java} | 8 +- ...aActor.java => NativeJavaActorHandle.java} | 8 +- ...yPyActor.java => NativePyActorHandle.java} | 8 +- ...{RayObjectImpl.java => ObjectRefImpl.java} | 8 +- .../io/ray/runtime/object/ObjectStore.java | 12 +- .../ray/runtime/serializer/FstSerializer.java | 6 +- .../io/ray/runtime/task/ArgumentsBuilder.java | 6 +- .../runtime/task/LocalModeTaskSubmitter.java | 14 +- .../ray/runtime/task/NativeTaskSubmitter.java | 14 +- .../io/ray/runtime/task/TaskSubmitter.java | 10 +- .../util/generator/RayCallGenerator.java | 12 +- .../src/main/java/io/ray/api/TestUtils.java | 2 +- .../io/ray/api/benchmark/ActorPressTest.java | 14 +- .../io/ray/api/benchmark/MaxPressureTest.java | 6 +- .../api/benchmark/PressureTestParameter.java | 9 +- .../benchmark/RateLimiterPressureTest.java | 6 +- .../ray/api/benchmark/RayBenchmarkTest.java | 22 +- .../api/benchmark/RemoteResultWrapper.java | 12 +- .../ray/api/benchmark/SingleLatencyTest.java | 6 +- .../ray/api/test/ActorConcurrentCallTest.java | 12 +- .../io/ray/api/test/ActorRestartTest.java | 6 +- .../main/java/io/ray/api/test/ActorTest.java | 36 +- .../java/io/ray/api/test/ClassLoaderTest.java | 52 +- .../api/test/CrossLanguageInvocationTest.java | 49 +- .../io/ray/api/test/DynamicResourceTest.java | 4 +- .../java/io/ray/api/test/FailureTest.java | 18 +- .../java/io/ray/api/test/HelloWorldTest.java | 6 +- .../java/io/ray/api/test/KillActorTest.java | 18 +- .../api/test/MultiLanguageClusterTest.java | 4 +- .../io/ray/api/test/MultiThreadingTest.java | 32 +- .../java/io/ray/api/test/ObjectStoreTest.java | 8 +- .../java/io/ray/api/test/PlasmaFreeTest.java | 6 +- .../java/io/ray/api/test/RayMethodsTest.java | 14 +- .../io/ray/api/test/RaySerializerTest.java | 7 +- .../io/ray/api/test/RayletConfigTest.java | 4 +- .../io/ray/api/test/RedisPasswordTest.java | 4 +- .../ray/api/test/ResourcesManagementTest.java | 16 +- .../io/ray/api/test/RuntimeContextTest.java | 4 +- .../ray/api/test/SingleProcessModeTest.java | 20 +- .../main/java/io/ray/api/test/StressTest.java | 18 +- .../main/java/io/ray/api/test/WaitTest.java | 12 +- .../io/ray/api/test/WorkerJvmOptionsTest.java | 8 +- .../main/java/io/ray/exercise/Exercise01.java | 6 +- .../main/java/io/ray/exercise/Exercise02.java | 6 +- .../main/java/io/ray/exercise/Exercise03.java | 4 +- .../main/java/io/ray/exercise/Exercise04.java | 4 +- .../main/java/io/ray/exercise/Exercise05.java | 10 +- ...io_ray_runtime_actor_NativeActorHandle.cc} | 10 +- ... io_ray_runtime_actor_NativeActorHandle.h} | 31 +- .../core/collector/OutputCollector.java | 10 +- .../runtime/core/graph/ExecutionGraph.java | 18 +- .../runtime/core/graph/ExecutionTask.java | 10 +- .../graph/executiongraph/ExecutionGraph.java | 12 +- .../executiongraph/ExecutionJobVertex.java | 6 +- .../graph/executiongraph/ExecutionVertex.java | 8 +- .../streaming/runtime/master/JobMaster.java | 8 +- .../master/scheduler/JobSchedulerImpl.java | 6 +- .../controller/WorkerLifecycleController.java | 26 +- .../runtime/python/GraphPbBuilder.java | 4 +- .../runtime/rpc/RemoteCallWorker.java | 14 +- .../runtime/schedule/JobSchedulerImpl.java | 16 +- .../runtime/schedule/TaskAssignerImpl.java | 12 +- .../ChannelCreationParametersBuilder.java | 24 +- .../runtime/transfer/DataReader.java | 4 +- .../runtime/transfer/DataWriter.java | 4 +- .../worker/context/JobWorkerContext.java | 8 +- .../runtime/worker/tasks/StreamTask.java | 10 +- .../streamingqueue/StreamingQueueTest.java | 6 +- .../runtime/streamingqueue/Worker.java | 18 +- 88 files changed, 1551 insertions(+), 1544 deletions(-) rename java/api/src/main/java/io/ray/api/{RayActor.java => ActorHandle.java} (75%) rename java/api/src/main/java/io/ray/api/{BaseActor.java => BaseActorHandle.java} (94%) rename java/api/src/main/java/io/ray/api/{RayObject.java => ObjectRef.java} (79%) rename java/api/src/main/java/io/ray/api/{RayPyActor.java => PyActorHandle.java} (77%) rename java/runtime/src/main/java/io/ray/runtime/actor/{LocalModeRayActor.java => LocalModeActorHandle.java} (84%) rename java/runtime/src/main/java/io/ray/runtime/actor/{NativeRayActor.java => NativeActorHandle.java} (79%) rename java/runtime/src/main/java/io/ray/runtime/actor/{NativeRayActorSerializer.java => NativeActorHandleSerializer.java} (74%) rename java/runtime/src/main/java/io/ray/runtime/actor/{NativeRayJavaActor.java => NativeJavaActorHandle.java} (73%) rename java/runtime/src/main/java/io/ray/runtime/actor/{NativeRayPyActor.java => NativePyActorHandle.java} (80%) rename java/runtime/src/main/java/io/ray/runtime/object/{RayObjectImpl.java => ObjectRefImpl.java} (82%) rename src/ray/core_worker/lib/java/{io_ray_runtime_actor_NativeRayActor.cc => io_ray_runtime_actor_NativeActorHandle.cc} (86%) rename src/ray/core_worker/lib/java/{io_ray_runtime_actor_NativeRayActor.h => io_ray_runtime_actor_NativeActorHandle.h} (52%) diff --git a/java/api/src/main/java/io/ray/api/ActorCall.java b/java/api/src/main/java/io/ray/api/ActorCall.java index a2300dfd7..f8cbb5fa6 100644 --- a/java/api/src/main/java/io/ray/api/ActorCall.java +++ b/java/api/src/main/java/io/ray/api/ActorCall.java @@ -21,634 +21,634 @@ import io.ray.api.function.RayFuncVoid6; @SuppressWarnings({"rawtypes", "unchecked"}) interface ActorCall { - default RayObject call(RayFunc1 f) { + default ObjectRef call(RayFunc1 f) { Object[] args = new Object[]{}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } default void call(RayFuncVoid1 f) { Object[] args = new Object[]{}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc2 f, T0 t0) { + default ObjectRef call(RayFunc2 f, T0 t0) { Object[] args = new Object[]{t0}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc2 f, RayObject t0) { + default ObjectRef call(RayFunc2 f, ObjectRef t0) { Object[] args = new Object[]{t0}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } default void call(RayFuncVoid2 f, T0 t0) { Object[] args = new Object[]{t0}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid2 f, RayObject t0) { + default void call(RayFuncVoid2 f, ObjectRef t0) { Object[] args = new Object[]{t0}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc3 f, T0 t0, T1 t1) { + default ObjectRef call(RayFunc3 f, T0 t0, T1 t1) { Object[] args = new Object[]{t0, t1}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc3 f, T0 t0, RayObject t1) { + default ObjectRef call(RayFunc3 f, T0 t0, ObjectRef t1) { Object[] args = new Object[]{t0, t1}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc3 f, RayObject t0, T1 t1) { + default ObjectRef call(RayFunc3 f, ObjectRef t0, T1 t1) { Object[] args = new Object[]{t0, t1}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc3 f, RayObject t0, RayObject t1) { + default ObjectRef call(RayFunc3 f, ObjectRef t0, ObjectRef t1) { Object[] args = new Object[]{t0, t1}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } default void call(RayFuncVoid3 f, T0 t0, T1 t1) { Object[] args = new Object[]{t0, t1}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid3 f, T0 t0, RayObject t1) { + default void call(RayFuncVoid3 f, T0 t0, ObjectRef t1) { Object[] args = new Object[]{t0, t1}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid3 f, RayObject t0, T1 t1) { + default void call(RayFuncVoid3 f, ObjectRef t0, T1 t1) { Object[] args = new Object[]{t0, t1}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid3 f, RayObject t0, RayObject t1) { + default void call(RayFuncVoid3 f, ObjectRef t0, ObjectRef t1) { Object[] args = new Object[]{t0, t1}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc4 f, T0 t0, T1 t1, T2 t2) { + default ObjectRef call(RayFunc4 f, T0 t0, T1 t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc4 f, T0 t0, T1 t1, RayObject t2) { + default ObjectRef call(RayFunc4 f, T0 t0, T1 t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc4 f, T0 t0, RayObject t1, T2 t2) { + default ObjectRef call(RayFunc4 f, T0 t0, ObjectRef t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc4 f, T0 t0, RayObject t1, RayObject t2) { + default ObjectRef call(RayFunc4 f, T0 t0, ObjectRef t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc4 f, RayObject t0, T1 t1, T2 t2) { + default ObjectRef call(RayFunc4 f, ObjectRef t0, T1 t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc4 f, RayObject t0, T1 t1, RayObject t2) { + default ObjectRef call(RayFunc4 f, ObjectRef t0, T1 t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc4 f, RayObject t0, RayObject t1, T2 t2) { + default ObjectRef call(RayFunc4 f, ObjectRef t0, ObjectRef t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc4 f, RayObject t0, RayObject t1, RayObject t2) { + default ObjectRef call(RayFunc4 f, ObjectRef t0, ObjectRef t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } default void call(RayFuncVoid4 f, T0 t0, T1 t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid4 f, T0 t0, T1 t1, RayObject t2) { + default void call(RayFuncVoid4 f, T0 t0, T1 t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid4 f, T0 t0, RayObject t1, T2 t2) { + default void call(RayFuncVoid4 f, T0 t0, ObjectRef t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid4 f, T0 t0, RayObject t1, RayObject t2) { + default void call(RayFuncVoid4 f, T0 t0, ObjectRef t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid4 f, RayObject t0, T1 t1, T2 t2) { + default void call(RayFuncVoid4 f, ObjectRef t0, T1 t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid4 f, RayObject t0, T1 t1, RayObject t2) { + default void call(RayFuncVoid4 f, ObjectRef t0, T1 t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid4 f, RayObject t0, RayObject t1, T2 t2) { + default void call(RayFuncVoid4 f, ObjectRef t0, ObjectRef t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid4 f, RayObject t0, RayObject t1, RayObject t2) { + default void call(RayFuncVoid4 f, ObjectRef t0, ObjectRef t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3) { + default ObjectRef call(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc5 f, T0 t0, T1 t1, T2 t2, RayObject t3) { + default ObjectRef call(RayFunc5 f, T0 t0, T1 t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc5 f, T0 t0, T1 t1, RayObject t2, T3 t3) { + default ObjectRef call(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc5 f, T0 t0, T1 t1, RayObject t2, RayObject t3) { + default ObjectRef call(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc5 f, T0 t0, RayObject t1, T2 t2, T3 t3) { + default ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc5 f, T0 t0, RayObject t1, T2 t2, RayObject t3) { + default ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, T3 t3) { + default ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, RayObject t3) { + default ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc5 f, RayObject t0, T1 t1, T2 t2, T3 t3) { + default ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc5 f, RayObject t0, T1 t1, T2 t2, RayObject t3) { + default ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, T3 t3) { + default ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, RayObject t3) { + default ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, T3 t3) { + default ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, RayObject t3) { + default ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, T3 t3) { + default ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3) { + default ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } default void call(RayFuncVoid5 f, T0 t0, T1 t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid5 f, T0 t0, T1 t1, T2 t2, RayObject t3) { + default void call(RayFuncVoid5 f, T0 t0, T1 t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid5 f, T0 t0, T1 t1, RayObject t2, T3 t3) { + default void call(RayFuncVoid5 f, T0 t0, T1 t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid5 f, T0 t0, T1 t1, RayObject t2, RayObject t3) { + default void call(RayFuncVoid5 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid5 f, T0 t0, RayObject t1, T2 t2, T3 t3) { + default void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid5 f, T0 t0, RayObject t1, T2 t2, RayObject t3) { + default void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid5 f, T0 t0, RayObject t1, RayObject t2, T3 t3) { + default void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid5 f, T0 t0, RayObject t1, RayObject t2, RayObject t3) { + default void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid5 f, RayObject t0, T1 t1, T2 t2, T3 t3) { + default void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid5 f, RayObject t0, T1 t1, T2 t2, RayObject t3) { + default void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid5 f, RayObject t0, T1 t1, RayObject t2, T3 t3) { + default void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid5 f, RayObject t0, T1 t1, RayObject t2, RayObject t3) { + default void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid5 f, RayObject t0, RayObject t1, T2 t2, T3 t3) { + default void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid5 f, RayObject t0, RayObject t1, T2 t2, RayObject t3) { + default void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid5 f, RayObject t0, RayObject t1, RayObject t2, T3 t3) { + default void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid5 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3) { + default void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4) { + default ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4) { + default ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4) { + default ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4) { + default ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4) { + default ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4) { + default ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4) { + default ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4) { + default ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4) { + default ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4) { + default ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4) { + default ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4) { + default ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4) { + default ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4) { + default ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4) { + default ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4) { + default ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4) { + default ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4) { + default ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4) { + default ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4) { + default ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4) { + default ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4) { + default ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4) { + default ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4) { + default ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4) { + default ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4) { + default ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4) { + default ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4) { + default ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4) { + default ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4) { + default ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4) { + default ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } - default RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4) { + default ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - return Ray.internal().callActor((RayActor) this, f, args); + return Ray.internal().callActor((ActorHandle) this, f, args); } default void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4) { + default void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4) { + default void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4) { + default void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4) { + default void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4) { + default void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4) { + default void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4) { + default void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4) { + default void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4) { + default void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4) { + default void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4) { + default void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4) { + default void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4) { + default void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4) { + default void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4) { + default void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4) { + default void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4) { + default void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4) { + default void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4) { + default void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4) { + default void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4) { + default void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4) { + default void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4) { + default void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4) { + default void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4) { + default void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4) { + default void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4) { + default void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4) { + default void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4) { + default void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4) { + default void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } - default void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4) { + default void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; - Ray.internal().callActor((RayActor) this, f, args); + Ray.internal().callActor((ActorHandle) this, f, args); } } diff --git a/java/api/src/main/java/io/ray/api/RayActor.java b/java/api/src/main/java/io/ray/api/ActorHandle.java similarity index 75% rename from java/api/src/main/java/io/ray/api/RayActor.java rename to java/api/src/main/java/io/ray/api/ActorHandle.java index 926a6688c..0d9c499c6 100644 --- a/java/api/src/main/java/io/ray/api/RayActor.java +++ b/java/api/src/main/java/io/ray/api/ActorHandle.java @@ -12,9 +12,9 @@ package io.ray.api; * } * } * // Create an actor, and get a handle. - * RayActor myActor = Ray.createActor(MyActor::new); + * ActorHandle myActor = Ray.createActor(MyActor::new); * // Call the `echo` method remotely. - * RayObject result = myActor.call(MyActor::echo, 1); + * ObjectRef result = myActor.call(MyActor::echo, 1); * // Get the result of the remote `echo` method. * Assert.assertEqual(result.get(), 1); * } @@ -24,6 +24,6 @@ package io.ray.api; * * @param The type of the concrete actor class. */ -public interface RayActor extends BaseActor, ActorCall { +public interface ActorHandle extends BaseActorHandle, ActorCall { } diff --git a/java/api/src/main/java/io/ray/api/BaseActor.java b/java/api/src/main/java/io/ray/api/BaseActorHandle.java similarity index 94% rename from java/api/src/main/java/io/ray/api/BaseActor.java rename to java/api/src/main/java/io/ray/api/BaseActorHandle.java index 21ee19a36..3adfdbf51 100644 --- a/java/api/src/main/java/io/ray/api/BaseActor.java +++ b/java/api/src/main/java/io/ray/api/BaseActorHandle.java @@ -7,7 +7,7 @@ import io.ray.api.id.ActorId; * * A handle can be used to invoke a remote actor method. */ -public interface BaseActor { +public interface BaseActorHandle { /** * @return The id of this actor. diff --git a/java/api/src/main/java/io/ray/api/RayObject.java b/java/api/src/main/java/io/ray/api/ObjectRef.java similarity index 79% rename from java/api/src/main/java/io/ray/api/RayObject.java rename to java/api/src/main/java/io/ray/api/ObjectRef.java index 9e56f2a0e..15319bbe9 100644 --- a/java/api/src/main/java/io/ray/api/RayObject.java +++ b/java/api/src/main/java/io/ray/api/ObjectRef.java @@ -3,10 +3,10 @@ package io.ray.api; import io.ray.api.id.ObjectId; /** - * Represents an object in the object store. + * Represents a reference to an object in the object store. * @param The object type. */ -public interface RayObject { +public interface ObjectRef { /** * Fetch the object from the object store, this method will block diff --git a/java/api/src/main/java/io/ray/api/PyActorCall.java b/java/api/src/main/java/io/ray/api/PyActorCall.java index 30665f411..9d812b633 100644 --- a/java/api/src/main/java/io/ray/api/PyActorCall.java +++ b/java/api/src/main/java/io/ray/api/PyActorCall.java @@ -10,34 +10,34 @@ import io.ray.api.function.PyActorMethod; @SuppressWarnings({"rawtypes", "unchecked"}) interface PyActorCall { - default RayObject call(PyActorMethod pyActorMethod) { + default ObjectRef call(PyActorMethod pyActorMethod) { Object[] args = new Object[]{}; - return Ray.internal().callActor((RayPyActor)this, pyActorMethod, args); + return Ray.internal().callActor((PyActorHandle)this, pyActorMethod, args); } - default RayObject call(PyActorMethod pyActorMethod, Object obj0) { + default ObjectRef call(PyActorMethod pyActorMethod, Object obj0) { Object[] args = new Object[]{obj0}; - return Ray.internal().callActor((RayPyActor)this, pyActorMethod, args); + return Ray.internal().callActor((PyActorHandle)this, pyActorMethod, args); } - default RayObject call(PyActorMethod pyActorMethod, Object obj0, Object obj1) { + default ObjectRef call(PyActorMethod pyActorMethod, Object obj0, Object obj1) { Object[] args = new Object[]{obj0, obj1}; - return Ray.internal().callActor((RayPyActor)this, pyActorMethod, args); + return Ray.internal().callActor((PyActorHandle)this, pyActorMethod, args); } - default RayObject call(PyActorMethod pyActorMethod, Object obj0, Object obj1, Object obj2) { + default ObjectRef call(PyActorMethod pyActorMethod, Object obj0, Object obj1, Object obj2) { Object[] args = new Object[]{obj0, obj1, obj2}; - return Ray.internal().callActor((RayPyActor)this, pyActorMethod, args); + return Ray.internal().callActor((PyActorHandle)this, pyActorMethod, args); } - default RayObject call(PyActorMethod pyActorMethod, Object obj0, Object obj1, Object obj2, Object obj3) { + default ObjectRef call(PyActorMethod pyActorMethod, Object obj0, Object obj1, Object obj2, Object obj3) { Object[] args = new Object[]{obj0, obj1, obj2, obj3}; - return Ray.internal().callActor((RayPyActor)this, pyActorMethod, args); + return Ray.internal().callActor((PyActorHandle)this, pyActorMethod, args); } - default RayObject call(PyActorMethod pyActorMethod, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4) { + default ObjectRef call(PyActorMethod pyActorMethod, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4) { Object[] args = new Object[]{obj0, obj1, obj2, obj3, obj4}; - return Ray.internal().callActor((RayPyActor)this, pyActorMethod, args); + return Ray.internal().callActor((PyActorHandle)this, pyActorMethod, args); } } diff --git a/java/api/src/main/java/io/ray/api/RayPyActor.java b/java/api/src/main/java/io/ray/api/PyActorHandle.java similarity index 77% rename from java/api/src/main/java/io/ray/api/RayPyActor.java rename to java/api/src/main/java/io/ray/api/PyActorHandle.java index 9a9ca053b..01fb2dc4d 100644 --- a/java/api/src/main/java/io/ray/api/RayPyActor.java +++ b/java/api/src/main/java/io/ray/api/PyActorHandle.java @@ -3,7 +3,7 @@ package io.ray.api; /** * Handle of a Python actor. */ -public interface RayPyActor extends BaseActor, PyActorCall { +public interface PyActorHandle extends BaseActorHandle, PyActorCall { /** * @return Module name of the Python actor class. diff --git a/java/api/src/main/java/io/ray/api/Ray.java b/java/api/src/main/java/io/ray/api/Ray.java index 8786ead5d..c29a9420d 100644 --- a/java/api/src/main/java/io/ray/api/Ray.java +++ b/java/api/src/main/java/io/ray/api/Ray.java @@ -56,9 +56,9 @@ public final class Ray extends RayCall { * Store an object in the object store. * * @param obj The Java object to be stored. - * @return A RayObject instance that represents the in-store object. + * @return A ObjectRef instance that represents the in-store object. */ - public static RayObject put(T obj) { + public static ObjectRef put(T obj) { return runtime.put(obj); } @@ -85,15 +85,15 @@ public final class Ray extends RayCall { } /** - * Get a list of objects by RayObjects from the object store. + * Get a list of objects by `ObjectRef`s from the object store. * - * @param objectList A list of RayObject to get. + * @param objectList A list of object references. * @return A list of Java objects. */ - public static List get(List> objectList) { + public static List get(List> objectList) { List objectIds = new ArrayList<>(); Class objectType = null; - for (RayObject o : objectList) { + for (ObjectRef o : objectList) { objectIds.add(o.getId()); objectType = o.getType(); } @@ -104,13 +104,13 @@ public final class Ray extends RayCall { * Wait for a list of RayObjects to be locally available, * until specified number of objects are ready, or specified timeout has passed. * - * @param waitList A list of RayObject to wait for. + * @param waitList A list of object references to wait for. * @param numReturns The number of objects that should be returned. * @param timeoutMs The maximum time in milliseconds to wait before returning. * @return Two lists, one containing locally available objects, one containing the rest. */ - public static WaitResult wait(List> waitList, int numReturns, - int timeoutMs) { + public static WaitResult wait(List> waitList, int numReturns, + int timeoutMs) { return runtime.wait(waitList, numReturns, timeoutMs); } @@ -118,11 +118,11 @@ public final class Ray extends RayCall { * A convenient helper method for Ray.wait. It will wait infinitely until * specified number of objects are locally available. * - * @param waitList A list of RayObject to wait for. + * @param waitList A list of object references to wait for. * @param numReturns The number of objects that should be returned. * @return Two lists, one containing locally available objects, one containing the rest. */ - public static WaitResult wait(List> waitList, int numReturns) { + public static WaitResult wait(List> waitList, int numReturns) { return runtime.wait(waitList, numReturns, Integer.MAX_VALUE); } @@ -130,10 +130,10 @@ public final class Ray extends RayCall { * A convenient helper method for Ray.wait. It will wait infinitely until * all objects are locally available. * - * @param waitList A list of RayObject to wait for. + * @param waitList A list of object references to wait for. * @return Two lists, one containing locally available objects, one containing the rest. */ - public static WaitResult wait(List> waitList) { + public static WaitResult wait(List> waitList) { return runtime.wait(waitList, waitList.size(), Integer.MAX_VALUE); } diff --git a/java/api/src/main/java/io/ray/api/RayCall.java b/java/api/src/main/java/io/ray/api/RayCall.java index 674cbafda..182e55f84 100644 --- a/java/api/src/main/java/io/ray/api/RayCall.java +++ b/java/api/src/main/java/io/ray/api/RayCall.java @@ -29,12 +29,12 @@ class RayCall { // ======================================= // Methods for remote function invocation. // ======================================= - public static RayObject call(RayFunc0 f) { + public static ObjectRef call(RayFunc0 f) { Object[] args = new Object[]{}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc0 f, CallOptions options) { + public static ObjectRef call(RayFunc0 f, CallOptions options) { Object[] args = new Object[]{}; return Ray.internal().call(f, args, options); } @@ -49,22 +49,22 @@ class RayCall { Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc1 f, T0 t0) { + public static ObjectRef call(RayFunc1 f, T0 t0) { Object[] args = new Object[]{t0}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc1 f, RayObject t0) { + public static ObjectRef call(RayFunc1 f, ObjectRef t0) { Object[] args = new Object[]{t0}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc1 f, T0 t0, CallOptions options) { + public static ObjectRef call(RayFunc1 f, T0 t0, CallOptions options) { Object[] args = new Object[]{t0}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc1 f, RayObject t0, CallOptions options) { + public static ObjectRef call(RayFunc1 f, ObjectRef t0, CallOptions options) { Object[] args = new Object[]{t0}; return Ray.internal().call(f, args, options); } @@ -74,7 +74,7 @@ class RayCall { Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid1 f, RayObject t0) { + public static void call(RayFuncVoid1 f, ObjectRef t0) { Object[] args = new Object[]{t0}; Ray.internal().call(f, args, null); } @@ -84,47 +84,47 @@ class RayCall { Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid1 f, RayObject t0, CallOptions options) { + public static void call(RayFuncVoid1 f, ObjectRef t0, CallOptions options) { Object[] args = new Object[]{t0}; Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc2 f, T0 t0, T1 t1) { + public static ObjectRef call(RayFunc2 f, T0 t0, T1 t1) { Object[] args = new Object[]{t0, t1}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc2 f, T0 t0, RayObject t1) { + public static ObjectRef call(RayFunc2 f, T0 t0, ObjectRef t1) { Object[] args = new Object[]{t0, t1}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc2 f, RayObject t0, T1 t1) { + public static ObjectRef call(RayFunc2 f, ObjectRef t0, T1 t1) { Object[] args = new Object[]{t0, t1}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc2 f, RayObject t0, RayObject t1) { + public static ObjectRef call(RayFunc2 f, ObjectRef t0, ObjectRef t1) { Object[] args = new Object[]{t0, t1}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc2 f, T0 t0, T1 t1, CallOptions options) { + public static ObjectRef call(RayFunc2 f, T0 t0, T1 t1, CallOptions options) { Object[] args = new Object[]{t0, t1}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc2 f, T0 t0, RayObject t1, CallOptions options) { + public static ObjectRef call(RayFunc2 f, T0 t0, ObjectRef t1, CallOptions options) { Object[] args = new Object[]{t0, t1}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc2 f, RayObject t0, T1 t1, CallOptions options) { + public static ObjectRef call(RayFunc2 f, ObjectRef t0, T1 t1, CallOptions options) { Object[] args = new Object[]{t0, t1}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc2 f, RayObject t0, RayObject t1, CallOptions options) { + public static ObjectRef call(RayFunc2 f, ObjectRef t0, ObjectRef t1, CallOptions options) { Object[] args = new Object[]{t0, t1}; return Ray.internal().call(f, args, options); } @@ -134,17 +134,17 @@ class RayCall { Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid2 f, T0 t0, RayObject t1) { + public static void call(RayFuncVoid2 f, T0 t0, ObjectRef t1) { Object[] args = new Object[]{t0, t1}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid2 f, RayObject t0, T1 t1) { + public static void call(RayFuncVoid2 f, ObjectRef t0, T1 t1) { Object[] args = new Object[]{t0, t1}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid2 f, RayObject t0, RayObject t1) { + public static void call(RayFuncVoid2 f, ObjectRef t0, ObjectRef t1) { Object[] args = new Object[]{t0, t1}; Ray.internal().call(f, args, null); } @@ -154,97 +154,97 @@ class RayCall { Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid2 f, T0 t0, RayObject t1, CallOptions options) { + public static void call(RayFuncVoid2 f, T0 t0, ObjectRef t1, CallOptions options) { Object[] args = new Object[]{t0, t1}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid2 f, RayObject t0, T1 t1, CallOptions options) { + public static void call(RayFuncVoid2 f, ObjectRef t0, T1 t1, CallOptions options) { Object[] args = new Object[]{t0, t1}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid2 f, RayObject t0, RayObject t1, CallOptions options) { + public static void call(RayFuncVoid2 f, ObjectRef t0, ObjectRef t1, CallOptions options) { Object[] args = new Object[]{t0, t1}; Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc3 f, T0 t0, T1 t1, T2 t2) { + public static ObjectRef call(RayFunc3 f, T0 t0, T1 t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc3 f, T0 t0, T1 t1, RayObject t2) { + public static ObjectRef call(RayFunc3 f, T0 t0, T1 t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc3 f, T0 t0, RayObject t1, T2 t2) { + public static ObjectRef call(RayFunc3 f, T0 t0, ObjectRef t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc3 f, T0 t0, RayObject t1, RayObject t2) { + public static ObjectRef call(RayFunc3 f, T0 t0, ObjectRef t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc3 f, RayObject t0, T1 t1, T2 t2) { + public static ObjectRef call(RayFunc3 f, ObjectRef t0, T1 t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc3 f, RayObject t0, T1 t1, RayObject t2) { + public static ObjectRef call(RayFunc3 f, ObjectRef t0, T1 t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc3 f, RayObject t0, RayObject t1, T2 t2) { + public static ObjectRef call(RayFunc3 f, ObjectRef t0, ObjectRef t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc3 f, RayObject t0, RayObject t1, RayObject t2) { + public static ObjectRef call(RayFunc3 f, ObjectRef t0, ObjectRef t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc3 f, T0 t0, T1 t1, T2 t2, CallOptions options) { + public static ObjectRef call(RayFunc3 f, T0 t0, T1 t1, T2 t2, CallOptions options) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc3 f, T0 t0, T1 t1, RayObject t2, CallOptions options) { + public static ObjectRef call(RayFunc3 f, T0 t0, T1 t1, ObjectRef t2, CallOptions options) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc3 f, T0 t0, RayObject t1, T2 t2, CallOptions options) { + public static ObjectRef call(RayFunc3 f, T0 t0, ObjectRef t1, T2 t2, CallOptions options) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc3 f, T0 t0, RayObject t1, RayObject t2, CallOptions options) { + public static ObjectRef call(RayFunc3 f, T0 t0, ObjectRef t1, ObjectRef t2, CallOptions options) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc3 f, RayObject t0, T1 t1, T2 t2, CallOptions options) { + public static ObjectRef call(RayFunc3 f, ObjectRef t0, T1 t1, T2 t2, CallOptions options) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc3 f, RayObject t0, T1 t1, RayObject t2, CallOptions options) { + public static ObjectRef call(RayFunc3 f, ObjectRef t0, T1 t1, ObjectRef t2, CallOptions options) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc3 f, RayObject t0, RayObject t1, T2 t2, CallOptions options) { + public static ObjectRef call(RayFunc3 f, ObjectRef t0, ObjectRef t1, T2 t2, CallOptions options) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc3 f, RayObject t0, RayObject t1, RayObject t2, CallOptions options) { + public static ObjectRef call(RayFunc3 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, CallOptions options) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().call(f, args, options); } @@ -254,37 +254,37 @@ class RayCall { Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid3 f, T0 t0, T1 t1, RayObject t2) { + public static void call(RayFuncVoid3 f, T0 t0, T1 t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid3 f, T0 t0, RayObject t1, T2 t2) { + public static void call(RayFuncVoid3 f, T0 t0, ObjectRef t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid3 f, T0 t0, RayObject t1, RayObject t2) { + public static void call(RayFuncVoid3 f, T0 t0, ObjectRef t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid3 f, RayObject t0, T1 t1, T2 t2) { + public static void call(RayFuncVoid3 f, ObjectRef t0, T1 t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid3 f, RayObject t0, T1 t1, RayObject t2) { + public static void call(RayFuncVoid3 f, ObjectRef t0, T1 t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid3 f, RayObject t0, RayObject t1, T2 t2) { + public static void call(RayFuncVoid3 f, ObjectRef t0, ObjectRef t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid3 f, RayObject t0, RayObject t1, RayObject t2) { + public static void call(RayFuncVoid3 f, ObjectRef t0, ObjectRef t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; Ray.internal().call(f, args, null); } @@ -294,197 +294,197 @@ class RayCall { Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid3 f, T0 t0, T1 t1, RayObject t2, CallOptions options) { + public static void call(RayFuncVoid3 f, T0 t0, T1 t1, ObjectRef t2, CallOptions options) { Object[] args = new Object[]{t0, t1, t2}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid3 f, T0 t0, RayObject t1, T2 t2, CallOptions options) { + public static void call(RayFuncVoid3 f, T0 t0, ObjectRef t1, T2 t2, CallOptions options) { Object[] args = new Object[]{t0, t1, t2}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid3 f, T0 t0, RayObject t1, RayObject t2, CallOptions options) { + public static void call(RayFuncVoid3 f, T0 t0, ObjectRef t1, ObjectRef t2, CallOptions options) { Object[] args = new Object[]{t0, t1, t2}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid3 f, RayObject t0, T1 t1, T2 t2, CallOptions options) { + public static void call(RayFuncVoid3 f, ObjectRef t0, T1 t1, T2 t2, CallOptions options) { Object[] args = new Object[]{t0, t1, t2}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid3 f, RayObject t0, T1 t1, RayObject t2, CallOptions options) { + public static void call(RayFuncVoid3 f, ObjectRef t0, T1 t1, ObjectRef t2, CallOptions options) { Object[] args = new Object[]{t0, t1, t2}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid3 f, RayObject t0, RayObject t1, T2 t2, CallOptions options) { + public static void call(RayFuncVoid3 f, ObjectRef t0, ObjectRef t1, T2 t2, CallOptions options) { Object[] args = new Object[]{t0, t1, t2}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid3 f, RayObject t0, RayObject t1, RayObject t2, CallOptions options) { + public static void call(RayFuncVoid3 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, CallOptions options) { Object[] args = new Object[]{t0, t1, t2}; Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc4 f, T0 t0, T1 t1, T2 t2, T3 t3) { + public static ObjectRef call(RayFunc4 f, T0 t0, T1 t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc4 f, T0 t0, T1 t1, T2 t2, RayObject t3) { + public static ObjectRef call(RayFunc4 f, T0 t0, T1 t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc4 f, T0 t0, T1 t1, RayObject t2, T3 t3) { + public static ObjectRef call(RayFunc4 f, T0 t0, T1 t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc4 f, T0 t0, T1 t1, RayObject t2, RayObject t3) { + public static ObjectRef call(RayFunc4 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc4 f, T0 t0, RayObject t1, T2 t2, T3 t3) { + public static ObjectRef call(RayFunc4 f, T0 t0, ObjectRef t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc4 f, T0 t0, RayObject t1, T2 t2, RayObject t3) { + public static ObjectRef call(RayFunc4 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc4 f, T0 t0, RayObject t1, RayObject t2, T3 t3) { + public static ObjectRef call(RayFunc4 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc4 f, T0 t0, RayObject t1, RayObject t2, RayObject t3) { + public static ObjectRef call(RayFunc4 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc4 f, RayObject t0, T1 t1, T2 t2, T3 t3) { + public static ObjectRef call(RayFunc4 f, ObjectRef t0, T1 t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc4 f, RayObject t0, T1 t1, T2 t2, RayObject t3) { + public static ObjectRef call(RayFunc4 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc4 f, RayObject t0, T1 t1, RayObject t2, T3 t3) { + public static ObjectRef call(RayFunc4 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc4 f, RayObject t0, T1 t1, RayObject t2, RayObject t3) { + public static ObjectRef call(RayFunc4 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc4 f, RayObject t0, RayObject t1, T2 t2, T3 t3) { + public static ObjectRef call(RayFunc4 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc4 f, RayObject t0, RayObject t1, T2 t2, RayObject t3) { + public static ObjectRef call(RayFunc4 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc4 f, RayObject t0, RayObject t1, RayObject t2, T3 t3) { + public static ObjectRef call(RayFunc4 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc4 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3) { + public static ObjectRef call(RayFunc4 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc4 f, T0 t0, T1 t1, T2 t2, T3 t3, CallOptions options) { + public static ObjectRef call(RayFunc4 f, T0 t0, T1 t1, T2 t2, T3 t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc4 f, T0 t0, T1 t1, T2 t2, RayObject t3, CallOptions options) { + public static ObjectRef call(RayFunc4 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc4 f, T0 t0, T1 t1, RayObject t2, T3 t3, CallOptions options) { + public static ObjectRef call(RayFunc4 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc4 f, T0 t0, T1 t1, RayObject t2, RayObject t3, CallOptions options) { + public static ObjectRef call(RayFunc4 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc4 f, T0 t0, RayObject t1, T2 t2, T3 t3, CallOptions options) { + public static ObjectRef call(RayFunc4 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc4 f, T0 t0, RayObject t1, T2 t2, RayObject t3, CallOptions options) { + public static ObjectRef call(RayFunc4 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc4 f, T0 t0, RayObject t1, RayObject t2, T3 t3, CallOptions options) { + public static ObjectRef call(RayFunc4 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc4 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, CallOptions options) { + public static ObjectRef call(RayFunc4 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc4 f, RayObject t0, T1 t1, T2 t2, T3 t3, CallOptions options) { + public static ObjectRef call(RayFunc4 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc4 f, RayObject t0, T1 t1, T2 t2, RayObject t3, CallOptions options) { + public static ObjectRef call(RayFunc4 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc4 f, RayObject t0, T1 t1, RayObject t2, T3 t3, CallOptions options) { + public static ObjectRef call(RayFunc4 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc4 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, CallOptions options) { + public static ObjectRef call(RayFunc4 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc4 f, RayObject t0, RayObject t1, T2 t2, T3 t3, CallOptions options) { + public static ObjectRef call(RayFunc4 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc4 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, CallOptions options) { + public static ObjectRef call(RayFunc4 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc4 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, CallOptions options) { + public static ObjectRef call(RayFunc4 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc4 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, CallOptions options) { + public static ObjectRef call(RayFunc4 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().call(f, args, options); } @@ -494,77 +494,77 @@ class RayCall { Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid4 f, T0 t0, T1 t1, T2 t2, RayObject t3) { + public static void call(RayFuncVoid4 f, T0 t0, T1 t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid4 f, T0 t0, T1 t1, RayObject t2, T3 t3) { + public static void call(RayFuncVoid4 f, T0 t0, T1 t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid4 f, T0 t0, T1 t1, RayObject t2, RayObject t3) { + public static void call(RayFuncVoid4 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid4 f, T0 t0, RayObject t1, T2 t2, T3 t3) { + public static void call(RayFuncVoid4 f, T0 t0, ObjectRef t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid4 f, T0 t0, RayObject t1, T2 t2, RayObject t3) { + public static void call(RayFuncVoid4 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid4 f, T0 t0, RayObject t1, RayObject t2, T3 t3) { + public static void call(RayFuncVoid4 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid4 f, T0 t0, RayObject t1, RayObject t2, RayObject t3) { + public static void call(RayFuncVoid4 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid4 f, RayObject t0, T1 t1, T2 t2, T3 t3) { + public static void call(RayFuncVoid4 f, ObjectRef t0, T1 t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid4 f, RayObject t0, T1 t1, T2 t2, RayObject t3) { + public static void call(RayFuncVoid4 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid4 f, RayObject t0, T1 t1, RayObject t2, T3 t3) { + public static void call(RayFuncVoid4 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid4 f, RayObject t0, T1 t1, RayObject t2, RayObject t3) { + public static void call(RayFuncVoid4 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid4 f, RayObject t0, RayObject t1, T2 t2, T3 t3) { + public static void call(RayFuncVoid4 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid4 f, RayObject t0, RayObject t1, T2 t2, RayObject t3) { + public static void call(RayFuncVoid4 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid4 f, RayObject t0, RayObject t1, RayObject t2, T3 t3) { + public static void call(RayFuncVoid4 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid4 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3) { + public static void call(RayFuncVoid4 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, null); } @@ -574,397 +574,397 @@ class RayCall { Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid4 f, T0 t0, T1 t1, T2 t2, RayObject t3, CallOptions options) { + public static void call(RayFuncVoid4 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid4 f, T0 t0, T1 t1, RayObject t2, T3 t3, CallOptions options) { + public static void call(RayFuncVoid4 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid4 f, T0 t0, T1 t1, RayObject t2, RayObject t3, CallOptions options) { + public static void call(RayFuncVoid4 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid4 f, T0 t0, RayObject t1, T2 t2, T3 t3, CallOptions options) { + public static void call(RayFuncVoid4 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid4 f, T0 t0, RayObject t1, T2 t2, RayObject t3, CallOptions options) { + public static void call(RayFuncVoid4 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid4 f, T0 t0, RayObject t1, RayObject t2, T3 t3, CallOptions options) { + public static void call(RayFuncVoid4 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid4 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, CallOptions options) { + public static void call(RayFuncVoid4 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid4 f, RayObject t0, T1 t1, T2 t2, T3 t3, CallOptions options) { + public static void call(RayFuncVoid4 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid4 f, RayObject t0, T1 t1, T2 t2, RayObject t3, CallOptions options) { + public static void call(RayFuncVoid4 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid4 f, RayObject t0, T1 t1, RayObject t2, T3 t3, CallOptions options) { + public static void call(RayFuncVoid4 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid4 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, CallOptions options) { + public static void call(RayFuncVoid4 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid4 f, RayObject t0, RayObject t1, T2 t2, T3 t3, CallOptions options) { + public static void call(RayFuncVoid4 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid4 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, CallOptions options) { + public static void call(RayFuncVoid4 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid4 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, CallOptions options) { + public static void call(RayFuncVoid4 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid4 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, CallOptions options) { + public static void call(RayFuncVoid4 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4) { + public static ObjectRef call(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4) { + public static ObjectRef call(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4) { + public static ObjectRef call(RayFunc5 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4) { + public static ObjectRef call(RayFunc5 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4) { + public static ObjectRef call(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4) { + public static ObjectRef call(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4) { + public static ObjectRef call(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4) { + public static ObjectRef call(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4) { + public static ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4) { + public static ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4) { + public static ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4) { + public static ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4) { + public static ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4) { + public static ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4) { + public static ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4) { + public static ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, CallOptions options) { + public static ObjectRef call(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().call(f, args, options); } @@ -974,157 +974,157 @@ class RayCall { Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4) { + public static void call(RayFuncVoid5 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4) { + public static void call(RayFuncVoid5 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4) { + public static void call(RayFuncVoid5 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4) { + public static void call(RayFuncVoid5 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4) { + public static void call(RayFuncVoid5 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4) { + public static void call(RayFuncVoid5 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4) { + public static void call(RayFuncVoid5 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4) { + public static void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4) { + public static void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4) { + public static void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4) { + public static void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4) { + public static void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4) { + public static void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4) { + public static void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4) { + public static void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4) { + public static void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4) { + public static void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4) { + public static void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4) { + public static void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4) { + public static void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4) { + public static void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4) { + public static void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4) { + public static void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4) { + public static void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4) { + public static void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4) { + public static void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4) { + public static void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4) { + public static void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4) { + public static void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4) { + public static void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid5 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4) { + public static void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, null); } @@ -1134,797 +1134,797 @@ class RayCall { Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4, CallOptions options) { + public static void call(RayFuncVoid5 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4, CallOptions options) { + public static void call(RayFuncVoid5 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4, CallOptions options) { + public static void call(RayFuncVoid5 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4, CallOptions options) { + public static void call(RayFuncVoid5 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4, CallOptions options) { + public static void call(RayFuncVoid5 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4, CallOptions options) { + public static void call(RayFuncVoid5 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, CallOptions options) { + public static void call(RayFuncVoid5 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4, CallOptions options) { + public static void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4, CallOptions options) { + public static void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4, CallOptions options) { + public static void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, CallOptions options) { + public static void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4, CallOptions options) { + public static void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, CallOptions options) { + public static void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, CallOptions options) { + public static void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, CallOptions options) { + public static void call(RayFuncVoid5 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4, CallOptions options) { + public static void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4, CallOptions options) { + public static void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4, CallOptions options) { + public static void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4, CallOptions options) { + public static void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4, CallOptions options) { + public static void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4, CallOptions options) { + public static void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4, CallOptions options) { + public static void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, CallOptions options) { + public static void call(RayFuncVoid5 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4, CallOptions options) { + public static void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4, CallOptions options) { + public static void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4, CallOptions options) { + public static void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, CallOptions options) { + public static void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4, CallOptions options) { + public static void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, CallOptions options) { + public static void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, CallOptions options) { + public static void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid5 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, CallOptions options) { + public static void call(RayFuncVoid5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, T5 t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, null); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, T5 t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } - public static RayObject call(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5, CallOptions options) { + public static ObjectRef call(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().call(f, args, options); } @@ -1934,317 +1934,317 @@ class RayCall { Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, RayObject t5) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4, T5 t5) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4, RayObject t5) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4, T5 t5) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4, RayObject t5) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4, T5 t5) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4, RayObject t5) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4, T5 t5) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4, RayObject t5) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4, T5 t5) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4, RayObject t5) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4, T5 t5) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4, RayObject t5) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, T5 t5) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4, T5 t5) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4, RayObject t5) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4, T5 t5) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4, RayObject t5) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4, T5 t5) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4, RayObject t5) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, T5 t5) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, RayObject t5) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4, T5 t5) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4, RayObject t5) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, T5 t5) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, RayObject t5) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, T5 t5) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, RayObject t5) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, T5 t5) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4, RayObject t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4, T5 t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4, RayObject t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4, T5 t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4, RayObject t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4, T5 t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4, RayObject t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4, T5 t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4, RayObject t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4, T5 t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4, RayObject t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4, T5 t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4, RayObject t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, T5 t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4, T5 t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4, RayObject t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4, T5 t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4, RayObject t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4, T5 t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4, RayObject t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, T5 t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, RayObject t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4, T5 t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4, RayObject t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, T5 t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, RayObject t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, T5 t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, RayObject t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, T5 t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, null); } @@ -2254,317 +2254,317 @@ class RayCall { Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, T5 t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } - public static void call(RayFuncVoid6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5, CallOptions options) { + public static void call(RayFuncVoid6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, CallOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; Ray.internal().call(f, args, options); } @@ -2572,1272 +2572,1272 @@ class RayCall { // =========================== // Methods for actor creation. // =========================== - public static RayActor createActor(RayFunc0 f) { + public static ActorHandle createActor(RayFunc0 f) { Object[] args = new Object[]{}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc0 f, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc0 f, ActorCreationOptions options) { Object[] args = new Object[]{}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc1 f, T0 t0) { + public static ActorHandle createActor(RayFunc1 f, T0 t0) { Object[] args = new Object[]{t0}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc1 f, RayObject t0) { + public static ActorHandle createActor(RayFunc1 f, ObjectRef t0) { Object[] args = new Object[]{t0}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc1 f, T0 t0, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc1 f, T0 t0, ActorCreationOptions options) { Object[] args = new Object[]{t0}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc1 f, RayObject t0, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc1 f, ObjectRef t0, ActorCreationOptions options) { Object[] args = new Object[]{t0}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc2 f, T0 t0, T1 t1) { + public static ActorHandle createActor(RayFunc2 f, T0 t0, T1 t1) { Object[] args = new Object[]{t0, t1}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc2 f, T0 t0, RayObject t1) { + public static ActorHandle createActor(RayFunc2 f, T0 t0, ObjectRef t1) { Object[] args = new Object[]{t0, t1}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc2 f, RayObject t0, T1 t1) { + public static ActorHandle createActor(RayFunc2 f, ObjectRef t0, T1 t1) { Object[] args = new Object[]{t0, t1}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc2 f, RayObject t0, RayObject t1) { + public static ActorHandle createActor(RayFunc2 f, ObjectRef t0, ObjectRef t1) { Object[] args = new Object[]{t0, t1}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc2 f, T0 t0, T1 t1, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc2 f, T0 t0, T1 t1, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc2 f, T0 t0, RayObject t1, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc2 f, T0 t0, ObjectRef t1, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc2 f, RayObject t0, T1 t1, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc2 f, ObjectRef t0, T1 t1, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc2 f, RayObject t0, RayObject t1, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc2 f, ObjectRef t0, ObjectRef t1, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc3 f, T0 t0, T1 t1, T2 t2) { + public static ActorHandle createActor(RayFunc3 f, T0 t0, T1 t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc3 f, T0 t0, T1 t1, RayObject t2) { + public static ActorHandle createActor(RayFunc3 f, T0 t0, T1 t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc3 f, T0 t0, RayObject t1, T2 t2) { + public static ActorHandle createActor(RayFunc3 f, T0 t0, ObjectRef t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc3 f, T0 t0, RayObject t1, RayObject t2) { + public static ActorHandle createActor(RayFunc3 f, T0 t0, ObjectRef t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc3 f, RayObject t0, T1 t1, T2 t2) { + public static ActorHandle createActor(RayFunc3 f, ObjectRef t0, T1 t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc3 f, RayObject t0, T1 t1, RayObject t2) { + public static ActorHandle createActor(RayFunc3 f, ObjectRef t0, T1 t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc3 f, RayObject t0, RayObject t1, T2 t2) { + public static ActorHandle createActor(RayFunc3 f, ObjectRef t0, ObjectRef t1, T2 t2) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc3 f, RayObject t0, RayObject t1, RayObject t2) { + public static ActorHandle createActor(RayFunc3 f, ObjectRef t0, ObjectRef t1, ObjectRef t2) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc3 f, T0 t0, T1 t1, T2 t2, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc3 f, T0 t0, T1 t1, T2 t2, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc3 f, T0 t0, T1 t1, RayObject t2, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc3 f, T0 t0, T1 t1, ObjectRef t2, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc3 f, T0 t0, RayObject t1, T2 t2, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc3 f, T0 t0, ObjectRef t1, T2 t2, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc3 f, T0 t0, RayObject t1, RayObject t2, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc3 f, T0 t0, ObjectRef t1, ObjectRef t2, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc3 f, RayObject t0, T1 t1, T2 t2, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc3 f, ObjectRef t0, T1 t1, T2 t2, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc3 f, RayObject t0, T1 t1, RayObject t2, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc3 f, ObjectRef t0, T1 t1, ObjectRef t2, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc3 f, RayObject t0, RayObject t1, T2 t2, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc3 f, ObjectRef t0, ObjectRef t1, T2 t2, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc3 f, RayObject t0, RayObject t1, RayObject t2, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc3 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc4 f, T0 t0, T1 t1, T2 t2, T3 t3) { + public static ActorHandle createActor(RayFunc4 f, T0 t0, T1 t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc4 f, T0 t0, T1 t1, T2 t2, RayObject t3) { + public static ActorHandle createActor(RayFunc4 f, T0 t0, T1 t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc4 f, T0 t0, T1 t1, RayObject t2, T3 t3) { + public static ActorHandle createActor(RayFunc4 f, T0 t0, T1 t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc4 f, T0 t0, T1 t1, RayObject t2, RayObject t3) { + public static ActorHandle createActor(RayFunc4 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc4 f, T0 t0, RayObject t1, T2 t2, T3 t3) { + public static ActorHandle createActor(RayFunc4 f, T0 t0, ObjectRef t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc4 f, T0 t0, RayObject t1, T2 t2, RayObject t3) { + public static ActorHandle createActor(RayFunc4 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc4 f, T0 t0, RayObject t1, RayObject t2, T3 t3) { + public static ActorHandle createActor(RayFunc4 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc4 f, T0 t0, RayObject t1, RayObject t2, RayObject t3) { + public static ActorHandle createActor(RayFunc4 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc4 f, RayObject t0, T1 t1, T2 t2, T3 t3) { + public static ActorHandle createActor(RayFunc4 f, ObjectRef t0, T1 t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc4 f, RayObject t0, T1 t1, T2 t2, RayObject t3) { + public static ActorHandle createActor(RayFunc4 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc4 f, RayObject t0, T1 t1, RayObject t2, T3 t3) { + public static ActorHandle createActor(RayFunc4 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc4 f, RayObject t0, T1 t1, RayObject t2, RayObject t3) { + public static ActorHandle createActor(RayFunc4 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc4 f, RayObject t0, RayObject t1, T2 t2, T3 t3) { + public static ActorHandle createActor(RayFunc4 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc4 f, RayObject t0, RayObject t1, T2 t2, RayObject t3) { + public static ActorHandle createActor(RayFunc4 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc4 f, RayObject t0, RayObject t1, RayObject t2, T3 t3) { + public static ActorHandle createActor(RayFunc4 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc4 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3) { + public static ActorHandle createActor(RayFunc4 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc4 f, T0 t0, T1 t1, T2 t2, T3 t3, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc4 f, T0 t0, T1 t1, T2 t2, T3 t3, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc4 f, T0 t0, T1 t1, T2 t2, RayObject t3, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc4 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc4 f, T0 t0, T1 t1, RayObject t2, T3 t3, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc4 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc4 f, T0 t0, T1 t1, RayObject t2, RayObject t3, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc4 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc4 f, T0 t0, RayObject t1, T2 t2, T3 t3, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc4 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc4 f, T0 t0, RayObject t1, T2 t2, RayObject t3, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc4 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc4 f, T0 t0, RayObject t1, RayObject t2, T3 t3, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc4 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc4 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc4 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc4 f, RayObject t0, T1 t1, T2 t2, T3 t3, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc4 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc4 f, RayObject t0, T1 t1, T2 t2, RayObject t3, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc4 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc4 f, RayObject t0, T1 t1, RayObject t2, T3 t3, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc4 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc4 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc4 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc4 f, RayObject t0, RayObject t1, T2 t2, T3 t3, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc4 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc4 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc4 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc4 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc4 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc4 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc4 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc5 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc5 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, T5 t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, null); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, RayObject t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, T4 t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, RayObject t3, RayObject t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, T4 t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, RayObject t2, T3 t3, RayObject t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, T4 t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, T4 t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, T2 t2, T3 t3, RayObject t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, T4 t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, T4 t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, T0 t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, T0 t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, T4 t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, T4 t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, T2 t2, T3 t3, RayObject t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, T4 t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, T2 t2, RayObject t3, RayObject t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, T4 t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, T3 t3, RayObject t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, T4 t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, T1 t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, T1 t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, T4 t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, T4 t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, T3 t3, RayObject t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, T3 t3, ObjectRef t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, T4 t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, T4 t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, T2 t2, RayObject t3, RayObject t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, T2 t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, T4 t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, T4 t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, T3 t3, RayObject t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, T3 t3, ObjectRef t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, T4 t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, T4 t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, T5 t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, T5 t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } - public static RayActor createActor(RayFunc6 f, RayObject t0, RayObject t1, RayObject t2, RayObject t3, RayObject t4, RayObject t5, ActorCreationOptions options) { + public static ActorHandle createActor(RayFunc6 f, ObjectRef t0, ObjectRef t1, ObjectRef t2, ObjectRef t3, ObjectRef t4, ObjectRef t5, ActorCreationOptions options) { Object[] args = new Object[]{t0, t1, t2, t3, t4, t5}; return Ray.internal().createActor(f, args, options); } @@ -3845,142 +3845,142 @@ class RayCall { // =========================== // Cross-language methods. // =========================== - public static RayObject call(PyRemoteFunction pyRemoteFunction) { + public static ObjectRef call(PyRemoteFunction pyRemoteFunction) { Object[] args = new Object[]{}; return Ray.internal().call(pyRemoteFunction, args, null); } - public static RayObject call(PyRemoteFunction pyRemoteFunction, CallOptions options) { + public static ObjectRef call(PyRemoteFunction pyRemoteFunction, CallOptions options) { Object[] args = new Object[]{}; return Ray.internal().call(pyRemoteFunction, args, options); } - public static RayObject call(PyRemoteFunction pyRemoteFunction, Object obj0) { + public static ObjectRef call(PyRemoteFunction pyRemoteFunction, Object obj0) { Object[] args = new Object[]{obj0}; return Ray.internal().call(pyRemoteFunction, args, null); } - public static RayObject call(PyRemoteFunction pyRemoteFunction, Object obj0, CallOptions options) { + public static ObjectRef call(PyRemoteFunction pyRemoteFunction, Object obj0, CallOptions options) { Object[] args = new Object[]{obj0}; return Ray.internal().call(pyRemoteFunction, args, options); } - public static RayObject call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1) { + public static ObjectRef call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1) { Object[] args = new Object[]{obj0, obj1}; return Ray.internal().call(pyRemoteFunction, args, null); } - public static RayObject call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, CallOptions options) { + public static ObjectRef call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, CallOptions options) { Object[] args = new Object[]{obj0, obj1}; return Ray.internal().call(pyRemoteFunction, args, options); } - public static RayObject call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, Object obj2) { + public static ObjectRef call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, Object obj2) { Object[] args = new Object[]{obj0, obj1, obj2}; return Ray.internal().call(pyRemoteFunction, args, null); } - public static RayObject call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, Object obj2, CallOptions options) { + public static ObjectRef call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, Object obj2, CallOptions options) { Object[] args = new Object[]{obj0, obj1, obj2}; return Ray.internal().call(pyRemoteFunction, args, options); } - public static RayObject call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, Object obj2, Object obj3) { + public static ObjectRef call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, Object obj2, Object obj3) { Object[] args = new Object[]{obj0, obj1, obj2, obj3}; return Ray.internal().call(pyRemoteFunction, args, null); } - public static RayObject call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, Object obj2, Object obj3, CallOptions options) { + public static ObjectRef call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, Object obj2, Object obj3, CallOptions options) { Object[] args = new Object[]{obj0, obj1, obj2, obj3}; return Ray.internal().call(pyRemoteFunction, args, options); } - public static RayObject call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4) { + public static ObjectRef call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4) { Object[] args = new Object[]{obj0, obj1, obj2, obj3, obj4}; return Ray.internal().call(pyRemoteFunction, args, null); } - public static RayObject call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4, CallOptions options) { + public static ObjectRef call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4, CallOptions options) { Object[] args = new Object[]{obj0, obj1, obj2, obj3, obj4}; return Ray.internal().call(pyRemoteFunction, args, options); } - public static RayObject call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5) { + public static ObjectRef call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5) { Object[] args = new Object[]{obj0, obj1, obj2, obj3, obj4, obj5}; return Ray.internal().call(pyRemoteFunction, args, null); } - public static RayObject call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, CallOptions options) { + public static ObjectRef call(PyRemoteFunction pyRemoteFunction, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, CallOptions options) { Object[] args = new Object[]{obj0, obj1, obj2, obj3, obj4, obj5}; return Ray.internal().call(pyRemoteFunction, args, options); } - public static RayPyActor createActor(PyActorClass pyActorClass) { + public static PyActorHandle createActor(PyActorClass pyActorClass) { Object[] args = new Object[]{}; return Ray.internal().createActor(pyActorClass, args, null); } - public static RayPyActor createActor(PyActorClass pyActorClass, ActorCreationOptions options) { + public static PyActorHandle createActor(PyActorClass pyActorClass, ActorCreationOptions options) { Object[] args = new Object[]{}; return Ray.internal().createActor(pyActorClass, args, options); } - public static RayPyActor createActor(PyActorClass pyActorClass, Object obj0) { + public static PyActorHandle createActor(PyActorClass pyActorClass, Object obj0) { Object[] args = new Object[]{obj0}; return Ray.internal().createActor(pyActorClass, args, null); } - public static RayPyActor createActor(PyActorClass pyActorClass, Object obj0, ActorCreationOptions options) { + public static PyActorHandle createActor(PyActorClass pyActorClass, Object obj0, ActorCreationOptions options) { Object[] args = new Object[]{obj0}; return Ray.internal().createActor(pyActorClass, args, options); } - public static RayPyActor createActor(PyActorClass pyActorClass, Object obj0, Object obj1) { + public static PyActorHandle createActor(PyActorClass pyActorClass, Object obj0, Object obj1) { Object[] args = new Object[]{obj0, obj1}; return Ray.internal().createActor(pyActorClass, args, null); } - public static RayPyActor createActor(PyActorClass pyActorClass, Object obj0, Object obj1, ActorCreationOptions options) { + public static PyActorHandle createActor(PyActorClass pyActorClass, Object obj0, Object obj1, ActorCreationOptions options) { Object[] args = new Object[]{obj0, obj1}; return Ray.internal().createActor(pyActorClass, args, options); } - public static RayPyActor createActor(PyActorClass pyActorClass, Object obj0, Object obj1, Object obj2) { + public static PyActorHandle createActor(PyActorClass pyActorClass, Object obj0, Object obj1, Object obj2) { Object[] args = new Object[]{obj0, obj1, obj2}; return Ray.internal().createActor(pyActorClass, args, null); } - public static RayPyActor createActor(PyActorClass pyActorClass, Object obj0, Object obj1, Object obj2, ActorCreationOptions options) { + public static PyActorHandle createActor(PyActorClass pyActorClass, Object obj0, Object obj1, Object obj2, ActorCreationOptions options) { Object[] args = new Object[]{obj0, obj1, obj2}; return Ray.internal().createActor(pyActorClass, args, options); } - public static RayPyActor createActor(PyActorClass pyActorClass, Object obj0, Object obj1, Object obj2, Object obj3) { + public static PyActorHandle createActor(PyActorClass pyActorClass, Object obj0, Object obj1, Object obj2, Object obj3) { Object[] args = new Object[]{obj0, obj1, obj2, obj3}; return Ray.internal().createActor(pyActorClass, args, null); } - public static RayPyActor createActor(PyActorClass pyActorClass, Object obj0, Object obj1, Object obj2, Object obj3, ActorCreationOptions options) { + public static PyActorHandle createActor(PyActorClass pyActorClass, Object obj0, Object obj1, Object obj2, Object obj3, ActorCreationOptions options) { Object[] args = new Object[]{obj0, obj1, obj2, obj3}; return Ray.internal().createActor(pyActorClass, args, options); } - public static RayPyActor createActor(PyActorClass pyActorClass, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4) { + public static PyActorHandle createActor(PyActorClass pyActorClass, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4) { Object[] args = new Object[]{obj0, obj1, obj2, obj3, obj4}; return Ray.internal().createActor(pyActorClass, args, null); } - public static RayPyActor createActor(PyActorClass pyActorClass, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4, ActorCreationOptions options) { + public static PyActorHandle createActor(PyActorClass pyActorClass, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4, ActorCreationOptions options) { Object[] args = new Object[]{obj0, obj1, obj2, obj3, obj4}; return Ray.internal().createActor(pyActorClass, args, options); } - public static RayPyActor createActor(PyActorClass pyActorClass, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5) { + public static PyActorHandle createActor(PyActorClass pyActorClass, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5) { Object[] args = new Object[]{obj0, obj1, obj2, obj3, obj4, obj5}; return Ray.internal().createActor(pyActorClass, args, null); } - public static RayPyActor createActor(PyActorClass pyActorClass, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, ActorCreationOptions options) { + public static PyActorHandle createActor(PyActorClass pyActorClass, Object obj0, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, ActorCreationOptions options) { Object[] args = new Object[]{obj0, obj1, obj2, obj3, obj4, obj5}; return Ray.internal().createActor(pyActorClass, args, options); } diff --git a/java/api/src/main/java/io/ray/api/WaitResult.java b/java/api/src/main/java/io/ray/api/WaitResult.java index ada235a0f..c6d2e6f67 100644 --- a/java/api/src/main/java/io/ray/api/WaitResult.java +++ b/java/api/src/main/java/io/ray/api/WaitResult.java @@ -8,10 +8,10 @@ import java.util.List; */ public final class WaitResult { - private final List> ready; - private final List> unready; + private final List> ready; + private final List> unready; - public WaitResult(List> ready, List> unready) { + public WaitResult(List> ready, List> unready) { this.ready = ready; this.unready = unready; } @@ -19,14 +19,14 @@ public final class WaitResult { /** * Get the list of ready objects. */ - public List> getReady() { + public List> getReady() { return ready; } /** * Get the list of unready objects. */ - public List> getUnready() { + public List> getUnready() { return unready; } diff --git a/java/api/src/main/java/io/ray/api/function/PyActorClass.java b/java/api/src/main/java/io/ray/api/function/PyActorClass.java index 43982e21c..0c8f7ebc3 100644 --- a/java/api/src/main/java/io/ray/api/function/PyActorClass.java +++ b/java/api/src/main/java/io/ray/api/function/PyActorClass.java @@ -18,7 +18,7 @@ package io.ray.api.function; * we can create this Python actor from Java: * * {@code - * RayPyActor actor = Ray.createActor(new PyActorClass("example_package.example_module", "A"), + * PyActorHandle actor = Ray.createActor(new PyActorClass("example_package.example_module", "A"), * "the value for x"); * } * diff --git a/java/api/src/main/java/io/ray/api/function/PyActorMethod.java b/java/api/src/main/java/io/ray/api/function/PyActorMethod.java index ad5f33b66..12c02105d 100644 --- a/java/api/src/main/java/io/ray/api/function/PyActorMethod.java +++ b/java/api/src/main/java/io/ray/api/function/PyActorMethod.java @@ -17,14 +17,14 @@ package io.ray.api.function; * suppose we have got the Python actor class A's handle in Java * * {@code - * RayPyActor actor = ...; // returned from Ray.createActor or passed from Python + * PyActorHandle actor = ...; // returned from Ray.createActor or passed from Python * } * * then we can call the actor method: * * {@code * // A.foo returns a string, so we have to set the returnType to String.class - * RayObject res = actor.call(new PyActorMethod<>("foo", String.class)); + * ObjectRef res = actor.call(new PyActorMethod<>("foo", String.class)); * String x = res.get(); * } * diff --git a/java/api/src/main/java/io/ray/api/function/PyRemoteFunction.java b/java/api/src/main/java/io/ray/api/function/PyRemoteFunction.java index 5fa2a62b7..304e64891 100644 --- a/java/api/src/main/java/io/ray/api/function/PyRemoteFunction.java +++ b/java/api/src/main/java/io/ray/api/function/PyRemoteFunction.java @@ -18,13 +18,13 @@ package io.ray.api.function; * * {@code * // bar returns input, so we have to set the returnType to int.class if bar accepts an int - * RayObject res = actor.call( + * ObjectRef res = actor.call( * new PyRemoteFunction<>("example_package.example_module", "bar", Integer.class), * 1); * Integer value = res.get(); * * // bar returns input, so we have to set the returnType to String.class if bar accepts a string - * RayObject res = actor.call( + * ObjectRef res = actor.call( * new PyRemoteFunction<>("example_package.example_module", "bar", String.class), * "Hello world!"); * String value = res.get(); diff --git a/java/api/src/main/java/io/ray/api/runtime/RayRuntime.java b/java/api/src/main/java/io/ray/api/runtime/RayRuntime.java index bb2e971f5..fe72e08a6 100644 --- a/java/api/src/main/java/io/ray/api/runtime/RayRuntime.java +++ b/java/api/src/main/java/io/ray/api/runtime/RayRuntime.java @@ -1,9 +1,9 @@ package io.ray.api.runtime; -import io.ray.api.BaseActor; -import io.ray.api.RayActor; -import io.ray.api.RayObject; -import io.ray.api.RayPyActor; +import io.ray.api.ActorHandle; +import io.ray.api.BaseActorHandle; +import io.ray.api.ObjectRef; +import io.ray.api.PyActorHandle; import io.ray.api.WaitResult; import io.ray.api.function.PyActorClass; import io.ray.api.function.PyActorMethod; @@ -31,9 +31,9 @@ public interface RayRuntime { * Store an object in the object store. * * @param obj The Java object to be stored. - * @return A RayObject instance that represents the in-store object. + * @return A ObjectRef instance that represents the in-store object. */ - RayObject put(T obj); + ObjectRef put(T obj); /** * Get an object from the object store. @@ -57,12 +57,12 @@ public interface RayRuntime { * Wait for a list of RayObjects to be locally available, until specified number of objects are * ready, or specified timeout has passed. * - * @param waitList A list of RayObject to wait for. + * @param waitList A list of ObjectRef to wait for. * @param numReturns The number of objects that should be returned. * @param timeoutMs The maximum time in milliseconds to wait before returning. * @return Two lists, one containing locally available objects, one containing the rest. */ - WaitResult wait(List> waitList, int numReturns, int timeoutMs); + WaitResult wait(List> waitList, int numReturns, int timeoutMs); /** * Free a list of objects from Plasma Store. @@ -88,7 +88,7 @@ public interface RayRuntime { * @param actor The actor to be killed. * @param noRestart If set to true, the killed actor will not be restarted anymore. */ - void killActor(BaseActor actor, boolean noRestart); + void killActor(BaseActorHandle actor, boolean noRestart); /** * Invoke a remote function. @@ -98,7 +98,7 @@ public interface RayRuntime { * @param options The options for this call. * @return The result object. */ - RayObject call(RayFunc func, Object[] args, CallOptions options); + ObjectRef call(RayFunc func, Object[] args, CallOptions options); /** * Invoke a remote Python function. @@ -108,7 +108,7 @@ public interface RayRuntime { * @param options The options for this call. * @return The result object. */ - RayObject call(PyRemoteFunction pyRemoteFunction, Object[] args, CallOptions options); + ObjectRef call(PyRemoteFunction pyRemoteFunction, Object[] args, CallOptions options); /** * Invoke a remote function on an actor. @@ -118,7 +118,7 @@ public interface RayRuntime { * @param args The arguments of the remote function. * @return The result object. */ - RayObject callActor(RayActor actor, RayFunc func, Object[] args); + ObjectRef callActor(ActorHandle actor, RayFunc func, Object[] args); /** * Invoke a remote Python function on an actor. @@ -128,7 +128,7 @@ public interface RayRuntime { * @param args Arguments of the function. * @return The result object. */ - RayObject callActor(RayPyActor pyActor, PyActorMethod pyActorMethod, Object[] args); + ObjectRef callActor(PyActorHandle pyActor, PyActorMethod pyActorMethod, Object[] args); /** * Create an actor on a remote node. @@ -139,8 +139,8 @@ public interface RayRuntime { * @param options The options for creating actor. * @return A handle to the actor. */ - RayActor createActor(RayFunc actorFactoryFunc, Object[] args, - ActorCreationOptions options); + ActorHandle createActor(RayFunc actorFactoryFunc, Object[] args, + ActorCreationOptions options); /** * Create a Python actor on a remote node. @@ -150,8 +150,8 @@ public interface RayRuntime { * @param options The options for creating actor. * @return A handle to the actor. */ - RayPyActor createActor(PyActorClass pyActorClass, Object[] args, - ActorCreationOptions options); + PyActorHandle createActor(PyActorClass pyActorClass, Object[] args, + ActorCreationOptions options); RuntimeContext getRuntimeContext(); diff --git a/java/generate_jni_header_files.sh b/java/generate_jni_header_files.sh index 55bca4bce..c5470ce4f 100755 --- a/java/generate_jni_header_files.sh +++ b/java/generate_jni_header_files.sh @@ -36,7 +36,7 @@ EOF generate_one io.ray.runtime.RayNativeRuntime generate_one io.ray.runtime.task.NativeTaskSubmitter generate_one io.ray.runtime.context.NativeWorkerContext -generate_one io.ray.runtime.actor.NativeRayActor +generate_one io.ray.runtime.actor.NativeActorHandle generate_one io.ray.runtime.object.NativeObjectStore generate_one io.ray.runtime.task.NativeTaskExecutor generate_one io.ray.runtime.gcs.GlobalStateAccessor diff --git a/java/runtime/src/main/java/io/ray/runtime/AbstractRayRuntime.java b/java/runtime/src/main/java/io/ray/runtime/AbstractRayRuntime.java index 9bb1948e7..97ac7e347 100644 --- a/java/runtime/src/main/java/io/ray/runtime/AbstractRayRuntime.java +++ b/java/runtime/src/main/java/io/ray/runtime/AbstractRayRuntime.java @@ -3,10 +3,10 @@ package io.ray.runtime; import com.google.common.base.Preconditions; import com.google.common.base.Strings; import com.google.common.collect.ImmutableList; -import io.ray.api.BaseActor; -import io.ray.api.RayActor; -import io.ray.api.RayObject; -import io.ray.api.RayPyActor; +import io.ray.api.ActorHandle; +import io.ray.api.BaseActorHandle; +import io.ray.api.ObjectRef; +import io.ray.api.PyActorHandle; import io.ray.api.WaitResult; import io.ray.api.exception.RayException; import io.ray.api.function.PyActorClass; @@ -27,8 +27,8 @@ import io.ray.runtime.functionmanager.RayFunction; import io.ray.runtime.gcs.GcsClient; import io.ray.runtime.generated.Common; import io.ray.runtime.generated.Common.Language; +import io.ray.runtime.object.ObjectRefImpl; import io.ray.runtime.object.ObjectStore; -import io.ray.runtime.object.RayObjectImpl; import io.ray.runtime.task.ArgumentsBuilder; import io.ray.runtime.task.FunctionArg; import io.ray.runtime.task.TaskExecutor; @@ -72,9 +72,9 @@ public abstract class AbstractRayRuntime implements RayRuntimeInternal { public abstract void shutdown(); @Override - public RayObject put(T obj) { + public ObjectRef put(T obj) { ObjectId objectId = objectStore.put(obj); - return new RayObjectImpl(objectId, (Class)(obj == null ? Object.class : obj.getClass())); + return new ObjectRefImpl(objectId, (Class)(obj == null ? Object.class : obj.getClass())); } @Override @@ -94,12 +94,12 @@ public abstract class AbstractRayRuntime implements RayRuntimeInternal { } @Override - public WaitResult wait(List> waitList, int numReturns, int timeoutMs) { + public WaitResult wait(List> waitList, int numReturns, int timeoutMs) { return objectStore.wait(waitList, numReturns, timeoutMs); } @Override - public RayObject call(RayFunc func, Object[] args, CallOptions options) { + public ObjectRef call(RayFunc func, Object[] args, CallOptions options) { RayFunction rayFunction = functionManager.getFunction(workerContext.getCurrentJobId(), func); FunctionDescriptor functionDescriptor = rayFunction.functionDescriptor; Optional> returnType = rayFunction.getReturnType(); @@ -107,8 +107,8 @@ public abstract class AbstractRayRuntime implements RayRuntimeInternal { } @Override - public RayObject call(PyRemoteFunction pyRemoteFunction, Object[] args, - CallOptions options) { + public ObjectRef call(PyRemoteFunction pyRemoteFunction, Object[] args, + CallOptions options) { PyFunctionDescriptor functionDescriptor = new PyFunctionDescriptor( pyRemoteFunction.moduleName, "", @@ -119,7 +119,7 @@ public abstract class AbstractRayRuntime implements RayRuntimeInternal { } @Override - public RayObject callActor(RayActor actor, RayFunc func, Object[] args) { + public ObjectRef callActor(ActorHandle actor, RayFunc func, Object[] args) { RayFunction rayFunction = functionManager.getFunction(workerContext.getCurrentJobId(), func); FunctionDescriptor functionDescriptor = rayFunction.functionDescriptor; Optional> returnType = rayFunction.getReturnType(); @@ -127,7 +127,7 @@ public abstract class AbstractRayRuntime implements RayRuntimeInternal { } @Override - public RayObject callActor(RayPyActor pyActor, PyActorMethod pyActorMethod, Object... args) { + public ObjectRef callActor(PyActorHandle pyActor, PyActorMethod pyActorMethod, Object... args) { PyFunctionDescriptor functionDescriptor = new PyFunctionDescriptor(pyActor.getModuleName(), pyActor.getClassName(), pyActorMethod.methodName); // Python functions always have a return value, even if it's `None`. @@ -137,22 +137,22 @@ public abstract class AbstractRayRuntime implements RayRuntimeInternal { @Override @SuppressWarnings("unchecked") - public RayActor createActor(RayFunc actorFactoryFunc, - Object[] args, ActorCreationOptions options) { + public ActorHandle createActor(RayFunc actorFactoryFunc, + Object[] args, ActorCreationOptions options) { FunctionDescriptor functionDescriptor = functionManager.getFunction(workerContext.getCurrentJobId(), actorFactoryFunc) .functionDescriptor; - return (RayActor) createActorImpl(functionDescriptor, args, options); + return (ActorHandle) createActorImpl(functionDescriptor, args, options); } @Override - public RayPyActor createActor(PyActorClass pyActorClass, Object[] args, - ActorCreationOptions options) { + public PyActorHandle createActor(PyActorClass pyActorClass, Object[] args, + ActorCreationOptions options) { PyFunctionDescriptor functionDescriptor = new PyFunctionDescriptor( pyActorClass.moduleName, pyActorClass.className, PYTHON_INIT_METHOD_NAME); - return (RayPyActor) createActorImpl(functionDescriptor, args, options); + return (PyActorHandle) createActorImpl(functionDescriptor, args, options); } @@ -207,7 +207,8 @@ public abstract class AbstractRayRuntime implements RayRuntimeInternal { }; } - private RayObject callNormalFunction(FunctionDescriptor functionDescriptor, + private ObjectRef callNormalFunction( + FunctionDescriptor functionDescriptor, Object[] args, Optional> returnType, CallOptions options) { int numReturns = returnType.isPresent() ? 1 : 0; List functionArgs = ArgumentsBuilder @@ -218,12 +219,15 @@ public abstract class AbstractRayRuntime implements RayRuntimeInternal { if (returnIds.isEmpty()) { return null; } else { - return new RayObjectImpl(returnIds.get(0), returnType.get()); + return new ObjectRefImpl(returnIds.get(0), returnType.get()); } } - private RayObject callActorFunction(BaseActor rayActor, - FunctionDescriptor functionDescriptor, Object[] args, Optional> returnType) { + private ObjectRef callActorFunction( + BaseActorHandle rayActor, + FunctionDescriptor functionDescriptor, + Object[] args, + Optional> returnType) { int numReturns = returnType.isPresent() ? 1 : 0; List functionArgs = ArgumentsBuilder .wrap(args, functionDescriptor.getLanguage()); @@ -233,18 +237,18 @@ public abstract class AbstractRayRuntime implements RayRuntimeInternal { if (returnIds.isEmpty()) { return null; } else { - return new RayObjectImpl(returnIds.get(0), returnType.get()); + return new ObjectRefImpl(returnIds.get(0), returnType.get()); } } - private BaseActor createActorImpl(FunctionDescriptor functionDescriptor, - Object[] args, ActorCreationOptions options) { + private BaseActorHandle createActorImpl(FunctionDescriptor functionDescriptor, + Object[] args, ActorCreationOptions options) { List functionArgs = ArgumentsBuilder .wrap(args, functionDescriptor.getLanguage()); if (functionDescriptor.getLanguage() != Language.JAVA && options != null) { Preconditions.checkState(Strings.isNullOrEmpty(options.jvmOptions)); } - BaseActor actor = taskSubmitter.createActor(functionDescriptor, functionArgs, options); + BaseActorHandle actor = taskSubmitter.createActor(functionDescriptor, functionArgs, options); return actor; } diff --git a/java/runtime/src/main/java/io/ray/runtime/RayDevRuntime.java b/java/runtime/src/main/java/io/ray/runtime/RayDevRuntime.java index 2ea82f351..ed9bb4f51 100644 --- a/java/runtime/src/main/java/io/ray/runtime/RayDevRuntime.java +++ b/java/runtime/src/main/java/io/ray/runtime/RayDevRuntime.java @@ -1,7 +1,7 @@ package io.ray.runtime; import com.google.common.base.Preconditions; -import io.ray.api.BaseActor; +import io.ray.api.BaseActorHandle; import io.ray.api.id.JobId; import io.ray.api.id.UniqueId; import io.ray.runtime.config.RayConfig; @@ -62,7 +62,7 @@ public class RayDevRuntime extends AbstractRayRuntime { } @Override - public void killActor(BaseActor actor, boolean noRestart) { + public void killActor(BaseActorHandle actor, boolean noRestart) { throw new UnsupportedOperationException(); } diff --git a/java/runtime/src/main/java/io/ray/runtime/RayNativeRuntime.java b/java/runtime/src/main/java/io/ray/runtime/RayNativeRuntime.java index 393cc6fea..d56e8d031 100644 --- a/java/runtime/src/main/java/io/ray/runtime/RayNativeRuntime.java +++ b/java/runtime/src/main/java/io/ray/runtime/RayNativeRuntime.java @@ -1,7 +1,7 @@ package io.ray.runtime; import com.google.common.base.Preconditions; -import io.ray.api.BaseActor; +import io.ray.api.BaseActorHandle; import io.ray.api.id.JobId; import io.ray.api.id.UniqueId; import io.ray.runtime.config.RayConfig; @@ -132,7 +132,7 @@ public final class RayNativeRuntime extends AbstractRayRuntime { } @Override - public void killActor(BaseActor actor, boolean noRestart) { + public void killActor(BaseActorHandle actor, boolean noRestart) { nativeKillActor(actor.getId().getBytes(), noRestart); } diff --git a/java/runtime/src/main/java/io/ray/runtime/actor/LocalModeRayActor.java b/java/runtime/src/main/java/io/ray/runtime/actor/LocalModeActorHandle.java similarity index 84% rename from java/runtime/src/main/java/io/ray/runtime/actor/LocalModeRayActor.java rename to java/runtime/src/main/java/io/ray/runtime/actor/LocalModeActorHandle.java index b2cd41d1a..c880f330b 100644 --- a/java/runtime/src/main/java/io/ray/runtime/actor/LocalModeRayActor.java +++ b/java/runtime/src/main/java/io/ray/runtime/actor/LocalModeActorHandle.java @@ -1,6 +1,6 @@ package io.ray.runtime.actor; -import io.ray.api.RayActor; +import io.ray.api.ActorHandle; import io.ray.api.id.ActorId; import io.ray.api.id.ObjectId; import java.io.Externalizable; @@ -12,13 +12,13 @@ import java.util.concurrent.atomic.AtomicReference; /** * Implementation of actor handle for local mode. */ -public class LocalModeRayActor implements RayActor, Externalizable { +public class LocalModeActorHandle implements ActorHandle, Externalizable { private ActorId actorId; private AtomicReference previousActorTaskDummyObjectId = new AtomicReference<>(); - public LocalModeRayActor(ActorId actorId, ObjectId previousActorTaskDummyObjectId) { + public LocalModeActorHandle(ActorId actorId, ObjectId previousActorTaskDummyObjectId) { this.actorId = actorId; this.previousActorTaskDummyObjectId.set(previousActorTaskDummyObjectId); } @@ -26,7 +26,7 @@ public class LocalModeRayActor implements RayActor, Externalizable { /** * Required by FST */ - public LocalModeRayActor() { + public LocalModeActorHandle() { } @Override diff --git a/java/runtime/src/main/java/io/ray/runtime/actor/NativeRayActor.java b/java/runtime/src/main/java/io/ray/runtime/actor/NativeActorHandle.java similarity index 79% rename from java/runtime/src/main/java/io/ray/runtime/actor/NativeRayActor.java rename to java/runtime/src/main/java/io/ray/runtime/actor/NativeActorHandle.java index f1097d109..f8010e99c 100644 --- a/java/runtime/src/main/java/io/ray/runtime/actor/NativeRayActor.java +++ b/java/runtime/src/main/java/io/ray/runtime/actor/NativeActorHandle.java @@ -1,7 +1,7 @@ package io.ray.runtime.actor; import com.google.common.base.Preconditions; -import io.ray.api.BaseActor; +import io.ray.api.BaseActorHandle; import io.ray.api.id.ActorId; import io.ray.runtime.generated.Common.Language; import java.io.Externalizable; @@ -14,7 +14,7 @@ import java.util.List; * Abstract and language-independent implementation of actor handle for cluster mode. This is a * wrapper class for C++ ActorHandle. */ -public abstract class NativeRayActor implements BaseActor, Externalizable { +public abstract class NativeActorHandle implements BaseActorHandle, Externalizable { /** * ID of the actor. @@ -23,7 +23,7 @@ public abstract class NativeRayActor implements BaseActor, Externalizable { private Language language; - NativeRayActor(byte[] actorId, Language language) { + NativeActorHandle(byte[] actorId, Language language) { Preconditions.checkState(!ActorId.fromBytes(actorId).isNil()); this.actorId = actorId; this.language = language; @@ -32,15 +32,15 @@ public abstract class NativeRayActor implements BaseActor, Externalizable { /** * Required by FST */ - NativeRayActor() { + NativeActorHandle() { } - public static NativeRayActor create(byte[] actorId, Language language) { + public static NativeActorHandle create(byte[] actorId, Language language) { switch (language) { case JAVA: - return new NativeRayJavaActor(actorId); + return new NativeJavaActorHandle(actorId); case PYTHON: - return new NativeRayPyActor(actorId); + return new NativePyActorHandle(actorId); default: throw new IllegalStateException("Unknown actor handle language: " + language); } @@ -81,17 +81,14 @@ public abstract class NativeRayActor implements BaseActor, Externalizable { * * @return the bytes of an actor handle */ - public static NativeRayActor fromBytes(byte[] bytes) { + public static NativeActorHandle fromBytes(byte[] bytes) { byte[] actorId = nativeDeserialize(bytes); Language language = Language.forNumber(nativeGetLanguage(actorId)); Preconditions.checkNotNull(language); return create(actorId, language); } - @Override - protected void finalize() { - // TODO(zhijunfu): do we need to free the ActorHandle in core worker? - } + // TODO(chaokunyang) do we need to free the ActorHandle in core worker by using phantom reference? private static native int nativeGetLanguage(byte[] actorId); diff --git a/java/runtime/src/main/java/io/ray/runtime/actor/NativeRayActorSerializer.java b/java/runtime/src/main/java/io/ray/runtime/actor/NativeActorHandleSerializer.java similarity index 74% rename from java/runtime/src/main/java/io/ray/runtime/actor/NativeRayActorSerializer.java rename to java/runtime/src/main/java/io/ray/runtime/actor/NativeActorHandleSerializer.java index 187a827af..3e2723705 100644 --- a/java/runtime/src/main/java/io/ray/runtime/actor/NativeRayActorSerializer.java +++ b/java/runtime/src/main/java/io/ray/runtime/actor/NativeActorHandleSerializer.java @@ -8,20 +8,20 @@ import org.nustaq.serialization.FSTObjectInput; import org.nustaq.serialization.FSTObjectOutput; /** - * To deal with serialization about {@link NativeRayActor}. + * To deal with serialization about {@link NativeActorHandle}. */ -public class NativeRayActorSerializer extends FSTBasicObjectSerializer { +public class NativeActorHandleSerializer extends FSTBasicObjectSerializer { @Override public void writeObject(FSTObjectOutput out, Object toWrite, FSTClazzInfo clzInfo, FSTClazzInfo.FSTFieldInfo referencedBy, int streamPosition) throws IOException { - ((NativeRayActor) toWrite).writeExternal(out); + ((NativeActorHandle) toWrite).writeExternal(out); } @Override public void readObject(FSTObjectInput in, Object toRead, FSTClazzInfo clzInfo, FSTFieldInfo referencedBy) throws Exception { super.readObject(in, toRead, clzInfo, referencedBy); - ((NativeRayActor) toRead).readExternal(in); + ((NativeActorHandle) toRead).readExternal(in); } } diff --git a/java/runtime/src/main/java/io/ray/runtime/actor/NativeRayJavaActor.java b/java/runtime/src/main/java/io/ray/runtime/actor/NativeJavaActorHandle.java similarity index 73% rename from java/runtime/src/main/java/io/ray/runtime/actor/NativeRayJavaActor.java rename to java/runtime/src/main/java/io/ray/runtime/actor/NativeJavaActorHandle.java index 50f4aa4c2..8feca0f76 100644 --- a/java/runtime/src/main/java/io/ray/runtime/actor/NativeRayJavaActor.java +++ b/java/runtime/src/main/java/io/ray/runtime/actor/NativeJavaActorHandle.java @@ -1,7 +1,7 @@ package io.ray.runtime.actor; import com.google.common.base.Preconditions; -import io.ray.api.RayActor; +import io.ray.api.ActorHandle; import io.ray.runtime.generated.Common.Language; import java.io.IOException; import java.io.ObjectInput; @@ -9,16 +9,16 @@ import java.io.ObjectInput; /** * Java implementation of actor handle for cluster mode. */ -public class NativeRayJavaActor extends NativeRayActor implements RayActor { +public class NativeJavaActorHandle extends NativeActorHandle implements ActorHandle { - NativeRayJavaActor(byte[] actorId) { + NativeJavaActorHandle(byte[] actorId) { super(actorId, Language.JAVA); } /** * Required by FST */ - public NativeRayJavaActor() { + public NativeJavaActorHandle() { super(); } diff --git a/java/runtime/src/main/java/io/ray/runtime/actor/NativeRayPyActor.java b/java/runtime/src/main/java/io/ray/runtime/actor/NativePyActorHandle.java similarity index 80% rename from java/runtime/src/main/java/io/ray/runtime/actor/NativeRayPyActor.java rename to java/runtime/src/main/java/io/ray/runtime/actor/NativePyActorHandle.java index fa522e266..e863cf689 100644 --- a/java/runtime/src/main/java/io/ray/runtime/actor/NativeRayPyActor.java +++ b/java/runtime/src/main/java/io/ray/runtime/actor/NativePyActorHandle.java @@ -1,7 +1,7 @@ package io.ray.runtime.actor; import com.google.common.base.Preconditions; -import io.ray.api.RayPyActor; +import io.ray.api.PyActorHandle; import io.ray.runtime.generated.Common.Language; import java.io.IOException; import java.io.ObjectInput; @@ -9,16 +9,16 @@ import java.io.ObjectInput; /** * Python actor handle implementation for cluster mode. */ -public class NativeRayPyActor extends NativeRayActor implements RayPyActor { +public class NativePyActorHandle extends NativeActorHandle implements PyActorHandle { - NativeRayPyActor(byte[] actorId) { + NativePyActorHandle(byte[] actorId) { super(actorId, Language.PYTHON); } /** * Required by FST */ - public NativeRayPyActor() { + public NativePyActorHandle() { super(); } diff --git a/java/runtime/src/main/java/io/ray/runtime/object/RayObjectImpl.java b/java/runtime/src/main/java/io/ray/runtime/object/ObjectRefImpl.java similarity index 82% rename from java/runtime/src/main/java/io/ray/runtime/object/RayObjectImpl.java rename to java/runtime/src/main/java/io/ray/runtime/object/ObjectRefImpl.java index b6fe7aa8e..e5aed36b0 100644 --- a/java/runtime/src/main/java/io/ray/runtime/object/RayObjectImpl.java +++ b/java/runtime/src/main/java/io/ray/runtime/object/ObjectRefImpl.java @@ -1,14 +1,14 @@ package io.ray.runtime.object; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayObject; import io.ray.api.id.ObjectId; import java.io.Serializable; /** - * Implementation of {@link RayObject}. + * Implementation of {@link ObjectRef}. */ -public final class RayObjectImpl implements RayObject, Serializable { +public final class ObjectRefImpl implements ObjectRef, Serializable { private final ObjectId id; @@ -27,7 +27,7 @@ public final class RayObjectImpl implements RayObject, Serializable { */ private transient boolean objectGotten; - public RayObjectImpl(ObjectId id, Class type) { + public ObjectRefImpl(ObjectId id, Class type) { this.id = id; this.type = type; object = null; diff --git a/java/runtime/src/main/java/io/ray/runtime/object/ObjectStore.java b/java/runtime/src/main/java/io/ray/runtime/object/ObjectStore.java index e186b6926..d0c64783c 100644 --- a/java/runtime/src/main/java/io/ray/runtime/object/ObjectStore.java +++ b/java/runtime/src/main/java/io/ray/runtime/object/ObjectStore.java @@ -1,7 +1,7 @@ package io.ray.runtime.object; import com.google.common.base.Preconditions; -import io.ray.api.RayObject; +import io.ray.api.ObjectRef; import io.ray.api.WaitResult; import io.ray.api.exception.RayException; import io.ray.api.id.ObjectId; @@ -126,22 +126,22 @@ public abstract class ObjectStore { * Wait for a list of RayObjects to be locally available, until specified number of objects are * ready, or specified timeout has passed. * - * @param waitList A list of RayObject to wait for. + * @param waitList A list of object references to wait for. * @param numReturns The number of objects that should be returned. * @param timeoutMs The maximum time in milliseconds to wait before returning. * @return Two lists, one containing locally available objects, one containing the rest. */ - public WaitResult wait(List> waitList, int numReturns, int timeoutMs) { + public WaitResult wait(List> waitList, int numReturns, int timeoutMs) { Preconditions.checkNotNull(waitList); if (waitList.isEmpty()) { return new WaitResult<>(Collections.emptyList(), Collections.emptyList()); } - List ids = waitList.stream().map(RayObject::getId).collect(Collectors.toList()); + List ids = waitList.stream().map(ObjectRef::getId).collect(Collectors.toList()); List ready = wait(ids, numReturns, timeoutMs); - List> readyList = new ArrayList<>(); - List> unreadyList = new ArrayList<>(); + List> readyList = new ArrayList<>(); + List> unreadyList = new ArrayList<>(); for (int i = 0; i < ready.size(); i++) { if (ready.get(i)) { diff --git a/java/runtime/src/main/java/io/ray/runtime/serializer/FstSerializer.java b/java/runtime/src/main/java/io/ray/runtime/serializer/FstSerializer.java index 3acd620bb..b19b25367 100644 --- a/java/runtime/src/main/java/io/ray/runtime/serializer/FstSerializer.java +++ b/java/runtime/src/main/java/io/ray/runtime/serializer/FstSerializer.java @@ -1,7 +1,7 @@ package io.ray.runtime.serializer; -import io.ray.runtime.actor.NativeRayActor; -import io.ray.runtime.actor.NativeRayActorSerializer; +import io.ray.runtime.actor.NativeActorHandle; +import io.ray.runtime.actor.NativeActorHandleSerializer; import org.nustaq.serialization.FSTConfiguration; /** @@ -11,7 +11,7 @@ public class FstSerializer { private static final ThreadLocal conf = ThreadLocal.withInitial(() -> { FSTConfiguration conf = FSTConfiguration.createDefaultConfiguration(); - conf.registerSerializer(NativeRayActor.class, new NativeRayActorSerializer(), true); + conf.registerSerializer(NativeActorHandle.class, new NativeActorHandleSerializer(), true); return conf; }); diff --git a/java/runtime/src/main/java/io/ray/runtime/task/ArgumentsBuilder.java b/java/runtime/src/main/java/io/ray/runtime/task/ArgumentsBuilder.java index 91dfecd41..dfc28a021 100644 --- a/java/runtime/src/main/java/io/ray/runtime/task/ArgumentsBuilder.java +++ b/java/runtime/src/main/java/io/ray/runtime/task/ArgumentsBuilder.java @@ -1,7 +1,7 @@ package io.ray.runtime.task; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayObject; import io.ray.api.id.ObjectId; import io.ray.runtime.RayRuntimeInternal; import io.ray.runtime.generated.Common.Language; @@ -36,8 +36,8 @@ public class ArgumentsBuilder { for (Object arg : args) { ObjectId id = null; NativeRayObject value = null; - if (arg instanceof RayObject) { - id = ((RayObject) arg).getId(); + if (arg instanceof ObjectRef) { + id = ((ObjectRef) arg).getId(); } else { value = ObjectSerializer.serialize(arg); if (language != Language.JAVA) { diff --git a/java/runtime/src/main/java/io/ray/runtime/task/LocalModeTaskSubmitter.java b/java/runtime/src/main/java/io/ray/runtime/task/LocalModeTaskSubmitter.java index e1970ecca..1ca957cc4 100644 --- a/java/runtime/src/main/java/io/ray/runtime/task/LocalModeTaskSubmitter.java +++ b/java/runtime/src/main/java/io/ray/runtime/task/LocalModeTaskSubmitter.java @@ -3,7 +3,7 @@ package io.ray.runtime.task; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; import com.google.protobuf.ByteString; -import io.ray.api.BaseActor; +import io.ray.api.BaseActorHandle; import io.ray.api.id.ActorId; import io.ray.api.id.ObjectId; import io.ray.api.id.TaskId; @@ -11,7 +11,7 @@ import io.ray.api.id.UniqueId; import io.ray.api.options.ActorCreationOptions; import io.ray.api.options.CallOptions; import io.ray.runtime.RayRuntimeInternal; -import io.ray.runtime.actor.LocalModeRayActor; +import io.ray.runtime.actor.LocalModeActorHandle; import io.ray.runtime.context.LocalModeWorkerContext; import io.ray.runtime.functionmanager.FunctionDescriptor; import io.ray.runtime.functionmanager.JavaFunctionDescriptor; @@ -149,8 +149,8 @@ public class LocalModeTaskSubmitter implements TaskSubmitter { } @Override - public BaseActor createActor(FunctionDescriptor functionDescriptor, List args, - ActorCreationOptions options) { + public BaseActorHandle createActor(FunctionDescriptor functionDescriptor, List args, + ActorCreationOptions options) { ActorId actorId = ActorId.fromRandom(); TaskSpec taskSpec = getTaskSpecBuilder(TaskType.ACTOR_CREATION_TASK, functionDescriptor, args) .setNumReturns(1) @@ -159,12 +159,12 @@ public class LocalModeTaskSubmitter implements TaskSubmitter { .build()) .build(); submitTaskSpec(taskSpec); - return new LocalModeRayActor(actorId, getReturnIds(taskSpec).get(0)); + return new LocalModeActorHandle(actorId, getReturnIds(taskSpec).get(0)); } @Override public List submitActorTask( - BaseActor actor, FunctionDescriptor functionDescriptor, + BaseActorHandle actor, FunctionDescriptor functionDescriptor, List args, int numReturns, CallOptions options) { Preconditions.checkState(numReturns <= 1); TaskSpec.Builder builder = getTaskSpecBuilder(TaskType.ACTOR_TASK, functionDescriptor, args); @@ -175,7 +175,7 @@ public class LocalModeTaskSubmitter implements TaskSubmitter { .setActorTaskSpec( ActorTaskSpec.newBuilder().setActorId(ByteString.copyFrom(actor.getId().getBytes())) .setPreviousActorTaskDummyObjectId(ByteString.copyFrom( - ((LocalModeRayActor) actor) + ((LocalModeActorHandle) actor) .exchangePreviousActorTaskDummyObjectId(returnIds.get(returnIds.size() - 1)) .getBytes())) .build()) diff --git a/java/runtime/src/main/java/io/ray/runtime/task/NativeTaskSubmitter.java b/java/runtime/src/main/java/io/ray/runtime/task/NativeTaskSubmitter.java index 21324e4bd..753ef2588 100644 --- a/java/runtime/src/main/java/io/ray/runtime/task/NativeTaskSubmitter.java +++ b/java/runtime/src/main/java/io/ray/runtime/task/NativeTaskSubmitter.java @@ -1,11 +1,11 @@ package io.ray.runtime.task; import com.google.common.base.Preconditions; -import io.ray.api.BaseActor; +import io.ray.api.BaseActorHandle; import io.ray.api.id.ObjectId; import io.ray.api.options.ActorCreationOptions; import io.ray.api.options.CallOptions; -import io.ray.runtime.actor.NativeRayActor; +import io.ray.runtime.actor.NativeActorHandle; import io.ray.runtime.functionmanager.FunctionDescriptor; import java.util.List; import java.util.stream.Collectors; @@ -23,17 +23,17 @@ public class NativeTaskSubmitter implements TaskSubmitter { } @Override - public BaseActor createActor(FunctionDescriptor functionDescriptor, List args, - ActorCreationOptions options) { + public BaseActorHandle createActor(FunctionDescriptor functionDescriptor, List args, + ActorCreationOptions options) { byte[] actorId = nativeCreateActor(functionDescriptor, args, options); - return NativeRayActor.create(actorId, functionDescriptor.getLanguage()); + return NativeActorHandle.create(actorId, functionDescriptor.getLanguage()); } @Override public List submitActorTask( - BaseActor actor, FunctionDescriptor functionDescriptor, + BaseActorHandle actor, FunctionDescriptor functionDescriptor, List args, int numReturns, CallOptions options) { - Preconditions.checkState(actor instanceof NativeRayActor); + Preconditions.checkState(actor instanceof NativeActorHandle); List returnIds = nativeSubmitActorTask(actor.getId().getBytes(), functionDescriptor, args, numReturns, options); return returnIds.stream().map(ObjectId::new).collect(Collectors.toList()); diff --git a/java/runtime/src/main/java/io/ray/runtime/task/TaskSubmitter.java b/java/runtime/src/main/java/io/ray/runtime/task/TaskSubmitter.java index eea5af048..c642a8630 100644 --- a/java/runtime/src/main/java/io/ray/runtime/task/TaskSubmitter.java +++ b/java/runtime/src/main/java/io/ray/runtime/task/TaskSubmitter.java @@ -1,6 +1,6 @@ package io.ray.runtime.task; -import io.ray.api.BaseActor; +import io.ray.api.BaseActorHandle; import io.ray.api.id.ObjectId; import io.ray.api.options.ActorCreationOptions; import io.ray.api.options.CallOptions; @@ -30,8 +30,8 @@ public interface TaskSubmitter { * @param options Options for this actor creation task. * @return Handle to the actor. */ - BaseActor createActor(FunctionDescriptor functionDescriptor, List args, - ActorCreationOptions options); + BaseActorHandle createActor(FunctionDescriptor functionDescriptor, List args, + ActorCreationOptions options); /** * Submit an actor task. @@ -42,6 +42,6 @@ public interface TaskSubmitter { * @param options Options for this task. * @return Ids of the return objects. */ - List submitActorTask(BaseActor actor, FunctionDescriptor functionDescriptor, - List args, int numReturns, CallOptions options); + List submitActorTask(BaseActorHandle actor, FunctionDescriptor functionDescriptor, + List args, int numReturns, CallOptions options); } diff --git a/java/runtime/src/main/java/io/ray/runtime/util/generator/RayCallGenerator.java b/java/runtime/src/main/java/io/ray/runtime/util/generator/RayCallGenerator.java index 99c847a4b..5c4fcb759 100644 --- a/java/runtime/src/main/java/io/ray/runtime/util/generator/RayCallGenerator.java +++ b/java/runtime/src/main/java/io/ray/runtime/util/generator/RayCallGenerator.java @@ -170,9 +170,9 @@ public class RayCallGenerator extends BaseGenerator { // 2) Construct the `returnType` part. String returnType; if (forActorCreation) { - returnType = "RayActor"; + returnType = "ActorHandle"; } else { - returnType = hasReturn ? "RayObject" : "void"; + returnType = hasReturn ? "ObjectRef" : "void"; } // 3) Construct the `argsDeclaration` part. @@ -222,7 +222,7 @@ public class RayCallGenerator extends BaseGenerator { // 5) Construct the third line. String callFuncArgs = ""; if (forActor) { - callFuncArgs += "(RayActor) this, "; + callFuncArgs += "(ActorHandle) this, "; } callFuncArgs += "f, args, "; callFuncArgs += forActor ? "" : hasOptionsParam ? "options, " : "null, "; @@ -297,7 +297,7 @@ public class RayCallGenerator extends BaseGenerator { } String genericType = forActorCreation ? "" : " "; - String returnType = !forActorCreation ? "RayObject" : "RayPyActor"; + String returnType = !forActorCreation ? "ObjectRef" : "PyActorHandle"; String funcName = forActorCreation ? "createActor" : "call"; String internalCallFunc = forActorCreation ? "createActor" : forActor ? "callActor" : "call"; @@ -310,7 +310,7 @@ public class RayCallGenerator extends BaseGenerator { // Method body. newLine(2, String.format("Object[] args = new Object[]{%s};", argList)); if (forActor) { - newLine(2, String.format("return Ray.internal().%s((RayPyActor)this, %s%s);", + newLine(2, String.format("return Ray.internal().%s((PyActorHandle)this, %s%s);", internalCallFunc, funcArgs, optionsArg)); } else { newLine(2, String.format("return Ray.internal().%s(%s%s);", @@ -333,7 +333,7 @@ public class RayCallGenerator extends BaseGenerator { } String nextParameter = String.format("T%d t%d, ", pos, pos); dfs(pos + 1, numParams, cur + nextParameter, res); - nextParameter = String.format("RayObject t%d, ", pos, pos); + nextParameter = String.format("ObjectRef t%d, ", pos, pos); dfs(pos + 1, numParams, cur + nextParameter, res); } diff --git a/java/test/src/main/java/io/ray/api/TestUtils.java b/java/test/src/main/java/io/ray/api/TestUtils.java index 54b4cb3fe..089e02ef2 100644 --- a/java/test/src/main/java/io/ray/api/TestUtils.java +++ b/java/test/src/main/java/io/ray/api/TestUtils.java @@ -73,7 +73,7 @@ public class TestUtils { * idle workers in Raylet's worker pool. */ public static void warmUpCluster() { - RayObject obj = Ray.call(TestUtils::hi); + ObjectRef obj = Ray.call(TestUtils::hi); Assert.assertEquals(obj.get(), "hi"); } diff --git a/java/test/src/main/java/io/ray/api/benchmark/ActorPressTest.java b/java/test/src/main/java/io/ray/api/benchmark/ActorPressTest.java index 918508e55..244231c06 100644 --- a/java/test/src/main/java/io/ray/api/benchmark/ActorPressTest.java +++ b/java/test/src/main/java/io/ray/api/benchmark/ActorPressTest.java @@ -1,8 +1,8 @@ package io.ray.api.benchmark; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; import org.testng.annotations.Test; public class ActorPressTest extends RayBenchmarkTest { @@ -10,7 +10,7 @@ public class ActorPressTest extends RayBenchmarkTest { @Test public void singleLatencyTest() { int times = 10; - RayActor adder = Ray.createActor(ActorPressTest.Adder::new); + ActorHandle adder = Ray.createActor(ActorPressTest.Adder::new); super.singleLatencyTest(times, adder); } @@ -18,7 +18,7 @@ public class ActorPressTest extends RayBenchmarkTest { public void maxTest() { int clientNum = 2; int totalNum = 20; - RayActor adder = Ray.createActor(ActorPressTest.Adder::new); + ActorHandle adder = Ray.createActor(ActorPressTest.Adder::new); PressureTestParameter pressureTestParameter = new PressureTestParameter(); pressureTestParameter.setClientNum(clientNum); pressureTestParameter.setTotalNum(totalNum); @@ -32,7 +32,7 @@ public class ActorPressTest extends RayBenchmarkTest { int clientNum = 2; int totalQps = 2; int duration = 3; - RayActor adder = Ray.createActor(ActorPressTest.Adder::new); + ActorHandle adder = Ray.createActor(ActorPressTest.Adder::new); PressureTestParameter pressureTestParameter = new PressureTestParameter(); pressureTestParameter.setClientNum(clientNum); pressureTestParameter.setTotalQps(totalQps); @@ -43,8 +43,8 @@ public class ActorPressTest extends RayBenchmarkTest { } @Override - public RayObject> rayCall(RayActor rayActor) { - return ((RayActor) rayActor).call(Adder::add, 10); + public ObjectRef> rayCall(ActorHandle rayActor) { + return ((ActorHandle) rayActor).call(Adder::add, 10); } @Override diff --git a/java/test/src/main/java/io/ray/api/benchmark/MaxPressureTest.java b/java/test/src/main/java/io/ray/api/benchmark/MaxPressureTest.java index fb68a2385..d2738504a 100644 --- a/java/test/src/main/java/io/ray/api/benchmark/MaxPressureTest.java +++ b/java/test/src/main/java/io/ray/api/benchmark/MaxPressureTest.java @@ -1,8 +1,8 @@ package io.ray.api.benchmark; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; import org.testng.annotations.Test; public class MaxPressureTest extends RayBenchmarkTest { @@ -28,7 +28,7 @@ public class MaxPressureTest extends RayBenchmarkTest { } @Override - public RayObject> rayCall(RayActor rayActor) { + public ObjectRef> rayCall(ActorHandle rayActor) { return Ray.call(MaxPressureTest::currentTime); } diff --git a/java/test/src/main/java/io/ray/api/benchmark/PressureTestParameter.java b/java/test/src/main/java/io/ray/api/benchmark/PressureTestParameter.java index 7655c1709..5e25da5bf 100644 --- a/java/test/src/main/java/io/ray/api/benchmark/PressureTestParameter.java +++ b/java/test/src/main/java/io/ray/api/benchmark/PressureTestParameter.java @@ -1,6 +1,6 @@ package io.ray.api.benchmark; -import io.ray.api.RayActor; +import io.ray.api.ActorHandle; import java.io.Serializable; public class PressureTestParameter implements Serializable { @@ -19,7 +19,8 @@ public class PressureTestParameter implements Serializable { private RayBenchmarkTest rayBenchmarkTest; //reference of current test case instance - private RayActor rayActor; // reference of the Actor, if only test remote funtion it could be null + // reference of the Actor, if only test remote funtion it could be null + private ActorHandle rayActor; public Integer getClientNum() { return clientNum; @@ -69,11 +70,11 @@ public class PressureTestParameter implements Serializable { this.rayBenchmarkTest = rayBenchmarkTest; } - public RayActor getRayActor() { + public ActorHandle getRayActor() { return rayActor; } - public void setRayActor(RayActor rayActor) { + public void setRayActor(ActorHandle rayActor) { this.rayActor = rayActor; } } diff --git a/java/test/src/main/java/io/ray/api/benchmark/RateLimiterPressureTest.java b/java/test/src/main/java/io/ray/api/benchmark/RateLimiterPressureTest.java index 0e38d6161..8f3782abf 100644 --- a/java/test/src/main/java/io/ray/api/benchmark/RateLimiterPressureTest.java +++ b/java/test/src/main/java/io/ray/api/benchmark/RateLimiterPressureTest.java @@ -1,8 +1,8 @@ package io.ray.api.benchmark; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; import org.testng.annotations.Test; public class RateLimiterPressureTest extends RayBenchmarkTest { @@ -30,7 +30,7 @@ public class RateLimiterPressureTest extends RayBenchmarkTest { } @Override - public RayObject> rayCall(RayActor rayActor) { + public ObjectRef> rayCall(ActorHandle rayActor) { return Ray.call(RateLimiterPressureTest::currentTime); } diff --git a/java/test/src/main/java/io/ray/api/benchmark/RayBenchmarkTest.java b/java/test/src/main/java/io/ray/api/benchmark/RayBenchmarkTest.java index 7f12f375c..4c3215388 100644 --- a/java/test/src/main/java/io/ray/api/benchmark/RayBenchmarkTest.java +++ b/java/test/src/main/java/io/ray/api/benchmark/RayBenchmarkTest.java @@ -1,9 +1,9 @@ package io.ray.api.benchmark; import com.google.common.util.concurrent.RateLimiter; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; import io.ray.api.function.RayFunc1; import io.ray.api.test.BaseTest; import java.io.Serializable; @@ -52,14 +52,14 @@ public abstract class RayBenchmarkTest extends BaseTest implements Serializab } RemoteResultWrapper temp = new RemoteResultWrapper(); temp.setStartTime(System.nanoTime()); - temp.setRayObject(rayBenchmarkTest.rayCall(pressureTestParameter.getRayActor())); + temp.setObjectRef(rayBenchmarkTest.rayCall(pressureTestParameter.getRayActor())); remoteResultWrappers[i++] = temp; } int j = 0; while (j < len) { RemoteResultWrapper temp = remoteResultWrappers[j++]; - RemoteResult remoteResult = (RemoteResult) temp.getRayObject().get(); + RemoteResult remoteResult = (RemoteResult) temp.getObjectRef().get(); long endTime = remoteResult.getFinishTime(); long costTime = endTime - temp.getStartTime(); counterList.add(costTime / 1000); @@ -74,13 +74,13 @@ public abstract class RayBenchmarkTest extends BaseTest implements Serializab } } - public void singleLatencyTest(int times, RayActor rayActor) { + public void singleLatencyTest(int times, ActorHandle rayActor) { List counterList = new ArrayList<>(); for (int i = 0; i < times; i++) { long startTime = System.nanoTime(); - RayObject> rayObject = rayCall(rayActor); - RemoteResult remoteResult = rayObject.get(); + ObjectRef> objectRef = rayCall(rayActor); + RemoteResult remoteResult = objectRef.get(); T t = remoteResult.getResult(); long endTime = System.nanoTime(); long costTime = endTime - startTime; @@ -92,7 +92,7 @@ public abstract class RayBenchmarkTest extends BaseTest implements Serializab printList(counterList); } - public abstract RayObject> rayCall(RayActor rayActor); + public abstract ObjectRef> rayCall(ActorHandle rayActor); public abstract boolean checkResult(T t); @@ -126,7 +126,7 @@ public abstract class RayBenchmarkTest extends BaseTest implements Serializab List counterList = new ArrayList<>(); int clientNum = pressureTestParameter.getClientNum(); - RayObject>[] rayObjects = new RayObject[clientNum]; + ObjectRef>[] objectRefs = new ObjectRef[clientNum]; for (int i = 0; i < clientNum; i++) { // Java compiler can't automatically infer the type of @@ -135,10 +135,10 @@ public abstract class RayBenchmarkTest extends BaseTest implements Serializab // defect of the Java compiler. // TODO(hchen): Figure out how to avoid manually declaring `RayFunc` type in this case. RayFunc1> func = RayBenchmarkTest::singleClient; - rayObjects[i] = Ray.call(func, pressureTestParameter); + objectRefs[i] = Ray.call(func, pressureTestParameter); } for (int i = 0; i < clientNum; i++) { - List subCounterList = rayObjects[i].get(); + List subCounterList = objectRefs[i].get(); Assert.assertNotNull(subCounterList); counterList.addAll(subCounterList); } diff --git a/java/test/src/main/java/io/ray/api/benchmark/RemoteResultWrapper.java b/java/test/src/main/java/io/ray/api/benchmark/RemoteResultWrapper.java index a69179e1c..5c0625edc 100644 --- a/java/test/src/main/java/io/ray/api/benchmark/RemoteResultWrapper.java +++ b/java/test/src/main/java/io/ray/api/benchmark/RemoteResultWrapper.java @@ -1,12 +1,12 @@ package io.ray.api.benchmark; -import io.ray.api.RayObject; +import io.ray.api.ObjectRef; public class RemoteResultWrapper { private long startTime; - private RayObject> rayObject; + private ObjectRef> objectRef; public long getStartTime() { return startTime; @@ -16,11 +16,11 @@ public class RemoteResultWrapper { this.startTime = startTime; } - public RayObject> getRayObject() { - return rayObject; + public ObjectRef> getObjectRef() { + return objectRef; } - public void setRayObject(RayObject> rayObject) { - this.rayObject = rayObject; + public void setObjectRef(ObjectRef> objectRef) { + this.objectRef = objectRef; } } diff --git a/java/test/src/main/java/io/ray/api/benchmark/SingleLatencyTest.java b/java/test/src/main/java/io/ray/api/benchmark/SingleLatencyTest.java index 89921a717..72255da31 100644 --- a/java/test/src/main/java/io/ray/api/benchmark/SingleLatencyTest.java +++ b/java/test/src/main/java/io/ray/api/benchmark/SingleLatencyTest.java @@ -1,8 +1,8 @@ package io.ray.api.benchmark; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; import org.testng.annotations.Test; public class SingleLatencyTest extends RayBenchmarkTest { @@ -22,7 +22,7 @@ public class SingleLatencyTest extends RayBenchmarkTest { } @Override - public RayObject> rayCall(RayActor rayActor) { + public ObjectRef> rayCall(ActorHandle rayActor) { return Ray.call(SingleLatencyTest::doFunc); } diff --git a/java/test/src/main/java/io/ray/api/test/ActorConcurrentCallTest.java b/java/test/src/main/java/io/ray/api/test/ActorConcurrentCallTest.java index ac4d0fe28..d09ef91a7 100644 --- a/java/test/src/main/java/io/ray/api/test/ActorConcurrentCallTest.java +++ b/java/test/src/main/java/io/ray/api/test/ActorConcurrentCallTest.java @@ -1,9 +1,9 @@ package io.ray.api.test; import com.google.common.collect.ImmutableList; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; import io.ray.api.TestUtils; import io.ray.api.options.ActorCreationOptions; import java.util.List; @@ -35,10 +35,10 @@ public class ActorConcurrentCallTest extends BaseTest { ActorCreationOptions op = new ActorCreationOptions.Builder() .setMaxConcurrency(3) .createActorCreationOptions(); - RayActor actor = Ray.createActor(ConcurrentActor::new, op); - RayObject obj1 = actor.call(ConcurrentActor::countDown); - RayObject obj2 = actor.call(ConcurrentActor::countDown); - RayObject obj3 = actor.call(ConcurrentActor::countDown); + ActorHandle actor = Ray.createActor(ConcurrentActor::new, op); + ObjectRef obj1 = actor.call(ConcurrentActor::countDown); + ObjectRef obj2 = actor.call(ConcurrentActor::countDown); + ObjectRef obj3 = actor.call(ConcurrentActor::countDown); List expectedResult = ImmutableList.of(1, 2, 3); Assert.assertEquals(obj1.get(), "ok"); diff --git a/java/test/src/main/java/io/ray/api/test/ActorRestartTest.java b/java/test/src/main/java/io/ray/api/test/ActorRestartTest.java index 824bbe37d..a4667304f 100644 --- a/java/test/src/main/java/io/ray/api/test/ActorRestartTest.java +++ b/java/test/src/main/java/io/ray/api/test/ActorRestartTest.java @@ -1,8 +1,8 @@ package io.ray.api.test; +import io.ray.api.ActorHandle; import io.ray.api.Checkpointable; import io.ray.api.Ray; -import io.ray.api.RayActor; import io.ray.api.TestUtils; import io.ray.api.exception.RayActorException; import io.ray.api.id.ActorId; @@ -46,7 +46,7 @@ public class ActorRestartTest extends BaseTest { TestUtils.skipTestUnderSingleProcess(); ActorCreationOptions options = new ActorCreationOptions.Builder().setMaxRestarts(1).createActorCreationOptions(); - RayActor actor = Ray.createActor(Counter::new, options); + ActorHandle actor = Ray.createActor(Counter::new, options); // Call increase 3 times. for (int i = 0; i < 3; i++) { actor.call(Counter::increase).get(); @@ -125,7 +125,7 @@ public class ActorRestartTest extends BaseTest { TestUtils.skipTestUnderSingleProcess(); ActorCreationOptions options = new ActorCreationOptions.Builder().setMaxRestarts(1).createActorCreationOptions(); - RayActor actor = Ray.createActor(CheckpointableCounter::new, options); + ActorHandle actor = Ray.createActor(CheckpointableCounter::new, options); // Call increase 3 times. for (int i = 0; i < 3; i++) { actor.call(CheckpointableCounter::increase).get(); diff --git a/java/test/src/main/java/io/ray/api/test/ActorTest.java b/java/test/src/main/java/io/ray/api/test/ActorTest.java index 5d3926cdf..9d53501d2 100644 --- a/java/test/src/main/java/io/ray/api/test/ActorTest.java +++ b/java/test/src/main/java/io/ray/api/test/ActorTest.java @@ -1,10 +1,10 @@ package io.ray.api.test; import com.google.common.collect.ImmutableList; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; +import io.ray.api.PyActorHandle; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; -import io.ray.api.RayPyActor; import io.ray.api.TestUtils; import io.ray.api.exception.UnreconstructableException; import io.ray.api.id.ActorId; @@ -47,10 +47,10 @@ public class ActorTest extends BaseTest { public void testCreateAndCallActor() { // Test creating an actor from a constructor - RayActor actor = Ray.createActor(Counter::new, 1); + ActorHandle actor = Ray.createActor(Counter::new, 1); Assert.assertNotEquals(actor.getId(), ActorId.NIL); // A java actor is not a python actor - Assert.assertFalse(actor instanceof RayPyActor); + Assert.assertFalse(actor instanceof PyActorHandle); // Test calling an actor Assert.assertEquals(Integer.valueOf(1), actor.call(Counter::getValue).get()); actor.call(Counter::increase, 1); @@ -64,8 +64,8 @@ public class ActorTest extends BaseTest { * get. To enable getting it twice, we cache the object in `RayObjectImpl`. */ public void testGetObjectTwice() { - RayActor actor = Ray.createActor(Counter::new, 1); - RayObject result = actor.call(Counter::getValue); + ActorHandle actor = Ray.createActor(Counter::new, 1); + ObjectRef result = actor.call(Counter::getValue); Assert.assertEquals(result.get(), Integer.valueOf(1)); Assert.assertEquals(result.get(), Integer.valueOf(1)); // TODO(hchen): The following code will still fail, and can be fixed by using ref counting. @@ -73,7 +73,7 @@ public class ActorTest extends BaseTest { } public void testCallActorWithLargeObject() { - RayActor actor = Ray.createActor(Counter::new, 1); + ActorHandle actor = Ray.createActor(Counter::new, 1); TestUtils.LargeObject largeObject = new TestUtils.LargeObject(); Assert.assertEquals(Integer.valueOf(largeObject.data.length + 1), actor.call(Counter::accessLargeObject, largeObject).get()); @@ -85,29 +85,29 @@ public class ActorTest extends BaseTest { public void testCreateActorFromFactory() { // Test creating an actor from a factory method - RayActor actor = Ray.createActor(ActorTest::factory, 1); + ActorHandle actor = Ray.createActor(ActorTest::factory, 1); Assert.assertNotEquals(actor.getId(), UniqueId.NIL); // Test calling an actor Assert.assertEquals(Integer.valueOf(1), actor.call(Counter::getValue).get()); } - static int testActorAsFirstParameter(RayActor actor, int delta) { - RayObject res = actor.call(Counter::increaseAndGet, delta); + static int testActorAsFirstParameter(ActorHandle actor, int delta) { + ObjectRef res = actor.call(Counter::increaseAndGet, delta); return res.get(); } - static int testActorAsSecondParameter(int delta, RayActor actor) { - RayObject res = actor.call(Counter::increaseAndGet, delta); + static int testActorAsSecondParameter(int delta, ActorHandle actor) { + ObjectRef res = actor.call(Counter::increaseAndGet, delta); return res.get(); } - static int testActorAsFieldOfParameter(List> actor, int delta) { - RayObject res = actor.get(0).call(Counter::increaseAndGet, delta); + static int testActorAsFieldOfParameter(List> actor, int delta) { + ObjectRef res = actor.get(0).call(Counter::increaseAndGet, delta); return res.get(); } public void testPassActorAsParameter() { - RayActor actor = Ray.createActor(Counter::new, 0); + ActorHandle actor = Ray.createActor(Counter::new, 0); Assert.assertEquals(Integer.valueOf(1), Ray.call(ActorTest::testActorAsFirstParameter, actor, 1).get()); Assert.assertEquals(Integer.valueOf(11), @@ -123,9 +123,9 @@ public class ActorTest extends BaseTest { TestUtils.skipTestUnderSingleProcess(); // The UnreconstructableException is created by raylet. - RayActor counter = Ray.createActor(Counter::new, 100); + ActorHandle counter = Ray.createActor(Counter::new, 100); // Call an actor method. - RayObject value = counter.call(Counter::getValue); + ObjectRef value = counter.call(Counter::getValue); Assert.assertEquals(100, value.get()); // Delete the object from the object store. Ray.internal().free(ImmutableList.of(value.getId()), false, false); diff --git a/java/test/src/main/java/io/ray/api/test/ClassLoaderTest.java b/java/test/src/main/java/io/ray/api/test/ClassLoaderTest.java index e4580e6db..5a6469096 100644 --- a/java/test/src/main/java/io/ray/api/test/ClassLoaderTest.java +++ b/java/test/src/main/java/io/ray/api/test/ClassLoaderTest.java @@ -1,9 +1,9 @@ package io.ray.api.test; -import io.ray.api.BaseActor; +import io.ray.api.ActorHandle; +import io.ray.api.BaseActorHandle; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; import io.ray.api.TestUtils; import io.ray.api.options.ActorCreationOptions; import io.ray.runtime.AbstractRayRuntime; @@ -93,18 +93,20 @@ public class ClassLoaderTest extends BaseTest { // Compile the java file. JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); - int result = compiler.run(null, null, null, "-d", jobResourcePath, javaFilePath); + int result = compiler.run(null, null, null, "-d", + jobResourcePath, javaFilePath); if (result != 0) { throw new RuntimeException("Couldn't compile ClassLoaderTester.java."); } - FunctionDescriptor constructor = new JavaFunctionDescriptor("ClassLoaderTester", "", - "()V"); - RayActor actor1 = createActor(constructor); - FunctionDescriptor getPid = new JavaFunctionDescriptor("ClassLoaderTester", "getPid", "()I"); + FunctionDescriptor constructor = new JavaFunctionDescriptor( + "ClassLoaderTester", "", "()V"); + ActorHandle actor1 = createActor(constructor); + FunctionDescriptor getPid = new JavaFunctionDescriptor( + "ClassLoaderTester", "getPid", "()I"); int pid = this.callActorFunction(actor1, getPid, new Object[0], Optional.of(Integer.class)).get(); - RayActor actor2; + ActorHandle actor2; while (true) { // Create another actor which share the same process of actor 1. actor2 = createActor(constructor); @@ -115,40 +117,42 @@ public class ClassLoaderTest extends BaseTest { } } - FunctionDescriptor getClassLoaderHashCode = new JavaFunctionDescriptor("ClassLoaderTester", - "getClassLoaderHashCode", - "()I"); - RayObject hashCode1 = callActorFunction(actor1, getClassLoaderHashCode, new Object[0], + FunctionDescriptor getClassLoaderHashCode = new JavaFunctionDescriptor( + "ClassLoaderTester", "getClassLoaderHashCode", "()I"); + ObjectRef hashCode1 = callActorFunction(actor1, getClassLoaderHashCode, new Object[0], Optional.of(Integer.class)); - RayObject hashCode2 = callActorFunction(actor2, getClassLoaderHashCode, new Object[0], + ObjectRef hashCode2 = callActorFunction(actor2, getClassLoaderHashCode, new Object[0], Optional.of(Integer.class)); Assert.assertEquals(hashCode1.get(), hashCode2.get()); - FunctionDescriptor increase = new JavaFunctionDescriptor("ClassLoaderTester", "increase", - "()I"); - RayObject value1 = callActorFunction(actor1, increase, new Object[0], + FunctionDescriptor increase = new JavaFunctionDescriptor( + "ClassLoaderTester", "increase", "()I"); + ObjectRef value1 = callActorFunction(actor1, increase, new Object[0], Optional.of(Integer.class)); - RayObject value2 = callActorFunction(actor2, increase, new Object[0], + ObjectRef value2 = callActorFunction(actor2, increase, new Object[0], Optional.of(Integer.class)); Assert.assertNotEquals(value1.get(), value2.get()); } - private RayActor createActor(FunctionDescriptor functionDescriptor) + private ActorHandle createActor(FunctionDescriptor functionDescriptor) throws Exception { Method createActorMethod = AbstractRayRuntime.class.getDeclaredMethod("createActorImpl", FunctionDescriptor.class, Object[].class, ActorCreationOptions.class); createActorMethod.setAccessible(true); - return (RayActor) createActorMethod + return (ActorHandle) createActorMethod .invoke(TestUtils.getUnderlyingRuntime(), functionDescriptor, new Object[0], null); } - private RayObject callActorFunction(RayActor rayActor, - FunctionDescriptor functionDescriptor, Object[] args, Optional> returnType) + private ObjectRef callActorFunction( + ActorHandle rayActor, + FunctionDescriptor functionDescriptor, + Object[] args, + Optional> returnType) throws Exception { Method callActorFunctionMethod = AbstractRayRuntime.class.getDeclaredMethod("callActorFunction", - BaseActor.class, FunctionDescriptor.class, Object[].class, Optional.class); + BaseActorHandle.class, FunctionDescriptor.class, Object[].class, Optional.class); callActorFunctionMethod.setAccessible(true); - return (RayObject) callActorFunctionMethod + return (ObjectRef) callActorFunctionMethod .invoke(TestUtils.getUnderlyingRuntime(), rayActor, functionDescriptor, args, returnType); } } diff --git a/java/test/src/main/java/io/ray/api/test/CrossLanguageInvocationTest.java b/java/test/src/main/java/io/ray/api/test/CrossLanguageInvocationTest.java index 19057f74f..9a3f7e9a7 100644 --- a/java/test/src/main/java/io/ray/api/test/CrossLanguageInvocationTest.java +++ b/java/test/src/main/java/io/ray/api/test/CrossLanguageInvocationTest.java @@ -2,15 +2,15 @@ package io.ray.api.test; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; +import io.ray.api.PyActorHandle; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; -import io.ray.api.RayPyActor; import io.ray.api.function.PyActorClass; import io.ray.api.function.PyActorMethod; import io.ray.api.function.PyRemoteFunction; -import io.ray.runtime.actor.NativeRayActor; -import io.ray.runtime.actor.NativeRayPyActor; +import io.ray.runtime.actor.NativeActorHandle; +import io.ray.runtime.actor.NativePyActorHandle; import java.io.File; import java.io.IOException; import java.io.InputStream; @@ -69,7 +69,7 @@ public class CrossLanguageInvocationTest extends BaseMultiLanguageTest { 1.234, // Double "example binary".getBytes()}; // byte[] for (Object o : inputs) { - RayObject res = Ray.call( + ObjectRef res = Ray.call( new PyRemoteFunction<>(PYTHON_MODULE, "py_return_input", o.getClass()), o); Assert.assertEquals(res.get(), o); @@ -77,7 +77,7 @@ public class CrossLanguageInvocationTest extends BaseMultiLanguageTest { // null { Object input = null; - RayObject res = Ray.call( + ObjectRef res = Ray.call( new PyRemoteFunction<>(PYTHON_MODULE, "py_return_input", Object.class), input); Object r = res.get(); Assert.assertEquals(r, input); @@ -85,7 +85,7 @@ public class CrossLanguageInvocationTest extends BaseMultiLanguageTest { // array { int[] input = new int[]{1, 2}; - RayObject res = Ray.call( + ObjectRef res = Ray.call( new PyRemoteFunction<>(PYTHON_MODULE, "py_return_input", int[].class), input); int[] r = res.get(); Assert.assertEquals(r, input); @@ -94,7 +94,7 @@ public class CrossLanguageInvocationTest extends BaseMultiLanguageTest { { Object[] input = new Object[]{1, 2.3f, 4.56, "789", "10".getBytes(), null, true, new int[]{1, 2}}; - RayObject res = Ray.call( + ObjectRef res = Ray.call( new PyRemoteFunction<>(PYTHON_MODULE, "py_return_input", Object[].class), input); Object[] r = res.get(); // If we tell the value type is Object, then all numbers will be Number type. @@ -119,7 +119,7 @@ public class CrossLanguageInvocationTest extends BaseMultiLanguageTest { { Assert.expectThrows(Exception.class, () -> { List input = Arrays.asList(1, 2); - RayObject> res = Ray.call( + ObjectRef> res = Ray.call( new PyRemoteFunction<>(PYTHON_MODULE, "py_return_input", (Class>) input.getClass()), input); List r = res.get(); @@ -130,15 +130,16 @@ public class CrossLanguageInvocationTest extends BaseMultiLanguageTest { @Test public void testPythonCallJavaFunction() { - RayObject res = Ray.call( + ObjectRef res = Ray.call( new PyRemoteFunction<>(PYTHON_MODULE, "py_func_call_java_function", String.class)); Assert.assertEquals(res.get(), "success"); } @Test public void testCallingPythonActor() { - RayPyActor actor = Ray.createActor(new PyActorClass(PYTHON_MODULE, "Counter"), "1".getBytes()); - RayObject res = actor.call( + PyActorHandle actor = Ray.createActor( + new PyActorClass(PYTHON_MODULE, "Counter"), "1".getBytes()); + ObjectRef res = actor.call( new PyActorMethod<>("increase", byte[].class), "1".getBytes()); Assert.assertEquals(res.get(), "2".getBytes()); @@ -146,7 +147,7 @@ public class CrossLanguageInvocationTest extends BaseMultiLanguageTest { @Test public void testPythonCallJavaActor() { - RayObject res = Ray.call( + ObjectRef res = Ray.call( new PyRemoteFunction<>(PYTHON_MODULE, "py_func_call_java_actor", byte[].class), "1".getBytes()); Assert.assertEquals(res.get(), "Counter1".getBytes()); @@ -157,7 +158,7 @@ public class CrossLanguageInvocationTest extends BaseMultiLanguageTest { public void testPassActorHandleFromPythonToJava() { // Call a python function which creates a python actor // and pass the actor handle to callPythonActorHandle. - RayObject res = Ray.call( + ObjectRef res = Ray.call( new PyRemoteFunction<>(PYTHON_MODULE, "py_func_pass_python_actor_handle", byte[].class)); Assert.assertEquals(res.get(), "3".getBytes()); } @@ -165,20 +166,20 @@ public class CrossLanguageInvocationTest extends BaseMultiLanguageTest { @Test public void testPassActorHandleFromJavaToPython() { // Create a java actor, and pass actor handle to python. - RayActor javaActor = Ray.createActor(TestActor::new, "1".getBytes()); - Preconditions.checkState(javaActor instanceof NativeRayActor); - byte[] actorHandleBytes = ((NativeRayActor) javaActor).toBytes(); - RayObject res = Ray.call( + ActorHandle javaActor = Ray.createActor(TestActor::new, "1".getBytes()); + Preconditions.checkState(javaActor instanceof NativeActorHandle); + byte[] actorHandleBytes = ((NativeActorHandle) javaActor).toBytes(); + ObjectRef res = Ray.call( new PyRemoteFunction<>(PYTHON_MODULE, "py_func_call_java_actor_from_handle", byte[].class), actorHandleBytes); Assert.assertEquals(res.get(), "12".getBytes()); // Create a python actor, and pass actor handle to python. - RayPyActor pyActor = Ray.createActor( + PyActorHandle pyActor = Ray.createActor( new PyActorClass(PYTHON_MODULE, "Counter"), "1".getBytes()); - Preconditions.checkState(pyActor instanceof NativeRayActor); - actorHandleBytes = ((NativeRayActor) pyActor).toBytes(); + Preconditions.checkState(pyActor instanceof NativeActorHandle); + actorHandleBytes = ((NativeActorHandle) pyActor).toBytes(); res = Ray.call( new PyRemoteFunction<>(PYTHON_MODULE, "py_func_call_python_actor_from_handle", @@ -218,8 +219,8 @@ public class CrossLanguageInvocationTest extends BaseMultiLanguageTest { public static byte[] callPythonActorHandle(byte[] value) { // This function will be called from test_cross_language_invocation.py - NativeRayPyActor actor = (NativeRayPyActor) NativeRayActor.fromBytes(value); - RayObject res = actor.call( + NativePyActorHandle actor = (NativePyActorHandle) NativeActorHandle.fromBytes(value); + ObjectRef res = actor.call( new PyActorMethod<>("increase", byte[].class), "1".getBytes()); Assert.assertEquals(res.get(), "3".getBytes()); diff --git a/java/test/src/main/java/io/ray/api/test/DynamicResourceTest.java b/java/test/src/main/java/io/ray/api/test/DynamicResourceTest.java index e6862984b..ec180e3a1 100644 --- a/java/test/src/main/java/io/ray/api/test/DynamicResourceTest.java +++ b/java/test/src/main/java/io/ray/api/test/DynamicResourceTest.java @@ -2,8 +2,8 @@ package io.ray.api.test; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayObject; import io.ray.api.TestUtils; import io.ray.api.WaitResult; import io.ray.api.options.CallOptions; @@ -27,7 +27,7 @@ public class DynamicResourceTest extends BaseTest { CallOptions op1 = new CallOptions.Builder().setResources(ImmutableMap.of("A", 10.0)).createCallOptions(); - RayObject obj = Ray.call(DynamicResourceTest::sayHi, op1); + ObjectRef obj = Ray.call(DynamicResourceTest::sayHi, op1); WaitResult result = Ray.wait(ImmutableList.of(obj), 1, 1000); Assert.assertEquals(result.getReady().size(), 0); diff --git a/java/test/src/main/java/io/ray/api/test/FailureTest.java b/java/test/src/main/java/io/ray/api/test/FailureTest.java index b82fae27b..ab2f57760 100644 --- a/java/test/src/main/java/io/ray/api/test/FailureTest.java +++ b/java/test/src/main/java/io/ray/api/test/FailureTest.java @@ -1,8 +1,8 @@ package io.ray.api.test; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; import io.ray.api.TestUtils; import io.ray.api.exception.RayActorException; import io.ray.api.exception.RayException; @@ -71,9 +71,9 @@ public class FailureTest extends BaseTest { } } - private static void assertTaskFailedWithRayTaskException(RayObject rayObject) { + private static void assertTaskFailedWithRayTaskException(ObjectRef objectRef) { try { - rayObject.get(); + objectRef.get(); Assert.fail("Task didn't fail."); } catch (RayTaskException e) { Throwable rootCause = e.getCause(); @@ -94,14 +94,14 @@ public class FailureTest extends BaseTest { @Test public void testActorCreationFailure() { TestUtils.skipTestUnderSingleProcess(); - RayActor actor = Ray.createActor(BadActor::new, true); + ActorHandle actor = Ray.createActor(BadActor::new, true); assertTaskFailedWithRayTaskException(actor.call(BadActor::badMethod)); } @Test public void testActorTaskFailure() { TestUtils.skipTestUnderSingleProcess(); - RayActor actor = Ray.createActor(BadActor::new, false); + ActorHandle actor = Ray.createActor(BadActor::new, false); assertTaskFailedWithRayTaskException(actor.call(BadActor::badMethod)); } @@ -120,7 +120,7 @@ public class FailureTest extends BaseTest { @Test public void testActorProcessDying() { TestUtils.skipTestUnderSingleProcess(); - RayActor actor = Ray.createActor(BadActor::new, false); + ActorHandle actor = Ray.createActor(BadActor::new, false); try { actor.call(BadActor::badMethod2).get(); Assert.fail("This line shouldn't be reached."); @@ -144,8 +144,8 @@ public class FailureTest extends BaseTest { FailureTest::badFunc2); TestUtils.warmUpCluster(); for (RayFunc0 badFunc : badFunctions) { - RayObject obj1 = Ray.call(badFunc); - RayObject obj2 = Ray.call(FailureTest::slowFunc); + ObjectRef obj1 = Ray.call(badFunc); + ObjectRef obj2 = Ray.call(FailureTest::slowFunc); Instant start = Instant.now(); try { Ray.get(Arrays.asList(obj1, obj2)); diff --git a/java/test/src/main/java/io/ray/api/test/HelloWorldTest.java b/java/test/src/main/java/io/ray/api/test/HelloWorldTest.java index 820cef770..f02cf6fd3 100644 --- a/java/test/src/main/java/io/ray/api/test/HelloWorldTest.java +++ b/java/test/src/main/java/io/ray/api/test/HelloWorldTest.java @@ -1,7 +1,7 @@ package io.ray.api.test; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayObject; import org.testng.Assert; import org.testng.annotations.Test; @@ -24,8 +24,8 @@ public class HelloWorldTest extends BaseTest { @Test public void testHelloWorld() { - RayObject hello = Ray.call(HelloWorldTest::hello); - RayObject world = Ray.call(HelloWorldTest::world); + ObjectRef hello = Ray.call(HelloWorldTest::hello); + ObjectRef world = Ray.call(HelloWorldTest::world); String helloWorld = Ray.call(HelloWorldTest::merge, hello, world).get(); Assert.assertEquals("hello,world!", helloWorld); } diff --git a/java/test/src/main/java/io/ray/api/test/KillActorTest.java b/java/test/src/main/java/io/ray/api/test/KillActorTest.java index e3600d57f..69345030f 100644 --- a/java/test/src/main/java/io/ray/api/test/KillActorTest.java +++ b/java/test/src/main/java/io/ray/api/test/KillActorTest.java @@ -1,9 +1,9 @@ package io.ray.api.test; import com.google.common.collect.ImmutableList; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; import io.ray.api.TestUtils; import io.ray.api.exception.RayActorException; import io.ray.api.options.ActorCreationOptions; @@ -41,27 +41,27 @@ public class KillActorTest extends BaseTest { public static class KillerActor { - public void kill(RayActor actor, boolean noRestart) { + public void kill(ActorHandle actor, boolean noRestart) { actor.kill(noRestart); } } - private static void localKill(RayActor actor, boolean noRestart) { + private static void localKill(ActorHandle actor, boolean noRestart) { actor.kill(noRestart); } - private static void remoteKill(RayActor actor, boolean noRestart) { - RayActor killer = Ray.createActor(KillerActor::new); + private static void remoteKill(ActorHandle actor, boolean noRestart) { + ActorHandle killer = Ray.createActor(KillerActor::new); killer.call(KillerActor::kill, actor, noRestart); } - private void testKillActor(BiConsumer, Boolean> kill, boolean noRestart) { + private void testKillActor(BiConsumer, Boolean> kill, boolean noRestart) { TestUtils.skipTestUnderSingleProcess(); ActorCreationOptions options = new ActorCreationOptions.Builder().setMaxRestarts(1).createActorCreationOptions(); - RayActor actor = Ray.createActor(HangActor::new, options); - RayObject result = actor.call(HangActor::hang); + ActorHandle actor = Ray.createActor(HangActor::new, options); + ObjectRef result = actor.call(HangActor::hang); // The actor will hang in this task. Assert.assertEquals(0, Ray.wait(ImmutableList.of(result), 1, 500).getReady().size()); diff --git a/java/test/src/main/java/io/ray/api/test/MultiLanguageClusterTest.java b/java/test/src/main/java/io/ray/api/test/MultiLanguageClusterTest.java index d3de5404f..bfe287f3c 100644 --- a/java/test/src/main/java/io/ray/api/test/MultiLanguageClusterTest.java +++ b/java/test/src/main/java/io/ray/api/test/MultiLanguageClusterTest.java @@ -1,7 +1,7 @@ package io.ray.api.test; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayObject; import org.testng.Assert; import org.testng.annotations.Test; @@ -13,7 +13,7 @@ public class MultiLanguageClusterTest extends BaseMultiLanguageTest { @Test public void testMultiLanguageCluster() { - RayObject obj = Ray.call(MultiLanguageClusterTest::echo, "hello"); + ObjectRef obj = Ray.call(MultiLanguageClusterTest::echo, "hello"); Assert.assertEquals("hello", obj.get()); } diff --git a/java/test/src/main/java/io/ray/api/test/MultiThreadingTest.java b/java/test/src/main/java/io/ray/api/test/MultiThreadingTest.java index 0bff28546..d1c5487a1 100644 --- a/java/test/src/main/java/io/ray/api/test/MultiThreadingTest.java +++ b/java/test/src/main/java/io/ray/api/test/MultiThreadingTest.java @@ -1,9 +1,9 @@ package io.ray.api.test; import com.google.common.collect.ImmutableList; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; import io.ray.api.TestUtils; import io.ray.api.WaitResult; import io.ray.api.exception.RayException; @@ -73,22 +73,22 @@ public class MultiThreadingTest extends BaseTest { // Test calling normal functions. runTestCaseInMultipleThreads(() -> { int arg = random.nextInt(); - RayObject obj = Ray.call(MultiThreadingTest::echo, arg); + ObjectRef obj = Ray.call(MultiThreadingTest::echo, arg); Assert.assertEquals(arg, (int) obj.get()); }, LOOP_COUNTER); // Test calling actors. - RayActor echoActor = Ray.createActor(Echo::new); + ActorHandle echoActor = Ray.createActor(Echo::new); runTestCaseInMultipleThreads(() -> { int arg = random.nextInt(); - RayObject obj = echoActor.call(Echo::echo, arg); + ObjectRef obj = echoActor.call(Echo::echo, arg); Assert.assertEquals(arg, (int) obj.get()); }, LOOP_COUNTER); // Test creating multi actors runTestCaseInMultipleThreads(() -> { int arg = random.nextInt(); - RayActor echoActor1 = Ray.createActor(Echo::new); + ActorHandle echoActor1 = Ray.createActor(Echo::new); try { // Sleep a while to test the case that another actor is created before submitting // tasks to this actor. @@ -96,20 +96,20 @@ public class MultiThreadingTest extends BaseTest { } catch (InterruptedException e) { LOGGER.warn("Got exception while sleeping.", e); } - RayObject obj = echoActor1.call(Echo::echo, arg); + ObjectRef obj = echoActor1.call(Echo::echo, arg); Assert.assertEquals(arg, (int) obj.get()); }, 1); // Test put and get. runTestCaseInMultipleThreads(() -> { int arg = random.nextInt(); - RayObject obj = Ray.put(arg); + ObjectRef obj = Ray.put(arg); Assert.assertEquals(arg, (int) obj.get()); }, LOOP_COUNTER); TestUtils.warmUpCluster(); // Test wait for one object in multi threads. - RayObject obj = Ray.call(MultiThreadingTest::echo, 100); + ObjectRef obj = Ray.call(MultiThreadingTest::echo, 100); runTestCaseInMultipleThreads(() -> { WaitResult result = Ray.wait(ImmutableList.of(obj), 1, 1000); Assert.assertEquals(1, result.getReady().size()); @@ -125,23 +125,23 @@ public class MultiThreadingTest extends BaseTest { public void testInWorker() { // Single-process mode doesn't have real workers. TestUtils.skipTestUnderSingleProcess(); - RayObject obj = Ray.call(MultiThreadingTest::testMultiThreading); + ObjectRef obj = Ray.call(MultiThreadingTest::testMultiThreading); Assert.assertEquals("ok", obj.get()); } public void testGetCurrentActorId() { TestUtils.skipTestUnderSingleProcess(); - RayActor actorIdTester = Ray.createActor(ActorIdTester::new); + ActorHandle actorIdTester = Ray.createActor(ActorIdTester::new); ActorId actorId = actorIdTester.call(ActorIdTester::getCurrentActorId).get(); Assert.assertEquals(actorId, actorIdTester.getId()); } /** - * Call this method each time to avoid hitting the cache in {@link RayObject#get()}. + * Call this method each time to avoid hitting the cache in {@link ObjectRef#get()}. */ static Runnable[] generateRunnables() { - final RayObject fooObject = Ray.put(1); - final RayActor fooActor = Ray.createActor(Echo::new); + final ObjectRef fooObject = Ray.put(1); + final ActorHandle fooActor = Ray.createActor(Echo::new); return new Runnable[]{ () -> Ray.put(1), () -> Ray.get(fooObject.getId(), fooObject.getType()), @@ -219,7 +219,7 @@ public class MultiThreadingTest extends BaseTest { runnables[0].run(); } - // Return true here to make the Ray.call returns an RayObject. + // Return true here to make the Ray.call returns an ObjectRef. return true; } @@ -303,7 +303,7 @@ public class MultiThreadingTest extends BaseTest { } public void testGetAsyncContextAndSetAsyncContextInWorker() { - RayObject obj = Ray.call(MultiThreadingTest::testGetAsyncContextAndSetAsyncContext); + ObjectRef obj = Ray.call(MultiThreadingTest::testGetAsyncContextAndSetAsyncContext); Assert.assertTrue(obj.get()); } diff --git a/java/test/src/main/java/io/ray/api/test/ObjectStoreTest.java b/java/test/src/main/java/io/ray/api/test/ObjectStoreTest.java index 0a16f624f..c4793fb22 100644 --- a/java/test/src/main/java/io/ray/api/test/ObjectStoreTest.java +++ b/java/test/src/main/java/io/ray/api/test/ObjectStoreTest.java @@ -1,8 +1,8 @@ package io.ray.api.test; import com.google.common.collect.ImmutableList; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayObject; import io.ray.api.id.ObjectId; import java.util.List; import java.util.stream.Collectors; @@ -17,19 +17,19 @@ public class ObjectStoreTest extends BaseTest { @Test public void testPutAndGet() { { - RayObject obj = Ray.put(1); + ObjectRef obj = Ray.put(1); Assert.assertEquals(1, (int) obj.get()); } { String s = null; - RayObject obj = Ray.put(s); + ObjectRef obj = Ray.put(s); Assert.assertNull(obj.get()); } { List> l = ImmutableList.of(ImmutableList.of("abc")); - RayObject>> obj = Ray.put(l); + ObjectRef>> obj = Ray.put(l); Assert.assertEquals(obj.get(), l); } } diff --git a/java/test/src/main/java/io/ray/api/test/PlasmaFreeTest.java b/java/test/src/main/java/io/ray/api/test/PlasmaFreeTest.java index e5b9dafde..68f6dadb3 100644 --- a/java/test/src/main/java/io/ray/api/test/PlasmaFreeTest.java +++ b/java/test/src/main/java/io/ray/api/test/PlasmaFreeTest.java @@ -1,8 +1,8 @@ package io.ray.api.test; import com.google.common.collect.ImmutableList; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayObject; import io.ray.api.TestUtils; import io.ray.api.id.TaskId; import java.util.Arrays; @@ -17,7 +17,7 @@ public class PlasmaFreeTest extends BaseTest { @Test public void testDeleteObjects() { - RayObject helloId = Ray.call(PlasmaFreeTest::hello); + ObjectRef helloId = Ray.call(PlasmaFreeTest::hello); String helloString = helloId.get(); Assert.assertEquals("hello", helloString); Ray.internal().free(ImmutableList.of(helloId.getId()), true, false); @@ -36,7 +36,7 @@ public class PlasmaFreeTest extends BaseTest { @Test public void testDeleteCreatingTasks() { TestUtils.skipTestUnderSingleProcess(); - RayObject helloId = Ray.call(PlasmaFreeTest::hello); + ObjectRef helloId = Ray.call(PlasmaFreeTest::hello); Assert.assertEquals("hello", helloId.get()); Ray.internal().free(ImmutableList.of(helloId.getId()), true, true); diff --git a/java/test/src/main/java/io/ray/api/test/RayMethodsTest.java b/java/test/src/main/java/io/ray/api/test/RayMethodsTest.java index 11823cb46..8886195d2 100644 --- a/java/test/src/main/java/io/ray/api/test/RayMethodsTest.java +++ b/java/test/src/main/java/io/ray/api/test/RayMethodsTest.java @@ -1,8 +1,8 @@ package io.ray.api.test; import com.google.common.collect.ImmutableList; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayObject; import io.ray.api.WaitResult; import java.util.List; import java.util.stream.Collectors; @@ -16,15 +16,15 @@ public class RayMethodsTest extends BaseTest { @Test public void test() { - RayObject i1Id = Ray.put(1); - RayObject f1Id = Ray.put(3.14); - RayObject s1Id = Ray.put(String.valueOf("Hello ")); - RayObject s2Id = Ray.put(String.valueOf("World!")); - RayObject n1Id = Ray.put(null); + ObjectRef i1Id = Ray.put(1); + ObjectRef f1Id = Ray.put(3.14); + ObjectRef s1Id = Ray.put(String.valueOf("Hello ")); + ObjectRef s2Id = Ray.put(String.valueOf("World!")); + ObjectRef n1Id = Ray.put(null); WaitResult res = Ray.wait(ImmutableList.of(s1Id, s2Id), 2, 1000); - List ss = res.getReady().stream().map(RayObject::get).collect(Collectors.toList()); + List ss = res.getReady().stream().map(ObjectRef::get).collect(Collectors.toList()); int i1 = i1Id.get(); double f1 = f1Id.get(); Object n1 = n1Id.get(); diff --git a/java/test/src/main/java/io/ray/api/test/RaySerializerTest.java b/java/test/src/main/java/io/ray/api/test/RaySerializerTest.java index 9a3bf6d3a..a6a8d8a55 100644 --- a/java/test/src/main/java/io/ray/api/test/RaySerializerTest.java +++ b/java/test/src/main/java/io/ray/api/test/RaySerializerTest.java @@ -1,7 +1,7 @@ package io.ray.api.test; +import io.ray.api.PyActorHandle; import io.ray.api.Ray; -import io.ray.api.RayPyActor; import io.ray.api.function.PyActorClass; import io.ray.runtime.object.NativeRayObject; import io.ray.runtime.object.ObjectSerializer; @@ -12,9 +12,10 @@ public class RaySerializerTest extends BaseMultiLanguageTest { @Test public void testSerializePyActor() { - RayPyActor pyActor = Ray.createActor(new PyActorClass("test", "RaySerializerTest")); + PyActorHandle pyActor = Ray.createActor( + new PyActorClass("test", "RaySerializerTest")); NativeRayObject nativeRayObject = ObjectSerializer.serialize(pyActor); - RayPyActor result = (RayPyActor) ObjectSerializer + PyActorHandle result = (PyActorHandle) ObjectSerializer .deserialize(nativeRayObject, null, Object.class); Assert.assertEquals(result.getId(), pyActor.getId()); Assert.assertEquals(result.getModuleName(), "test"); diff --git a/java/test/src/main/java/io/ray/api/test/RayletConfigTest.java b/java/test/src/main/java/io/ray/api/test/RayletConfigTest.java index 3b338d3b3..fe5ac19d3 100644 --- a/java/test/src/main/java/io/ray/api/test/RayletConfigTest.java +++ b/java/test/src/main/java/io/ray/api/test/RayletConfigTest.java @@ -1,7 +1,7 @@ package io.ray.api.test; +import io.ray.api.ActorHandle; import io.ray.api.Ray; -import io.ray.api.RayActor; import io.ray.api.TestUtils; import org.testng.Assert; import org.testng.annotations.AfterClass; @@ -32,7 +32,7 @@ public class RayletConfigTest extends BaseTest { @Test public void testRayletConfigPassThrough() { - RayActor actor = Ray.createActor(TestActor::new); + ActorHandle actor = Ray.createActor(TestActor::new); String configValue = actor.call(TestActor::getConfigValue).get(); Assert.assertEquals(configValue, RAY_CONFIG_VALUE); } diff --git a/java/test/src/main/java/io/ray/api/test/RedisPasswordTest.java b/java/test/src/main/java/io/ray/api/test/RedisPasswordTest.java index e490cffd8..027ab6bee 100644 --- a/java/test/src/main/java/io/ray/api/test/RedisPasswordTest.java +++ b/java/test/src/main/java/io/ray/api/test/RedisPasswordTest.java @@ -1,7 +1,7 @@ package io.ray.api.test; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayObject; import org.testng.Assert; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; @@ -27,7 +27,7 @@ public class RedisPasswordTest extends BaseTest { @Test public void testRedisPassword() { - RayObject obj = Ray.call(RedisPasswordTest::echo, "hello"); + ObjectRef obj = Ray.call(RedisPasswordTest::echo, "hello"); Assert.assertEquals("hello", obj.get()); } diff --git a/java/test/src/main/java/io/ray/api/test/ResourcesManagementTest.java b/java/test/src/main/java/io/ray/api/test/ResourcesManagementTest.java index a7fb8686c..a8cd2309e 100644 --- a/java/test/src/main/java/io/ray/api/test/ResourcesManagementTest.java +++ b/java/test/src/main/java/io/ray/api/test/ResourcesManagementTest.java @@ -2,9 +2,9 @@ package io.ray.api.test; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; import io.ray.api.TestUtils; import io.ray.api.WaitResult; import io.ray.api.options.ActorCreationOptions; @@ -48,7 +48,7 @@ public class ResourcesManagementTest extends BaseTest { // This is a case that can satisfy required resources. // The static resources for test are "CPU:4,RES-A:4". - RayObject result1 = Ray.call(ResourcesManagementTest::echo, 100, callOptions1); + ObjectRef result1 = Ray.call(ResourcesManagementTest::echo, 100, callOptions1); Assert.assertEquals(100, (int) result1.get()); CallOptions callOptions2 = @@ -56,7 +56,7 @@ public class ResourcesManagementTest extends BaseTest { // This is a case that can't satisfy required resources. // The static resources for test are "CPU:4,RES-A:4". - final RayObject result2 = Ray.call(ResourcesManagementTest::echo, 200, callOptions2); + final ObjectRef result2 = Ray.call(ResourcesManagementTest::echo, 200, callOptions2); WaitResult waitResult = Ray.wait(ImmutableList.of(result2), 1, 1000); Assert.assertEquals(1, waitResult.getReady().size()); @@ -80,8 +80,8 @@ public class ResourcesManagementTest extends BaseTest { .setResources(ImmutableMap.of("CPU", 2.0)).createActorCreationOptions(); // This is a case that can satisfy required resources. // The static resources for test are "CPU:4,RES-A:4". - RayActor echo1 = Ray.createActor(Echo::new, actorCreationOptions1); - final RayObject result1 = echo1.call(Echo::echo, 100); + ActorHandle echo1 = Ray.createActor(Echo::new, actorCreationOptions1); + final ObjectRef result1 = echo1.call(Echo::echo, 100); Assert.assertEquals(100, (int) result1.get()); // This is a case that can't satisfy required resources. @@ -89,9 +89,9 @@ public class ResourcesManagementTest extends BaseTest { ActorCreationOptions actorCreationOptions2 = new ActorCreationOptions.Builder() .setResources(ImmutableMap.of("CPU", 8.0)).createActorCreationOptions(); - RayActor echo2 = + ActorHandle echo2 = Ray.createActor(Echo::new, actorCreationOptions2); - final RayObject result2 = echo2.call(Echo::echo, 100); + final ObjectRef result2 = echo2.call(Echo::echo, 100); WaitResult waitResult = Ray.wait(ImmutableList.of(result2), 1, 1000); Assert.assertEquals(0, waitResult.getReady().size()); diff --git a/java/test/src/main/java/io/ray/api/test/RuntimeContextTest.java b/java/test/src/main/java/io/ray/api/test/RuntimeContextTest.java index 43287967f..b2f4e9abb 100644 --- a/java/test/src/main/java/io/ray/api/test/RuntimeContextTest.java +++ b/java/test/src/main/java/io/ray/api/test/RuntimeContextTest.java @@ -1,7 +1,7 @@ package io.ray.api.test; +import io.ray.api.ActorHandle; import io.ray.api.Ray; -import io.ray.api.RayActor; import io.ray.api.id.ActorId; import io.ray.api.id.JobId; import java.nio.ByteBuffer; @@ -60,7 +60,7 @@ public class RuntimeContextTest extends BaseTest { @Test public void testRuntimeContextInActor() { - RayActor actor = Ray.createActor(RuntimeContextTester::new); + ActorHandle actor = Ray.createActor(RuntimeContextTester::new); Assert.assertEquals("ok", actor.call(RuntimeContextTester::testRuntimeContext, actor.getId()).get()); } diff --git a/java/test/src/main/java/io/ray/api/test/SingleProcessModeTest.java b/java/test/src/main/java/io/ray/api/test/SingleProcessModeTest.java index be7ca78c1..70de2f851 100644 --- a/java/test/src/main/java/io/ray/api/test/SingleProcessModeTest.java +++ b/java/test/src/main/java/io/ray/api/test/SingleProcessModeTest.java @@ -1,8 +1,8 @@ package io.ray.api.test; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; import io.ray.api.TestUtils; import io.ray.api.id.ActorId; import java.util.ArrayList; @@ -31,18 +31,18 @@ public class SingleProcessModeTest extends BaseTest { public void testActorTasksInOneThread() { TestUtils.skipTestUnderClusterMode(); - List> actors = new ArrayList<>(); + List> actors = new ArrayList<>(); Map actorThreadIds = new HashMap<>(); for (int i = 0; i < NUM_ACTOR_INSTANCE; ++i) { - RayActor actor = Ray.createActor(MyActor::new); + ActorHandle actor = Ray.createActor(MyActor::new); actors.add(actor); actorThreadIds.put(actor.getId(), actor.call(MyActor::getThreadId).get()); } - Map>> allResults = new HashMap<>(); + Map>> allResults = new HashMap<>(); for (int i = 0; i < NUM_ACTOR_INSTANCE; ++i) { - final RayActor actor = actors.get(i); - List> thisActorResult = new ArrayList<>(); + final ActorHandle actor = actors.get(i); + List> thisActorResult = new ArrayList<>(); for (int j = 0; j < TIMES_TO_CALL_PER_ACTOR; ++j) { thisActorResult.add(actor.call(MyActor::getThreadId)); } @@ -51,10 +51,10 @@ public class SingleProcessModeTest extends BaseTest { // check result. for (int i = 0; i < NUM_ACTOR_INSTANCE; ++i) { - final RayActor actor = actors.get(i); - final List> thisActorResult = allResults.get(actor.getId()); + final ActorHandle actor = actors.get(i); + final List> thisActorResult = allResults.get(actor.getId()); // assert - for (RayObject threadId : thisActorResult) { + for (ObjectRef threadId : thisActorResult) { Assert.assertEquals(threadId.get(), actorThreadIds.get(actor.getId())); } } diff --git a/java/test/src/main/java/io/ray/api/test/StressTest.java b/java/test/src/main/java/io/ray/api/test/StressTest.java index 2c9c275c5..218a00569 100644 --- a/java/test/src/main/java/io/ray/api/test/StressTest.java +++ b/java/test/src/main/java/io/ray/api/test/StressTest.java @@ -1,9 +1,9 @@ package io.ray.api.test; import com.google.common.collect.ImmutableList; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; import io.ray.api.TestUtils; import io.ray.api.id.ObjectId; import java.util.ArrayList; @@ -38,7 +38,7 @@ public class StressTest extends BaseTest { @Test public void testDependency() { TestUtils.skipTestUnderSingleProcess(); - RayObject x = Ray.call(StressTest::echo, 1); + ObjectRef x = Ray.call(StressTest::echo, 1); for (int i = 0; i < 1000; i++) { x = Ray.call(StressTest::echo, x); } @@ -55,9 +55,9 @@ public class StressTest extends BaseTest { public static class Worker { - private RayActor actor; + private ActorHandle actor; - public Worker(RayActor actor) { + public Worker(ActorHandle actor) { this.actor = actor; } @@ -77,10 +77,10 @@ public class StressTest extends BaseTest { @Test public void testSubmittingManyTasksToOneActor() throws Exception { TestUtils.skipTestUnderSingleProcess(); - RayActor actor = Ray.createActor(Actor::new); + ActorHandle actor = Ray.createActor(Actor::new); List objectIds = new ArrayList<>(); for (int i = 0; i < 10; i++) { - RayActor worker = Ray.createActor(Worker::new, actor); + ActorHandle worker = Ray.createActor(Worker::new, actor); objectIds.add(worker.call(Worker::ping, 100).getId()); } @@ -93,12 +93,12 @@ public class StressTest extends BaseTest { public void testPuttingAndGettingManyObjects() { TestUtils.skipTestUnderSingleProcess(); Integer objectToPut = 1; - List> objects = new ArrayList<>(); + List> objects = new ArrayList<>(); for (int i = 0; i < 100_000; i++) { objects.add(Ray.put(objectToPut)); } - for (RayObject object : objects) { + for (ObjectRef object : objects) { Assert.assertEquals(object.get(), objectToPut); } } diff --git a/java/test/src/main/java/io/ray/api/test/WaitTest.java b/java/test/src/main/java/io/ray/api/test/WaitTest.java index 128fb519e..6d5609a32 100644 --- a/java/test/src/main/java/io/ray/api/test/WaitTest.java +++ b/java/test/src/main/java/io/ray/api/test/WaitTest.java @@ -1,8 +1,8 @@ package io.ray.api.test; import com.google.common.collect.ImmutableList; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayObject; import io.ray.api.TestUtils; import io.ray.api.WaitResult; import java.util.ArrayList; @@ -29,13 +29,13 @@ public class WaitTest extends BaseTest { // Call a task in advance to warm up the cluster to avoid being too slow to start workers. TestUtils.warmUpCluster(); - RayObject obj1 = Ray.call(WaitTest::hi); - RayObject obj2 = Ray.call(WaitTest::delayedHi); + ObjectRef obj1 = Ray.call(WaitTest::hi); + ObjectRef obj2 = Ray.call(WaitTest::delayedHi); - List> waitList = ImmutableList.of(obj1, obj2); + List> waitList = ImmutableList.of(obj1, obj2); WaitResult waitResult = Ray.wait(waitList, 2, 2 * 1000); - List> readyList = waitResult.getReady(); + List> readyList = waitResult.getReady(); Assert.assertEquals(1, waitResult.getReady().size()); Assert.assertEquals(1, waitResult.getUnready().size()); @@ -54,7 +54,7 @@ public class WaitTest extends BaseTest { @Test public void testWaitInWorker() { - RayObject res = Ray.call(WaitTest::waitInWorker); + ObjectRef res = Ray.call(WaitTest::waitInWorker); res.get(); } diff --git a/java/test/src/main/java/io/ray/api/test/WorkerJvmOptionsTest.java b/java/test/src/main/java/io/ray/api/test/WorkerJvmOptionsTest.java index 58b9df662..cd744123f 100644 --- a/java/test/src/main/java/io/ray/api/test/WorkerJvmOptionsTest.java +++ b/java/test/src/main/java/io/ray/api/test/WorkerJvmOptionsTest.java @@ -1,8 +1,8 @@ package io.ray.api.test; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; import io.ray.api.TestUtils; import io.ray.api.options.ActorCreationOptions; import org.testng.Assert; @@ -24,8 +24,8 @@ public class WorkerJvmOptionsTest extends BaseTest { // that raylet can correctly handle dynamic options with whitespaces. .setJvmOptions(" -Dtest.suffix=suffix -Dtest.suffix1=suffix1 ") .createActorCreationOptions(); - RayActor actor = Ray.createActor(Echo::new, options); - RayObject obj = actor.call(Echo::getOptions); + ActorHandle actor = Ray.createActor(Echo::new, options); + ObjectRef obj = actor.call(Echo::getOptions); Assert.assertEquals(obj.get(), "suffix"); } } diff --git a/java/tutorial/src/main/java/io/ray/exercise/Exercise01.java b/java/tutorial/src/main/java/io/ray/exercise/Exercise01.java index b3172e8f6..686063c95 100644 --- a/java/tutorial/src/main/java/io/ray/exercise/Exercise01.java +++ b/java/tutorial/src/main/java/io/ray/exercise/Exercise01.java @@ -1,7 +1,7 @@ package io.ray.exercise; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayObject; import java.io.Serializable; /** @@ -29,8 +29,8 @@ public class Exercise01 implements Serializable { // Use `Ray.init` to initialize the Ray runtime. Ray.init(); // Use `Ray.call` to call a remote function. - RayObject hello = Ray.call(Exercise01::sayHello); - RayObject world = Ray.call(Exercise01::sayWorld); + ObjectRef hello = Ray.call(Exercise01::sayHello); + ObjectRef world = Ray.call(Exercise01::sayWorld); System.out.println("First remote call result:" + hello.get()); System.out.println("Second remote call result:" + world.get()); } catch (Throwable t) { diff --git a/java/tutorial/src/main/java/io/ray/exercise/Exercise02.java b/java/tutorial/src/main/java/io/ray/exercise/Exercise02.java index 752dfaf8a..3789fdd92 100644 --- a/java/tutorial/src/main/java/io/ray/exercise/Exercise02.java +++ b/java/tutorial/src/main/java/io/ray/exercise/Exercise02.java @@ -1,7 +1,7 @@ package io.ray.exercise; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayObject; /** * Execute remote functions in parallel with some dependencies. @@ -28,8 +28,8 @@ public class Exercise02 { } public static String sayHelloWorld() { - RayObject hello = Ray.call(Exercise02::sayHello); - RayObject world = Ray.call(Exercise02::sayWorld); + ObjectRef hello = Ray.call(Exercise02::sayHello); + ObjectRef world = Ray.call(Exercise02::sayWorld); // Pass unfinished results as the parameters to another remote function. return Ray.call(Exercise02::merge, hello, world).get(); } diff --git a/java/tutorial/src/main/java/io/ray/exercise/Exercise03.java b/java/tutorial/src/main/java/io/ray/exercise/Exercise03.java index ff0aee1b0..3b6b37b44 100644 --- a/java/tutorial/src/main/java/io/ray/exercise/Exercise03.java +++ b/java/tutorial/src/main/java/io/ray/exercise/Exercise03.java @@ -1,7 +1,7 @@ package io.ray.exercise; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayObject; /** * Call a remote function from within another remote function. @@ -14,7 +14,7 @@ public class Exercise03 { public static String sayHelloWithWorld() { String ret = "hello"; System.out.println(ret); - RayObject world = Ray.call(Exercise03::sayWorld); + ObjectRef world = Ray.call(Exercise03::sayWorld); return ret + "," + world.get(); } diff --git a/java/tutorial/src/main/java/io/ray/exercise/Exercise04.java b/java/tutorial/src/main/java/io/ray/exercise/Exercise04.java index 084af1bbe..f5d921e75 100644 --- a/java/tutorial/src/main/java/io/ray/exercise/Exercise04.java +++ b/java/tutorial/src/main/java/io/ray/exercise/Exercise04.java @@ -1,8 +1,8 @@ package io.ray.exercise; import com.google.common.collect.ImmutableList; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayObject; import io.ray.api.WaitResult; import java.util.List; @@ -38,7 +38,7 @@ public class Exercise04 { public static void main(String[] args) throws Exception { try { Ray.init(); - List> waitList = ImmutableList.of( + List> waitList = ImmutableList.of( Ray.call(Exercise04::f1), Ray.call(Exercise04::f2), Ray.call(Exercise04::f3) diff --git a/java/tutorial/src/main/java/io/ray/exercise/Exercise05.java b/java/tutorial/src/main/java/io/ray/exercise/Exercise05.java index a3793b0e9..42d038ce1 100644 --- a/java/tutorial/src/main/java/io/ray/exercise/Exercise05.java +++ b/java/tutorial/src/main/java/io/ray/exercise/Exercise05.java @@ -1,8 +1,8 @@ package io.ray.exercise; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; /** * Show usage of actors. @@ -13,11 +13,11 @@ public class Exercise05 { try { Ray.init(); // `Ray.createActor` creates an actor instance. - RayActor adder = Ray.createActor(Adder::new, 0); + ActorHandle adder = Ray.createActor(Adder::new, 0); // Use `Ray.call(actor, parameters)` to call an actor method. - RayObject result1 = adder.call(Adder::add, 1); + ObjectRef result1 = adder.call(Adder::add, 1); System.out.println(result1.get()); - RayObject result2 = adder.call(Adder::add, 10); + ObjectRef result2 = adder.call(Adder::add, 10); System.out.println(result2.get()); } catch (Throwable t) { t.printStackTrace(); diff --git a/src/ray/core_worker/lib/java/io_ray_runtime_actor_NativeRayActor.cc b/src/ray/core_worker/lib/java/io_ray_runtime_actor_NativeActorHandle.cc similarity index 86% rename from src/ray/core_worker/lib/java/io_ray_runtime_actor_NativeRayActor.cc rename to src/ray/core_worker/lib/java/io_ray_runtime_actor_NativeActorHandle.cc index e3064e4d6..d84a9537c 100644 --- a/src/ray/core_worker/lib/java/io_ray_runtime_actor_NativeRayActor.cc +++ b/src/ray/core_worker/lib/java/io_ray_runtime_actor_NativeActorHandle.cc @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "ray/core_worker/lib/java/io_ray_runtime_actor_NativeRayActor.h" +#include "ray/core_worker/lib/java/io_ray_runtime_actor_NativeActorHandle.h" #include #include "ray/common/id.h" #include "ray/core_worker/actor_handle.h" @@ -24,7 +24,7 @@ extern "C" { #endif -JNIEXPORT jint JNICALL Java_io_ray_runtime_actor_NativeRayActor_nativeGetLanguage( +JNIEXPORT jint JNICALL Java_io_ray_runtime_actor_NativeActorHandle_nativeGetLanguage( JNIEnv *env, jclass o, jbyteArray actorId) { auto actor_id = JavaByteArrayToId(env, actorId); ray::ActorHandle *native_actor_handle = nullptr; @@ -35,7 +35,7 @@ JNIEXPORT jint JNICALL Java_io_ray_runtime_actor_NativeRayActor_nativeGetLanguag } JNIEXPORT jobject JNICALL -Java_io_ray_runtime_actor_NativeRayActor_nativeGetActorCreationTaskFunctionDescriptor( +Java_io_ray_runtime_actor_NativeActorHandle_nativeGetActorCreationTaskFunctionDescriptor( JNIEnv *env, jclass o, jbyteArray actorId) { auto actor_id = JavaByteArrayToId(env, actorId); ray::ActorHandle *native_actor_handle = nullptr; @@ -46,7 +46,7 @@ Java_io_ray_runtime_actor_NativeRayActor_nativeGetActorCreationTaskFunctionDescr return NativeRayFunctionDescriptorToJavaStringList(env, function_descriptor); } -JNIEXPORT jbyteArray JNICALL Java_io_ray_runtime_actor_NativeRayActor_nativeSerialize( +JNIEXPORT jbyteArray JNICALL Java_io_ray_runtime_actor_NativeActorHandle_nativeSerialize( JNIEnv *env, jclass o, jbyteArray actorId) { auto actor_id = JavaByteArrayToId(env, actorId); std::string output; @@ -59,7 +59,7 @@ JNIEXPORT jbyteArray JNICALL Java_io_ray_runtime_actor_NativeRayActor_nativeSeri return bytes; } -JNIEXPORT jbyteArray JNICALL Java_io_ray_runtime_actor_NativeRayActor_nativeDeserialize( +JNIEXPORT jbyteArray JNICALL Java_io_ray_runtime_actor_NativeActorHandle_nativeDeserialize( JNIEnv *env, jclass o, jbyteArray data) { auto buffer = JavaByteArrayToNativeBuffer(env, data); RAY_CHECK(buffer->Size() > 0); diff --git a/src/ray/core_worker/lib/java/io_ray_runtime_actor_NativeRayActor.h b/src/ray/core_worker/lib/java/io_ray_runtime_actor_NativeActorHandle.h similarity index 52% rename from src/ray/core_worker/lib/java/io_ray_runtime_actor_NativeRayActor.h rename to src/ray/core_worker/lib/java/io_ray_runtime_actor_NativeActorHandle.h index 0843cc104..ddd248dbe 100644 --- a/src/ray/core_worker/lib/java/io_ray_runtime_actor_NativeRayActor.h +++ b/src/ray/core_worker/lib/java/io_ray_runtime_actor_NativeActorHandle.h @@ -14,45 +14,44 @@ /* DO NOT EDIT THIS FILE - it is machine generated */ #include -/* Header for class io_ray_runtime_actor_NativeRayActor */ +/* Header for class io_ray_runtime_actor_NativeActorHandle */ -#ifndef _Included_io_ray_runtime_actor_NativeRayActor -#define _Included_io_ray_runtime_actor_NativeRayActor +#ifndef _Included_io_ray_runtime_actor_NativeActorHandle +#define _Included_io_ray_runtime_actor_NativeActorHandle #ifdef __cplusplus extern "C" { #endif /* - * Class: io_ray_runtime_actor_NativeRayActor + * Class: io_ray_runtime_actor_NativeActorHandle * Method: nativeGetLanguage * Signature: ([B)I */ -JNIEXPORT jint JNICALL -Java_io_ray_runtime_actor_NativeRayActor_nativeGetLanguage(JNIEnv *, jclass, jbyteArray); +JNIEXPORT jint JNICALL Java_io_ray_runtime_actor_NativeActorHandle_nativeGetLanguage + (JNIEnv *, jclass, jbyteArray); /* - * Class: io_ray_runtime_actor_NativeRayActor + * Class: io_ray_runtime_actor_NativeActorHandle * Method: nativeGetActorCreationTaskFunctionDescriptor * Signature: ([B)Ljava/util/List; */ -JNIEXPORT jobject JNICALL -Java_io_ray_runtime_actor_NativeRayActor_nativeGetActorCreationTaskFunctionDescriptor( - JNIEnv *, jclass, jbyteArray); +JNIEXPORT jobject JNICALL Java_io_ray_runtime_actor_NativeActorHandle_nativeGetActorCreationTaskFunctionDescriptor + (JNIEnv *, jclass, jbyteArray); /* - * Class: io_ray_runtime_actor_NativeRayActor + * Class: io_ray_runtime_actor_NativeActorHandle * Method: nativeSerialize * Signature: ([B)[B */ -JNIEXPORT jbyteArray JNICALL -Java_io_ray_runtime_actor_NativeRayActor_nativeSerialize(JNIEnv *, jclass, jbyteArray); +JNIEXPORT jbyteArray JNICALL Java_io_ray_runtime_actor_NativeActorHandle_nativeSerialize + (JNIEnv *, jclass, jbyteArray); /* - * Class: io_ray_runtime_actor_NativeRayActor + * Class: io_ray_runtime_actor_NativeActorHandle * Method: nativeDeserialize * Signature: ([B)[B */ -JNIEXPORT jbyteArray JNICALL -Java_io_ray_runtime_actor_NativeRayActor_nativeDeserialize(JNIEnv *, jclass, jbyteArray); +JNIEXPORT jbyteArray JNICALL Java_io_ray_runtime_actor_NativeActorHandle_nativeDeserialize + (JNIEnv *, jclass, jbyteArray); #ifdef __cplusplus } diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/collector/OutputCollector.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/collector/OutputCollector.java index 566dd15b8..090d91123 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/collector/OutputCollector.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/collector/OutputCollector.java @@ -1,7 +1,7 @@ package io.ray.streaming.runtime.core.collector; -import io.ray.api.BaseActor; -import io.ray.api.RayPyActor; +import io.ray.api.BaseActorHandle; +import io.ray.api.PyActorHandle; import io.ray.streaming.api.Language; import io.ray.streaming.api.collector.Collector; import io.ray.streaming.api.partition.Partition; @@ -21,7 +21,7 @@ public class OutputCollector implements Collector { private final DataWriter writer; private final ChannelID[] outputQueues; - private final Collection targetActors; + private final Collection targetActors; private final Language[] targetLanguages; private final Partition partition; private final Serializer javaSerializer = new JavaSerializer(); @@ -29,13 +29,13 @@ public class OutputCollector implements Collector { public OutputCollector(DataWriter writer, Collection outputQueueIds, - Collection targetActors, + Collection targetActors, Partition partition) { this.writer = writer; this.outputQueues = outputQueueIds.stream().map(ChannelID::from).toArray(ChannelID[]::new); this.targetActors = targetActors; this.targetLanguages = targetActors.stream() - .map(actor -> actor instanceof RayPyActor ? Language.PYTHON : Language.JAVA) + .map(actor -> actor instanceof PyActorHandle ? Language.PYTHON : Language.JAVA) .toArray(Language[]::new); this.partition = partition; LOGGER.debug("OutputCollector constructed, outputQueueIds:{}, partition:{}.", diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/ExecutionGraph.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/ExecutionGraph.java index 7e1006883..55b2a101f 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/ExecutionGraph.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/ExecutionGraph.java @@ -1,6 +1,6 @@ package io.ray.streaming.runtime.core.graph; -import io.ray.api.BaseActor; +import io.ray.api.BaseActorHandle; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; @@ -17,19 +17,19 @@ import java.util.stream.Collectors; public class ExecutionGraph implements Serializable { private long buildTime; private List executionNodeList; - private List sourceWorkers = new ArrayList<>(); - private List sinkWorkers = new ArrayList<>(); + private List sourceWorkers = new ArrayList<>(); + private List sinkWorkers = new ArrayList<>(); public ExecutionGraph(List executionNodes) { this.executionNodeList = executionNodes; for (ExecutionNode executionNode : executionNodeList) { if (executionNode.getNodeType() == ExecutionNode.NodeType.SOURCE) { - List actors = executionNode.getExecutionTasks().stream() + List actors = executionNode.getExecutionTasks().stream() .map(ExecutionTask::getWorker).collect(Collectors.toList()); sourceWorkers.addAll(actors); } if (executionNode.getNodeType() == ExecutionNode.NodeType.SINK) { - List actors = executionNode.getExecutionTasks().stream() + List actors = executionNode.getExecutionTasks().stream() .map(ExecutionTask::getWorker).collect(Collectors.toList()); sinkWorkers.addAll(actors); } @@ -37,11 +37,11 @@ public class ExecutionGraph implements Serializable { buildTime = System.currentTimeMillis(); } - public List getSourceWorkers() { + public List getSourceWorkers() { return sourceWorkers; } - public List getSinkWorkers() { + public List getSinkWorkers() { return sinkWorkers; } @@ -80,10 +80,10 @@ public class ExecutionGraph implements Serializable { throw new RuntimeException("Task " + taskId + " does not exist!"); } - public Map getTaskId2WorkerByNodeId(int nodeId) { + public Map getTaskId2WorkerByNodeId(int nodeId) { for (ExecutionNode executionNode : executionNodeList) { if (executionNode.getNodeId() == nodeId) { - Map taskId2Worker = new HashMap<>(); + Map taskId2Worker = new HashMap<>(); for (ExecutionTask executionTask : executionNode.getExecutionTasks()) { taskId2Worker.put(executionTask.getTaskId(), executionTask.getWorker()); } diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/ExecutionTask.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/ExecutionTask.java index 766119605..36502fca8 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/ExecutionTask.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/ExecutionTask.java @@ -1,6 +1,6 @@ package io.ray.streaming.runtime.core.graph; -import io.ray.api.BaseActor; +import io.ray.api.BaseActorHandle; import java.io.Serializable; /** @@ -11,9 +11,9 @@ import java.io.Serializable; public class ExecutionTask implements Serializable { private int taskId; private int taskIndex; - private BaseActor worker; + private BaseActorHandle worker; - public ExecutionTask(int taskId, int taskIndex, BaseActor worker) { + public ExecutionTask(int taskId, int taskIndex, BaseActorHandle worker) { this.taskId = taskId; this.taskIndex = taskIndex; this.worker = worker; @@ -35,11 +35,11 @@ public class ExecutionTask implements Serializable { this.taskIndex = taskIndex; } - public BaseActor getWorker() { + public BaseActorHandle getWorker() { return worker; } - public void setWorker(BaseActor worker) { + public void setWorker(BaseActorHandle worker) { this.worker = worker; } } diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/executiongraph/ExecutionGraph.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/executiongraph/ExecutionGraph.java index 652934d81..cebc4dad4 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/executiongraph/ExecutionGraph.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/executiongraph/ExecutionGraph.java @@ -1,6 +1,6 @@ package io.ray.streaming.runtime.core.graph.executiongraph; -import io.ray.api.RayActor; +import io.ray.api.ActorHandle; import io.ray.streaming.runtime.worker.JobWorker; import java.io.Serializable; import java.util.ArrayList; @@ -143,7 +143,7 @@ public class ExecutionGraph implements Serializable { * * @return actor list */ - public List> getAllActors() { + public List> getAllActors() { return getActorsFromJobVertices(getExecutionJobVertexList()); } @@ -152,7 +152,7 @@ public class ExecutionGraph implements Serializable { * * @return actor list */ - public List> getSourceActors() { + public List> getSourceActors() { List executionJobVertices = getExecutionJobVertexList().stream() .filter(ExecutionJobVertex::isSourceVertex) .collect(Collectors.toList()); @@ -165,7 +165,7 @@ public class ExecutionGraph implements Serializable { * * @return actor list */ - public List> getNonSourceActors() { + public List> getNonSourceActors() { List executionJobVertices = getExecutionJobVertexList().stream() .filter(executionJobVertex -> executionJobVertex.isTransformationVertex() || executionJobVertex.isSinkVertex()) @@ -179,7 +179,7 @@ public class ExecutionGraph implements Serializable { * * @return actor list */ - public List> getSinkActors() { + public List> getSinkActors() { List executionJobVertices = getExecutionJobVertexList().stream() .filter(ExecutionJobVertex::isSinkVertex) .collect(Collectors.toList()); @@ -193,7 +193,7 @@ public class ExecutionGraph implements Serializable { * @param executionJobVertices specified job vertices * @return actor list */ - public List> getActorsFromJobVertices( + public List> getActorsFromJobVertices( List executionJobVertices) { return executionJobVertices.stream() .map(ExecutionJobVertex::getExecutionVertices) diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/executiongraph/ExecutionJobVertex.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/executiongraph/ExecutionJobVertex.java index c471facac..60e16434f 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/executiongraph/ExecutionJobVertex.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/executiongraph/ExecutionJobVertex.java @@ -2,7 +2,7 @@ package io.ray.streaming.runtime.core.graph.executiongraph; import com.google.common.base.MoreObjects; import com.google.common.base.Preconditions; -import io.ray.api.RayActor; +import io.ray.api.ActorHandle; import io.ray.streaming.api.Language; import io.ray.streaming.jobgraph.JobVertex; import io.ray.streaming.jobgraph.VertexType; @@ -77,8 +77,8 @@ public class ExecutionJobVertex { return executionVertices; } - public Map> getExecutionVertexWorkers() { - Map> executionVertexWorkersMap = new HashMap<>(); + public Map> getExecutionVertexWorkers() { + Map> executionVertexWorkersMap = new HashMap<>(); Preconditions.checkArgument( executionVertices != null && !executionVertices.isEmpty(), diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/executiongraph/ExecutionVertex.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/executiongraph/ExecutionVertex.java index 21616399b..ed11dfeaf 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/executiongraph/ExecutionVertex.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/graph/executiongraph/ExecutionVertex.java @@ -1,7 +1,7 @@ package io.ray.streaming.runtime.core.graph.executiongraph; import com.google.common.base.MoreObjects; -import io.ray.api.RayActor; +import io.ray.api.ActorHandle; import io.ray.api.id.ActorId; import io.ray.streaming.api.Language; import io.ray.streaming.jobgraph.VertexType; @@ -49,7 +49,7 @@ public class ExecutionVertex implements Serializable { private ExecutionVertexState state = ExecutionVertexState.TO_ADD; private ContainerID containerId; - private RayActor workerActor; + private ActorHandle workerActor; private List inputEdges = new ArrayList<>(); private List outputEdges = new ArrayList<>(); @@ -124,7 +124,7 @@ public class ExecutionVertex implements Serializable { return state == ExecutionVertexState.TO_DEL; } - public RayActor getWorkerActor() { + public ActorHandle getWorkerActor() { return workerActor; } @@ -132,7 +132,7 @@ public class ExecutionVertex implements Serializable { return workerActor.getId(); } - public void setWorkerActor(RayActor workerActor) { + public void setWorkerActor(ActorHandle workerActor) { this.workerActor = workerActor; } diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/master/JobMaster.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/master/JobMaster.java index 7d3924493..8c45b3966 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/master/JobMaster.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/master/JobMaster.java @@ -1,7 +1,7 @@ package io.ray.streaming.runtime.master; import com.google.common.base.Preconditions; -import io.ray.api.RayActor; +import io.ray.api.ActorHandle; import io.ray.streaming.jobgraph.JobGraph; import io.ray.streaming.runtime.config.StreamingConfig; import io.ray.streaming.runtime.config.StreamingMasterConfig; @@ -30,7 +30,7 @@ public class JobMaster { private GraphManager graphManager; private StreamingMasterConfig conf; - private RayActor jobMasterActor; + private ActorHandle jobMasterActor; public JobMaster(Map confMap) { LOG.info("Creating job master with conf: {}.", confMap); @@ -76,7 +76,7 @@ public class JobMaster { * @param jobGraph logical plan * @return submit result */ - public boolean submitJob(RayActor jobMasterActor, JobGraph jobGraph) { + public boolean submitJob(ActorHandle jobMasterActor, JobGraph jobGraph) { LOG.info("Begin submitting job using logical plan: {}.", jobGraph); this.jobMasterActor = jobMasterActor; @@ -101,7 +101,7 @@ public class JobMaster { return true; } - public RayActor getJobMasterActor() { + public ActorHandle getJobMasterActor() { return jobMasterActor; } diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/master/scheduler/JobSchedulerImpl.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/master/scheduler/JobSchedulerImpl.java index dc341518c..85178c3ce 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/master/scheduler/JobSchedulerImpl.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/master/scheduler/JobSchedulerImpl.java @@ -1,6 +1,6 @@ package io.ray.streaming.runtime.master.scheduler; -import io.ray.api.RayActor; +import io.ray.api.ActorHandle; import io.ray.streaming.runtime.config.StreamingConfig; import io.ray.streaming.runtime.core.graph.executiongraph.ExecutionGraph; import io.ray.streaming.runtime.core.graph.executiongraph.ExecutionVertex; @@ -153,7 +153,7 @@ public class JobSchedulerImpl implements JobScheduler { */ protected Map buildWorkersContext( ExecutionGraph executionGraph) { - RayActor masterActor = jobMaster.getJobMasterActor(); + ActorHandle masterActor = jobMaster.getJobMasterActor(); // build workers' context Map needRegistryVertexToContextMap = new HashMap<>(); @@ -166,7 +166,7 @@ public class JobSchedulerImpl implements JobScheduler { private JobWorkerContext buildJobWorkerContext( ExecutionVertex executionVertex, - RayActor masterActor) { + ActorHandle masterActor) { // create worker context JobWorkerContext ctx = new JobWorkerContext( diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/master/scheduler/controller/WorkerLifecycleController.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/master/scheduler/controller/WorkerLifecycleController.java index 8f47cca9b..c503b3d0a 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/master/scheduler/controller/WorkerLifecycleController.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/master/scheduler/controller/WorkerLifecycleController.java @@ -1,8 +1,8 @@ package io.ray.streaming.runtime.master.scheduler.controller; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; import io.ray.api.WaitResult; import io.ray.api.id.ActorId; import io.ray.api.options.ActorCreationOptions; @@ -50,7 +50,7 @@ public class WorkerLifecycleController { .setMaxRestarts(-1) .createActorCreationOptions(); - RayActor actor = null; + ActorHandle actor = null; // TODO (datayjz): ray create actor if (null == actor) { @@ -77,18 +77,18 @@ public class WorkerLifecycleController { LOG.info("Begin initiating workers: {}.", vertexToContextMap); long startTime = System.currentTimeMillis(); - Map, ActorId> rayObjects = new HashMap<>(); + Map, ActorId> rayObjects = new HashMap<>(); vertexToContextMap.entrySet().forEach((entry -> { ExecutionVertex vertex = entry.getKey(); rayObjects.put(RemoteCallWorker.initWorker(vertex.getWorkerActor(), entry.getValue()), vertex.getWorkerActorId()); })); - List> rayObjectList = new ArrayList<>(rayObjects.keySet()); + List> objectRefList = new ArrayList<>(rayObjects.keySet()); LOG.info("Waiting for workers' initialization."); - WaitResult result = Ray.wait(rayObjectList, rayObjectList.size(), timeout); - if (result.getReady().size() != rayObjectList.size()) { + WaitResult result = Ray.wait(objectRefList, objectRefList.size(), timeout); + if (result.getReady().size() != objectRefList.size()) { LOG.error("Initializing workers timeout[{} ms].", timeout); return false; } @@ -108,18 +108,18 @@ public class WorkerLifecycleController { public boolean startWorkers(ExecutionGraph executionGraph, int timeout) { LOG.info("Begin starting workers."); long startTime = System.currentTimeMillis(); - List> rayObjects = new ArrayList<>(); + List> objectRefs = new ArrayList<>(); // start source actors 1st executionGraph.getSourceActors() - .forEach(actor -> rayObjects.add(RemoteCallWorker.startWorker(actor))); + .forEach(actor -> objectRefs.add(RemoteCallWorker.startWorker(actor))); // then start non-source actors executionGraph.getNonSourceActors() - .forEach(actor -> rayObjects.add(RemoteCallWorker.startWorker(actor))); + .forEach(actor -> objectRefs.add(RemoteCallWorker.startWorker(actor))); - WaitResult result = Ray.wait(rayObjects, rayObjects.size(), timeout); - if (result.getReady().size() != rayObjects.size()) { + WaitResult result = Ray.wait(objectRefs, objectRefs.size(), timeout); + if (result.getReady().size() != objectRefs.size()) { LOG.error("Starting workers timeout[{} ms].", timeout); return false; } @@ -139,7 +139,7 @@ public class WorkerLifecycleController { } private boolean destroyWorker(ExecutionVertex executionVertex) { - RayActor rayActor = executionVertex.getWorkerActor(); + ActorHandle rayActor = executionVertex.getWorkerActor(); LOG.info("Begin destroying worker[vertex={}, actor={}].", executionVertex.getVertexName(), rayActor.getId()); diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/python/GraphPbBuilder.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/python/GraphPbBuilder.java index 4a39eadab..34dc68a9b 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/python/GraphPbBuilder.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/python/GraphPbBuilder.java @@ -1,7 +1,7 @@ package io.ray.streaming.runtime.python; import com.google.protobuf.ByteString; -import io.ray.runtime.actor.NativeRayActor; +import io.ray.runtime.actor.NativeActorHandle; import io.ray.streaming.api.function.Function; import io.ray.streaming.api.partition.Partition; import io.ray.streaming.operator.Operator; @@ -43,7 +43,7 @@ public class GraphPbBuilder { for (ExecutionTask task : node.getExecutionTasks()) { RemoteCall.ExecutionGraph.ExecutionTask.Builder taskBuilder = RemoteCall.ExecutionGraph.ExecutionTask.newBuilder(); - byte[] serializedActorHandle = ((NativeRayActor) task.getWorker()).toBytes(); + byte[] serializedActorHandle = ((NativeActorHandle) task.getWorker()).toBytes(); taskBuilder .setTaskId(task.getTaskId()) .setTaskIndex(task.getTaskIndex()) diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/rpc/RemoteCallWorker.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/rpc/RemoteCallWorker.java index de02ad057..683a2c0d2 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/rpc/RemoteCallWorker.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/rpc/RemoteCallWorker.java @@ -1,7 +1,7 @@ package io.ray.streaming.runtime.rpc; -import io.ray.api.RayActor; -import io.ray.api.RayObject; +import io.ray.api.ActorHandle; +import io.ray.api.ObjectRef; import io.ray.streaming.runtime.master.JobMaster; import io.ray.streaming.runtime.worker.JobWorker; import io.ray.streaming.runtime.worker.context.JobWorkerContext; @@ -23,9 +23,9 @@ public class RemoteCallWorker { * @param ctx JobWorker's context * @return init result */ - public static RayObject initWorker(RayActor actor, JobWorkerContext ctx) { + public static ObjectRef initWorker(ActorHandle actor, JobWorkerContext ctx) { LOG.info("Call worker to init, actor: {}, context: {}.", actor.getId(), ctx); - RayObject result = null; + ObjectRef result = null; // TODO (datayjz): ray call worker to initiate @@ -39,9 +39,9 @@ public class RemoteCallWorker { * @param actor target JobWorker actor * @return start result */ - public static RayObject startWorker(RayActor actor) { + public static ObjectRef startWorker(ActorHandle actor) { LOG.info("Call worker to start, actor: {}.", actor.getId()); - RayObject result = null; + ObjectRef result = null; // TODO (datayjz): ray call worker to start @@ -55,7 +55,7 @@ public class RemoteCallWorker { * @param actor target JobWorker actor * @return destroy result */ - public static Boolean shutdownWithoutReconstruction(RayActor actor) { + public static Boolean shutdownWithoutReconstruction(ActorHandle actor) { LOG.info("Call worker to shutdown without reconstruction, actor is {}.", actor.getId()); Boolean result = false; diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/schedule/JobSchedulerImpl.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/schedule/JobSchedulerImpl.java index deaaf74b3..d081bb2bf 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/schedule/JobSchedulerImpl.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/schedule/JobSchedulerImpl.java @@ -1,10 +1,10 @@ package io.ray.streaming.runtime.schedule; -import io.ray.api.BaseActor; +import io.ray.api.ActorHandle; +import io.ray.api.BaseActorHandle; +import io.ray.api.ObjectRef; +import io.ray.api.PyActorHandle; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayObject; -import io.ray.api.RayPyActor; import io.ray.api.function.PyActorMethod; import io.ray.streaming.api.Language; import io.ray.streaming.jobgraph.JobGraph; @@ -50,22 +50,22 @@ public class JobSchedulerImpl implements JobScheduler { if (hasPythonNode) { executionGraphPb = new GraphPbBuilder().buildExecutionGraphPb(executionGraph); } - List> waits = new ArrayList<>(); + List> waits = new ArrayList<>(); for (ExecutionNode executionNode : executionNodes) { List executionTasks = executionNode.getExecutionTasks(); for (ExecutionTask executionTask : executionTasks) { int taskId = executionTask.getTaskId(); - BaseActor worker = executionTask.getWorker(); + BaseActorHandle worker = executionTask.getWorker(); switch (executionNode.getLanguage()) { case JAVA: - RayActor jobWorker = (RayActor) worker; + ActorHandle jobWorker = (ActorHandle) worker; waits.add(jobWorker.call(JobWorker::init, new WorkerContext(taskId, executionGraph, jobConfig))); break; case PYTHON: byte[] workerContextBytes = buildPythonWorkerContext( taskId, executionGraphPb, jobConfig); - waits.add(((RayPyActor)worker).call(new PyActorMethod("init", Object.class), + waits.add(((PyActorHandle)worker).call(new PyActorMethod("init", Object.class), workerContextBytes)); break; default: diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/schedule/TaskAssignerImpl.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/schedule/TaskAssignerImpl.java index 1b68f9dde..ca8ad5cdb 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/schedule/TaskAssignerImpl.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/schedule/TaskAssignerImpl.java @@ -1,9 +1,9 @@ package io.ray.streaming.runtime.schedule; -import io.ray.api.BaseActor; +import io.ray.api.ActorHandle; +import io.ray.api.BaseActorHandle; +import io.ray.api.PyActorHandle; import io.ray.api.Ray; -import io.ray.api.RayActor; -import io.ray.api.RayPyActor; import io.ray.api.function.PyActorClass; import io.ray.streaming.jobgraph.JobEdge; import io.ray.streaming.jobgraph.JobGraph; @@ -64,16 +64,16 @@ public class TaskAssignerImpl implements TaskAssigner { return new ExecutionGraph(executionNodes); } - private BaseActor createWorker(JobVertex jobVertex) { + private BaseActorHandle createWorker(JobVertex jobVertex) { switch (jobVertex.getLanguage()) { case PYTHON: { - RayPyActor worker = Ray.createActor( + PyActorHandle worker = Ray.createActor( new PyActorClass("ray.streaming.runtime.worker", "JobWorker")); LOG.info("Created python worker {}", worker); return worker; } case JAVA: { - RayActor worker = Ray.createActor(JobWorker::new); + ActorHandle worker = Ray.createActor(JobWorker::new); LOG.info("Created java worker {}", worker); return worker; } diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/transfer/ChannelCreationParametersBuilder.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/transfer/ChannelCreationParametersBuilder.java index 8506560d9..486d3aaaf 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/transfer/ChannelCreationParametersBuilder.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/transfer/ChannelCreationParametersBuilder.java @@ -1,16 +1,15 @@ package io.ray.streaming.runtime.transfer; import com.google.common.base.Preconditions; -import io.ray.api.BaseActor; +import io.ray.api.BaseActorHandle; import io.ray.api.id.ActorId; -import io.ray.runtime.actor.LocalModeRayActor; -import io.ray.runtime.actor.NativeRayJavaActor; -import io.ray.runtime.actor.NativeRayPyActor; +import io.ray.runtime.actor.LocalModeActorHandle; +import io.ray.runtime.actor.NativeJavaActorHandle; +import io.ray.runtime.actor.NativePyActorHandle; import io.ray.runtime.functionmanager.FunctionDescriptor; import io.ray.runtime.functionmanager.JavaFunctionDescriptor; import io.ray.runtime.functionmanager.PyFunctionDescriptor; import io.ray.streaming.runtime.worker.JobWorker; - import java.util.ArrayList; import java.util.List; import java.util.Map; @@ -107,34 +106,35 @@ public class ChannelCreationParametersBuilder { javaWriterSyncFuncDesc = syncFunc; } - public ChannelCreationParametersBuilder buildInputQueueParameters(List queues, - Map actors) { + public ChannelCreationParametersBuilder buildInputQueueParameters( + List queues, + Map actors) { return buildParameters(queues, actors, javaWriterAsyncFuncDesc, javaWriterSyncFuncDesc, pyWriterAsyncFunctionDesc, pyWriterSyncFunctionDesc); } public ChannelCreationParametersBuilder buildOutputQueueParameters(List queues, - Map actors) { + Map actors) { return buildParameters(queues, actors, javaReaderAsyncFuncDesc, javaReaderSyncFuncDesc, pyReaderAsyncFunctionDesc, pyReaderSyncFunctionDesc); } private ChannelCreationParametersBuilder buildParameters(List queues, - Map actors, + Map actors, JavaFunctionDescriptor javaAsyncFunctionDesc, JavaFunctionDescriptor javaSyncFunctionDesc, PyFunctionDescriptor pyAsyncFunctionDesc, PyFunctionDescriptor pySyncFunctionDesc ) { parameters = new ArrayList<>(queues.size()); for (String queue : queues) { Parameter parameter = new Parameter(); - BaseActor actor = actors.get(queue); + BaseActorHandle actor = actors.get(queue); Preconditions.checkArgument(actor != null); parameter.setActorId(actor.getId()); /// LocalModeRayActor used in single-process mode. - if (actor instanceof NativeRayJavaActor || actor instanceof LocalModeRayActor) { + if (actor instanceof NativeJavaActorHandle || actor instanceof LocalModeActorHandle) { parameter.setAsyncFunctionDescriptor(javaAsyncFunctionDesc); parameter.setSyncFunctionDescriptor(javaSyncFunctionDesc); - } else if (actor instanceof NativeRayPyActor) { + } else if (actor instanceof NativePyActorHandle) { parameter.setAsyncFunctionDescriptor(pyAsyncFunctionDesc); parameter.setSyncFunctionDescriptor(pySyncFunctionDesc); } else { diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/transfer/DataReader.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/transfer/DataReader.java index b69396b43..eedc0f9b4 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/transfer/DataReader.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/transfer/DataReader.java @@ -1,7 +1,7 @@ package io.ray.streaming.runtime.transfer; import com.google.common.base.Preconditions; -import io.ray.api.BaseActor; +import io.ray.api.BaseActorHandle; import io.ray.streaming.runtime.util.Platform; import io.ray.streaming.util.Config; import java.nio.ByteBuffer; @@ -24,7 +24,7 @@ public class DataReader { private Queue buf = new LinkedList<>(); public DataReader(List inputChannels, - Map fromActors, + Map fromActors, Map conf) { Preconditions.checkArgument(inputChannels.size() > 0); Preconditions.checkArgument(inputChannels.size() == fromActors.size()); diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/transfer/DataWriter.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/transfer/DataWriter.java index 39678aebb..acd59f2ce 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/transfer/DataWriter.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/transfer/DataWriter.java @@ -1,7 +1,7 @@ package io.ray.streaming.runtime.transfer; import com.google.common.base.Preconditions; -import io.ray.api.BaseActor; +import io.ray.api.BaseActorHandle; import io.ray.streaming.runtime.util.Platform; import io.ray.streaming.util.Config; import java.nio.ByteBuffer; @@ -33,7 +33,7 @@ public class DataWriter { * @param conf configuration */ public DataWriter(List outputChannels, - Map toActors, + Map toActors, Map conf) { Preconditions.checkArgument(!outputChannels.isEmpty()); Preconditions.checkArgument(outputChannels.size() == toActors.size()); diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/worker/context/JobWorkerContext.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/worker/context/JobWorkerContext.java index c046a9b53..27000cbfe 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/worker/context/JobWorkerContext.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/worker/context/JobWorkerContext.java @@ -1,7 +1,7 @@ package io.ray.streaming.runtime.worker.context; import com.google.common.base.MoreObjects; -import io.ray.api.RayActor; +import io.ray.api.ActorHandle; import io.ray.api.id.ActorId; import io.ray.streaming.runtime.core.graph.executiongraph.ExecutionVertex; import io.ray.streaming.runtime.master.JobMaster; @@ -20,7 +20,7 @@ public class JobWorkerContext implements Serializable { /** * JobMaster actor. */ - private RayActor master; + private ActorHandle master; /** * Worker's vertex info. @@ -29,7 +29,7 @@ public class JobWorkerContext implements Serializable { public JobWorkerContext( ActorId workerId, - RayActor master, + ActorHandle master, ExecutionVertex executionVertex) { this.workerId = workerId; this.master = master; @@ -40,7 +40,7 @@ public class JobWorkerContext implements Serializable { return workerId; } - public RayActor getMaster() { + public ActorHandle getMaster() { return master; } diff --git a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/worker/tasks/StreamTask.java b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/worker/tasks/StreamTask.java index ca2e6aa99..651614970 100644 --- a/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/worker/tasks/StreamTask.java +++ b/streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/worker/tasks/StreamTask.java @@ -1,6 +1,6 @@ package io.ray.streaming.runtime.worker.tasks; -import io.ray.api.BaseActor; +import io.ray.api.BaseActorHandle; import io.ray.api.Ray; import io.ray.streaming.api.collector.Collector; import io.ray.streaming.api.context.RuntimeContext; @@ -64,8 +64,8 @@ public abstract class StreamTask implements Runnable { List outputEdges = executionNode.getOutputEdges(); List collectors = new ArrayList<>(); for (ExecutionEdge edge : outputEdges) { - Map outputActors = new HashMap<>(); - Map taskId2Worker = executionGraph + Map outputActors = new HashMap<>(); + Map taskId2Worker = executionGraph .getTaskId2WorkerByNodeId(edge.getTargetNodeId()); taskId2Worker.forEach((targetTaskId, targetActor) -> { String queueName = ChannelID.genIdStr(taskId, targetTaskId, executionGraph.getBuildTime()); @@ -87,9 +87,9 @@ public abstract class StreamTask implements Runnable { // consumer List inputEdges = executionNode.getInputsEdges(); - Map inputActors = new HashMap<>(); + Map inputActors = new HashMap<>(); for (ExecutionEdge edge : inputEdges) { - Map taskId2Worker = executionGraph + Map taskId2Worker = executionGraph .getTaskId2WorkerByNodeId(edge.getSrcNodeId()); taskId2Worker.forEach((srcTaskId, srcActor) -> { String queueName = ChannelID.genIdStr(srcTaskId, taskId, executionGraph.getBuildTime()); diff --git a/streaming/java/streaming-runtime/src/test/java/io/ray/streaming/runtime/streamingqueue/StreamingQueueTest.java b/streaming/java/streaming-runtime/src/test/java/io/ray/streaming/runtime/streamingqueue/StreamingQueueTest.java index 381900332..aefd39458 100644 --- a/streaming/java/streaming-runtime/src/test/java/io/ray/streaming/runtime/streamingqueue/StreamingQueueTest.java +++ b/streaming/java/streaming-runtime/src/test/java/io/ray/streaming/runtime/streamingqueue/StreamingQueueTest.java @@ -2,7 +2,7 @@ package io.ray.streaming.runtime.streamingqueue; import com.google.common.collect.ImmutableMap; import io.ray.api.Ray; -import io.ray.api.RayActor; +import io.ray.api.ActorHandle; import io.ray.api.options.ActorCreationOptions; import io.ray.api.options.ActorCreationOptions.Builder; import io.ray.runtime.config.RayConfig; @@ -94,9 +94,9 @@ public class StreamingQueueTest extends BaseUnitTest implements Serializable { ActorCreationOptions.Builder builder = new Builder(); - RayActor writerActor = Ray.createActor(WriterWorker::new, "writer", + ActorHandle writerActor = Ray.createActor(WriterWorker::new, "writer", builder.createActorCreationOptions()); - RayActor readerActor = Ray.createActor(ReaderWorker::new, "reader", + ActorHandle readerActor = Ray.createActor(ReaderWorker::new, "reader", builder.createActorCreationOptions()); LOGGER.info("call getName on writerActor: {}", diff --git a/streaming/java/streaming-runtime/src/test/java/io/ray/streaming/runtime/streamingqueue/Worker.java b/streaming/java/streaming-runtime/src/test/java/io/ray/streaming/runtime/streamingqueue/Worker.java index ab95f6ab0..4571f045c 100644 --- a/streaming/java/streaming-runtime/src/test/java/io/ray/streaming/runtime/streamingqueue/Worker.java +++ b/streaming/java/streaming-runtime/src/test/java/io/ray/streaming/runtime/streamingqueue/Worker.java @@ -1,8 +1,8 @@ package io.ray.streaming.runtime.streamingqueue; -import io.ray.api.BaseActor; +import io.ray.api.BaseActorHandle; import io.ray.api.Ray; -import io.ray.api.RayActor; +import io.ray.api.ActorHandle; import io.ray.runtime.functionmanager.JavaFunctionDescriptor; import io.ray.streaming.runtime.transfer.ChannelID; import io.ray.streaming.runtime.transfer.ChannelCreationParametersBuilder; @@ -52,10 +52,10 @@ class ReaderWorker extends Worker { private String name = null; private List inputQueueList = null; - Map fromActors = new HashMap<>(); + Map fromActors = new HashMap<>(); private DataReader dataReader = null; private long handler = 0; - private RayActor peerActor = null; + private ActorHandle peerActor = null; private int msgCount = 0; private int totalMsg = 0; @@ -77,7 +77,7 @@ class ReaderWorker extends Worker { return "testRayCall"; } - public boolean init(List inputQueueList, RayActor peer, int msgCount) { + public boolean init(List inputQueueList, ActorHandle peer, int msgCount) { this.inputQueueList = inputQueueList; this.peerActor = peer; @@ -171,9 +171,9 @@ class WriterWorker extends Worker { private String name = null; private List outputQueueList = null; - Map toActors = new HashMap<>(); + Map toActors = new HashMap<>(); DataWriter dataWriter = null; - RayActor peerActor = null; + ActorHandle peerActor = null; int msgCount = 0; public WriterWorker(String name) { @@ -188,13 +188,13 @@ class WriterWorker extends Worker { return name; } - public String testCallReader(RayActor readerActor) { + public String testCallReader(ActorHandle readerActor) { String name = readerActor.call(ReaderWorker::getName).get(); LOGGER.info("testCallReader: {}", name); return name; } - public boolean init(List outputQueueList, RayActor peer, int msgCount) { + public boolean init(List outputQueueList, ActorHandle peer, int msgCount) { this.outputQueueList = outputQueueList; this.peerActor = peer;