Package org.apache.iceberg.util
Class SerializationUtil
java.lang.Object
org.apache.iceberg.util.SerializationUtil
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> TdeserializeFromBase64(String base64) static <T> TdeserializeFromBytes(byte[] bytes) static StringserializeToBase64(Object obj) static byte[]serializeToBytes(Object obj) Serialize an object to bytes.static byte[]serializeToBytes(Object obj, Function<org.apache.hadoop.conf.Configuration, SerializableSupplier<org.apache.hadoop.conf.Configuration>> confSerializer) Serialize an object to bytes.
- 
Method Details- 
serializeToBytesSerialize an object to bytes. If the object implementsHadoopConfigurable, its Hadoop configuration will be serialized into aSerializableConfiguration.- Parameters:
- obj- object to serialize
- Returns:
- serialized bytes
 
- 
serializeToBytespublic static byte[] serializeToBytes(Object obj, Function<org.apache.hadoop.conf.Configuration, SerializableSupplier<org.apache.hadoop.conf.Configuration>> confSerializer) Serialize an object to bytes. If the object implementsHadoopConfigurable, the confSerializer will be used to serialize Hadoop configuration used by the object.- Parameters:
- obj- object to serialize
- confSerializer- serializer for the Hadoop configuration
- Returns:
- serialized bytes
 
- 
deserializeFromBytespublic static <T> T deserializeFromBytes(byte[] bytes) 
- 
serializeToBase64
- 
deserializeFromBase64
 
-