public final class SerializationUtil extends Object
TODO: Refactor elephant-bird so that we can depend on utils like this without extra baggage.
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
readObjectFromConfAsBase64(String key,
org.apache.hadoop.conf.Configuration conf)
Reads an object (that was written using
writeObjectToConfAsBase64(java.lang.String, java.lang.Object, org.apache.hadoop.conf.Configuration)) from a configuration |
static <T> T |
readObjectFromConfAsBase64(String key,
ParquetConfiguration conf)
Reads an object (that was written using
writeObjectToConfAsBase64(java.lang.String, java.lang.Object, org.apache.hadoop.conf.Configuration)) from a configuration |
static void |
writeObjectToConfAsBase64(String key,
Object obj,
org.apache.hadoop.conf.Configuration conf)
Writes an object to a configuration.
|
public static void writeObjectToConfAsBase64(String key, Object obj, org.apache.hadoop.conf.Configuration conf) throws IOException
key - for the configurationobj - the object to writeconf - to read fromIOException - if there is an error while writingpublic static <T> T readObjectFromConfAsBase64(String key, org.apache.hadoop.conf.Configuration conf) throws IOException
writeObjectToConfAsBase64(java.lang.String, java.lang.Object, org.apache.hadoop.conf.Configuration)) from a configurationT - the Java type of the deserialized objectkey - for the configurationconf - to read fromIOException - if there is an error while readingpublic static <T> T readObjectFromConfAsBase64(String key, ParquetConfiguration conf) throws IOException
writeObjectToConfAsBase64(java.lang.String, java.lang.Object, org.apache.hadoop.conf.Configuration)) from a configurationT - the Java type of the deserialized objectkey - for the configurationconf - to read fromIOException - if there is an error while readingCopyright © 2023 The Apache Software Foundation. All rights reserved.