Class SerializationUtil


  • public final class SerializationUtil
    extends Object
    Serialization utils copied from: https://github.com/kevinweil/elephant-bird/blob/master/core/src/main/java/com/twitter/elephantbird/util/HadoopUtils.java TODO: Refactor elephant-bird so that we can depend on utils like this without extra baggage.
    • Method Detail

      • writeObjectToConfAsBase64

        public static void writeObjectToConfAsBase64​(String key,
                                                     Object obj,
                                                     org.apache.hadoop.conf.Configuration conf)
                                              throws IOException
        Writes an object to a configuration.
        Parameters:
        key - for the configuration
        obj - the object to write
        conf - to read from
        Throws:
        IOException - if there is an error while writing