mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 12:37:14 +08:00
[Java] Rename group id and package name. (#7864)
* Initial * Change streaming's * Fix * Fix * Fix org_ray * Fix cpp file name * Fix streaming * Fix * Fix * Fix testlistening * Fix missing sth in python * Fix * Fix * Fix SPI * Fix * Fix complation * Fix * Fix CI * Fix checkstyle Fix checkstyle * Fix streaming tests * Fix streaming CI * Fix streaming checkstyle. * Fix build * Fix bazel dep * Fix * Fix ray checkstyle * Fix streaming checkstyle * Fix bazel checkstyle
This commit is contained in:
@@ -11,7 +11,7 @@ class StreamingContext:
|
||||
"""
|
||||
Main entry point for ray streaming functionality.
|
||||
A StreamingContext is also a wrapper of java
|
||||
`org.ray.streaming.api.context.StreamingContext`
|
||||
`io.ray.streaming.api.context.StreamingContext`
|
||||
"""
|
||||
|
||||
class Builder:
|
||||
|
||||
@@ -68,7 +68,7 @@ class DataStream(Stream):
|
||||
"""
|
||||
Represents a stream of data which applies a transformation executed by
|
||||
python. It's also a wrapper of java
|
||||
`org.ray.streaming.python.stream.PythonDataStream`
|
||||
`io.ray.streaming.python.stream.PythonDataStream`
|
||||
"""
|
||||
|
||||
def __init__(self, input_stream, j_stream, streaming_context=None):
|
||||
@@ -220,7 +220,7 @@ class DataStream(Stream):
|
||||
|
||||
class KeyDataStream(Stream):
|
||||
"""Represents a DataStream returned by a key-by operation.
|
||||
Wrapper of java org.ray.streaming.python.stream.PythonKeyDataStream
|
||||
Wrapper of java io.ray.streaming.python.stream.PythonKeyDataStream
|
||||
"""
|
||||
|
||||
def __init__(self, input_stream, j_stream):
|
||||
@@ -254,7 +254,7 @@ class KeyDataStream(Stream):
|
||||
|
||||
class StreamSource(DataStream):
|
||||
"""Represents a source of the DataStream.
|
||||
Wrapper of java org.ray.streaming.python.stream.PythonStreamSource
|
||||
Wrapper of java io.ray.streaming.python.stream.PythonStreamSource
|
||||
"""
|
||||
|
||||
def __init__(self, j_stream, streaming_context, source_func):
|
||||
@@ -277,7 +277,7 @@ class StreamSource(DataStream):
|
||||
|
||||
class StreamSink(Stream):
|
||||
"""Represents a sink of the DataStream.
|
||||
Wrapper of java org.ray.streaming.python.stream.PythonStreamSink
|
||||
Wrapper of java io.ray.streaming.python.stream.PythonStreamSink
|
||||
"""
|
||||
|
||||
def __init__(self, input_stream, j_stream, func):
|
||||
|
||||
@@ -275,7 +275,7 @@ def load_function(descriptor_func_bytes: bytes):
|
||||
Deserialize `descriptor_func_bytes` to get function info, then
|
||||
get or load streaming function.
|
||||
Note that this function must be kept in sync with
|
||||
`org.ray.streaming.runtime.python.GraphPbBuilder.serializeFunction`
|
||||
`io.ray.streaming.runtime.python.GraphPbBuilder.serializeFunction`
|
||||
|
||||
Args:
|
||||
descriptor_func_bytes: serialized function info
|
||||
|
||||
@@ -88,7 +88,7 @@ def load_partition(descriptor_partition_bytes: bytes):
|
||||
Deserialize `descriptor_partition_bytes` to get partition info, then
|
||||
get or load partition function.
|
||||
Note that this function must be kept in sync with
|
||||
`org.ray.streaming.runtime.python.GraphPbBuilder.serializePartition`
|
||||
`io.ray.streaming.runtime.python.GraphPbBuilder.serializePartition`
|
||||
|
||||
Args:
|
||||
descriptor_partition_bytes: serialized partition info
|
||||
|
||||
@@ -10,7 +10,7 @@ class GatewayClient:
|
||||
"""GatewayClient is used to interact with `PythonGateway` java actor"""
|
||||
|
||||
_PYTHON_GATEWAY_CLASSNAME = \
|
||||
b"org.ray.streaming.runtime.python.PythonGateway"
|
||||
b"io.ray.streaming.runtime.python.PythonGateway"
|
||||
|
||||
def __init__(self):
|
||||
self._python_gateway_actor = ray.java_actor_class(
|
||||
|
||||
Reference in New Issue
Block a user