public interface HadoopConfigurable
extends org.apache.hadoop.conf.Configurable
Configurable
interface to offer better serialization
support for customizable Iceberg objects such as FileIO
.
If an object is serialized and needs to use Hadoop configuration, it is recommended for the object to implement this interface so that a serializable supplier of configuration can be provided instead of an actual Hadoop configuration which is not serializable.
Modifier and Type | Method and Description |
---|---|
void |
serializeConfWith(java.util.function.Function<org.apache.hadoop.conf.Configuration,SerializableSupplier<org.apache.hadoop.conf.Configuration>> confSerializer)
Take a function that serializes Hadoop configuration into a supplier.
|
void serializeConfWith(java.util.function.Function<org.apache.hadoop.conf.Configuration,SerializableSupplier<org.apache.hadoop.conf.Configuration>> confSerializer)
confSerializer
- A function that takes Hadoop configuration and returns a serializable
supplier of it.