|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.data.hadoop.store.strategy.naming.ChainedFileNamingStrategy
public class ChainedFileNamingStrategy
A FileNamingStrategy
chaining other strategies.
Constructor Summary | |
---|---|
ChainedFileNamingStrategy()
Instantiates a new chained rollover strategy. |
|
ChainedFileNamingStrategy(java.util.List<? extends FileNamingStrategy> strategies)
Instantiates a new chained rollover strategy. |
Method Summary | |
---|---|
java.util.List<? extends FileNamingStrategy> |
getStrategies()
Gets the strategies. |
org.apache.hadoop.fs.Path |
init(org.apache.hadoop.fs.Path path)
Initialises a starting state of a strategy. |
void |
register(FileNamingStrategy strategy)
Register a new strategy. |
void |
reset()
Resets the strategy. |
org.apache.hadoop.fs.Path |
resolve(org.apache.hadoop.fs.Path path)
Resolve a current filename. |
void |
setCodecInfo(CodecInfo codecInfo)
Sets the codec info. |
void |
setStrategies(java.util.List<? extends FileNamingStrategy> strategies)
Sets the list of strategies. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChainedFileNamingStrategy()
public ChainedFileNamingStrategy(java.util.List<? extends FileNamingStrategy> strategies)
strategies
- the strategiesMethod Detail |
---|
public org.apache.hadoop.fs.Path resolve(org.apache.hadoop.fs.Path path)
FileNamingStrategy
resolve
in interface FileNamingStrategy
public void reset()
FileNamingStrategy
reset
in interface FileNamingStrategy
public org.apache.hadoop.fs.Path init(org.apache.hadoop.fs.Path path)
FileNamingStrategy
Path
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 FileNamingStrategy
path
- the path
public void setCodecInfo(CodecInfo codecInfo)
FileNamingStrategy
setCodecInfo
in interface FileNamingStrategy
codecInfo
- the new codec infopublic void setStrategies(java.util.List<? extends FileNamingStrategy> strategies)
strategies
- the new strategiespublic void register(FileNamingStrategy strategy)
strategy
- the strategypublic java.util.List<? extends FileNamingStrategy> getStrategies()
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |