org.apache.spark.serializer.KryoRegistrator Java Examples

The following examples show how to use org.apache.spark.serializer.KryoRegistrator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SparkGraphComputer.java    From tinkerpop with Apache License 2.0 2 votes vote down vote up
/**
 * Specifies the {@code org.apache.spark.serializer.KryoRegistrator} to use to install additional types. By
 * default this value is set to TinkerPop's {@link GryoRegistrator}.
 */
public SparkGraphComputer sparkKryoRegistrator(final Class<? extends KryoRegistrator> registrator) {
    return configure(Constants.SPARK_KRYO_REGISTRATOR, registrator.getCanonicalName());
}