Class SparkRunnerKryoRegistrator
java.lang.Object
org.apache.beam.runners.spark.coders.SparkRunnerKryoRegistrator
- All Implemented Interfaces:
org.apache.spark.serializer.KryoRegistrator
public class SparkRunnerKryoRegistrator
extends Object
implements org.apache.spark.serializer.KryoRegistrator
Custom
KryoRegistrator
s for Beam's Spark runner needs and registering used class in spark
translation for better serialization performance. This is not the default serialization
mechanism.
To use it you must enable the Kryo based serializer using spark.serializer
with value
org.apache.spark.serializer.KryoSerializer
and register this class via Spark
spark.kryo.registrator
configuration.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SparkRunnerKryoRegistrator
public SparkRunnerKryoRegistrator()
-
-
Method Details
-
registerClasses
public void registerClasses(com.esotericsoftware.kryo.Kryo kryo) - Specified by:
registerClasses
in interfaceorg.apache.spark.serializer.KryoRegistrator
-