public interface FileNamingStrategy extends FileNamingStrategyFactory<FileNamingStrategy>
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.fs.Path |
init(org.apache.hadoop.fs.Path path)
Initialises a starting state of a strategy.
|
void |
next()
This method should be called to prepare next filename in case
strategy doesn't know how to do it automatically.
|
void |
reset()
Resets the strategy to its original state.
|
org.apache.hadoop.fs.Path |
resolve(org.apache.hadoop.fs.Path path)
Resolve a current file path denoted by this strategy.
|
void |
setCodecInfo(CodecInfo codecInfo)
Sets the codec info.
|
createInstance
org.apache.hadoop.fs.Path resolve(org.apache.hadoop.fs.Path path)
path
- the pathvoid next()
void reset()
org.apache.hadoop.fs.Path init(org.apache.hadoop.fs.Path path)
Path
and
remove its 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.
path
- the pathvoid setCodecInfo(CodecInfo codecInfo)
codecInfo
- the new codec info