T - the type for the version objects. Must be comparable and serializable.public interface DataFileVersionStrategy<T extends Comparable<T> & Serializable>
| Modifier and Type | Interface and Description |
|---|---|
static class |
DataFileVersionStrategy.Characteristic
Characteristics a
DataFileVersionStrategy may have. |
static interface |
DataFileVersionStrategy.DataFileVersionFactory<T extends Comparable<T> & Serializable>
A Factory for
DataFileVersionStrategys. |
| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_FILE_VERSION_STRATEGY_KEY |
static String |
DEFAULT_DATA_FILE_VERSION_STRATEGY |
| Modifier and Type | Method and Description |
|---|---|
Set<DataFileVersionStrategy.Characteristic> |
applicableCharacteristics() |
T |
getVersion(org.apache.hadoop.fs.Path path)
Get the version of a path.
|
default boolean |
hasCharacteristic(DataFileVersionStrategy.Characteristic characteristic) |
static DataFileVersionStrategy |
instantiateDataFileVersionStrategy(org.apache.hadoop.fs.FileSystem fs,
com.typesafe.config.Config config)
Instantiate a
DataFileVersionStrategy according to input configuration. |
boolean |
setDefaultVersion(org.apache.hadoop.fs.Path path)
Set the version of a path to a value automatically set by the versioning system.
|
boolean |
setVersion(org.apache.hadoop.fs.Path path,
T version)
Set the version of a path to a specific version (generally replicated from another path).
|
static final String DATA_FILE_VERSION_STRATEGY_KEY
static final String DEFAULT_DATA_FILE_VERSION_STRATEGY
static DataFileVersionStrategy instantiateDataFileVersionStrategy(org.apache.hadoop.fs.FileSystem fs, com.typesafe.config.Config config) throws IOException
DataFileVersionStrategy according to input configuration.IOExceptionT getVersion(org.apache.hadoop.fs.Path path) throws IOException
IOExceptionboolean setVersion(org.apache.hadoop.fs.Path path,
T version)
throws IOException
IOException - if the version is settable but could not be set successfully.boolean setDefaultVersion(org.apache.hadoop.fs.Path path)
throws IOException
IOException - if the version is settable but could not be set successfully.Set<DataFileVersionStrategy.Characteristic> applicableCharacteristics()
DataFileVersionStrategy satisfies.default boolean hasCharacteristic(DataFileVersionStrategy.Characteristic characteristic)