io.ray.streaming.python.PythonPartition Maven / Gradle / Ivy
package io.ray.streaming.python;
import com.google.common.base.Preconditions;
import io.ray.streaming.api.partition.Partition;
import java.util.StringJoiner;
import org.apache.commons.lang3.StringUtils;
/**
* Represents a python partition function.
*
* Python worker can create a partition object using information in this PythonPartition.
*
*
If this object is constructed from serialized python partition, python worker can deserialize
* it to create python partition directly. If this object is constructed from moduleName and
* className/functionName, python worker will use `importlib` to load python partition function.
*
*
*/
public class PythonPartition implements Partition
© 2015 - 2025 Weber Informatics LLC | Privacy Policy