public class ModTimeDataFileVersionStrategy extends Object implements DataFileVersionStrategy<Long>
DataFileVersionStrategy that uses modtime as the file version.
This is the default implementation and does data comparisons purely based on modification time.| Modifier and Type | Class and Description |
|---|---|
static class |
ModTimeDataFileVersionStrategy.Factory |
DataFileVersionStrategy.Characteristic, DataFileVersionStrategy.DataFileVersionFactory<T extends Comparable<T> & Serializable>DATA_FILE_VERSION_STRATEGY_KEY, DEFAULT_DATA_FILE_VERSION_STRATEGY| Constructor and Description |
|---|
ModTimeDataFileVersionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
Set<DataFileVersionStrategy.Characteristic> |
applicableCharacteristics() |
Long |
getVersion(org.apache.hadoop.fs.Path path)
Get the version of a path.
|
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,
Long version)
Set the version of a path to a specific version (generally replicated from another path).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasCharacteristic, instantiateDataFileVersionStrategypublic Long getVersion(org.apache.hadoop.fs.Path path) throws IOException
DataFileVersionStrategygetVersion in interface DataFileVersionStrategy<Long>IOExceptionpublic boolean setVersion(org.apache.hadoop.fs.Path path,
Long version)
DataFileVersionStrategysetVersion in interface DataFileVersionStrategy<Long>public boolean setDefaultVersion(org.apache.hadoop.fs.Path path)
DataFileVersionStrategysetDefaultVersion in interface DataFileVersionStrategy<Long>public Set<DataFileVersionStrategy.Characteristic> applicableCharacteristics()
applicableCharacteristics in interface DataFileVersionStrategy<Long>DataFileVersionStrategy satisfies.