Class SparkConfToHadoopConfigurationConverter

  • All Implemented Interfaces:
    java.io.Serializable, java.util.function.Function<org.apache.spark.SparkConf,​org.apache.hadoop.conf.Configuration>, org.openstreetmap.atlas.utilities.conversion.Converter<org.apache.spark.SparkConf,​org.apache.hadoop.conf.Configuration>, org.openstreetmap.atlas.utilities.conversion.TwoWayConverter<org.apache.spark.SparkConf,​org.apache.hadoop.conf.Configuration>

    public class SparkConfToHadoopConfigurationConverter
    extends java.lang.Object
    implements org.openstreetmap.atlas.utilities.conversion.TwoWayConverter<org.apache.spark.SparkConf,​org.apache.hadoop.conf.Configuration>, java.io.Serializable
    Convert back and forth between Spark's configuration and Hadoop's configuration.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.spark.SparkConf backwardConvert​(org.apache.hadoop.conf.Configuration configuration)  
      org.apache.hadoop.conf.Configuration convert​(org.apache.spark.SparkConf conf)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.openstreetmap.atlas.utilities.conversion.Converter

        apply
      • Methods inherited from interface java.util.function.Function

        andThen, compose
      • Methods inherited from interface org.openstreetmap.atlas.utilities.conversion.TwoWayConverter

        revert
    • Constructor Detail

      • SparkConfToHadoopConfigurationConverter

        public SparkConfToHadoopConfigurationConverter()
    • Method Detail

      • backwardConvert

        public org.apache.spark.SparkConf backwardConvert​(org.apache.hadoop.conf.Configuration configuration)
        Specified by:
        backwardConvert in interface org.openstreetmap.atlas.utilities.conversion.TwoWayConverter<org.apache.spark.SparkConf,​org.apache.hadoop.conf.Configuration>
      • convert

        public org.apache.hadoop.conf.Configuration convert​(org.apache.spark.SparkConf conf)
        Specified by:
        convert in interface org.openstreetmap.atlas.utilities.conversion.Converter<org.apache.spark.SparkConf,​org.apache.hadoop.conf.Configuration>