public abstract class AbstractFileNamingStrategy extends java.lang.Object implements FileNamingStrategy, org.springframework.core.Ordered
FileNamingStrategy implementations. This class
also implements Ordered interface to be useful with
ChainedFileNamingStrategy and OrderedComposite.| Constructor and Description |
|---|
AbstractFileNamingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
CodecInfo |
getCodecInfo()
Gets the codec info.
|
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 |
setCodecInfo(CodecInfo codecInfo)
Sets the codec info.
|
void |
setOrder(int order)
Sets the order.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreset, resolvepublic int getOrder()
getOrder in interface org.springframework.core.OrderedOrdered.getOrder()public void setCodecInfo(CodecInfo codecInfo)
FileNamingStrategysetCodecInfo in interface FileNamingStrategycodecInfo - the new codec infopublic 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 FileNamingStrategypath - the pathpublic void setOrder(int order)
order - the new orderOrderedpublic CodecInfo getCodecInfo()