public class CodecFileNamingStrategy extends AbstractFileNamingStrategy
FileNamingStrategy which adds suffix based on known codec.| Constructor and Description |
|---|
CodecFileNamingStrategy()
Instantiates a new codec file naming strategy.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder()
Implementation should override this method to define a chaining order.
|
org.apache.hadoop.fs.Path |
init(org.apache.hadoop.fs.Path path)
Initialises a starting state of a strategy.
|
void |
reset()
Resets the strategy.
|
org.apache.hadoop.fs.Path |
resolve(org.apache.hadoop.fs.Path path)
Resolve a current filename.
|
getCodecInfo, setCodecInfo, setOrderpublic CodecFileNamingStrategy()
public int getOrder()
AbstractFileNamingStrategygetOrder in interface org.springframework.core.OrderedgetOrder in class AbstractFileNamingStrategyOrdered.getOrder()public org.apache.hadoop.fs.Path resolve(org.apache.hadoop.fs.Path path)
FileNamingStrategypublic void reset()
FileNamingStrategypublic org.apache.hadoop.fs.Path init(org.apache.hadoop.fs.Path path)
FileNamingStrategyPath and
remove it's own handled part if possible. Returned Path
is then passed into next strategy for it to able to
do its own initialisation logic.
Path passed to this method may be null indicating
that no further processing should be done or simply we don't
have information about the initialised path.
init in interface FileNamingStrategyinit in class AbstractFileNamingStrategypath - the path