Class ReceiverBuilder<X,T extends org.apache.spark.streaming.receiver.Receiver<X>>
java.lang.Object
org.apache.beam.sdk.io.sparkreceiver.ReceiverBuilder<X,T>
- All Implemented Interfaces:
Serializable
public class ReceiverBuilder<X,T extends org.apache.spark.streaming.receiver.Receiver<X>>
extends Object
implements Serializable
Class for building an instance for
Receiver
that uses Apache Beam mechanisms instead of
Spark environment.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
withConstructorArgs
(Object... args) Method for specifying constructor arguments for correspondingsparkReceiverClass
.
-
Constructor Details
-
ReceiverBuilder
-
-
Method Details
-
withConstructorArgs
Method for specifying constructor arguments for correspondingsparkReceiverClass
. -
build
- Returns:
- Proxy for given that doesn't use Spark environment and uses Apache Beam mechanisms instead.
- Throws:
InvocationTargetException
InstantiationException
IllegalAccessException
-
getSparkReceiverClass
-