|
|||||||||
| 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(List<? extends FileNamingStrategy> strategies)
Instantiates a new chained rollover strategy. |
|
| Method Summary | |
|---|---|
List<? extends FileNamingStrategy> |
getStrategies()
Gets the strategies. |
Path |
init(Path path)
Initialises a starting state of a strategy. |
void |
register(FileNamingStrategy strategy)
Register a new strategy. |
void |
reset()
Resets the strategy. |
Path |
resolve(Path path)
Resolve a current filename. |
void |
setCodecInfo(CodecInfo codecInfo)
Sets the codec info. |
void |
setStrategies(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(List<? extends FileNamingStrategy> strategies)
strategies - the strategies| Method Detail |
|---|
public Path resolve(Path path)
FileNamingStrategy
resolve in interface FileNamingStrategypublic void reset()
FileNamingStrategy
reset in interface FileNamingStrategypublic Path init(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 path
public void setCodecInfo(CodecInfo codecInfo)
FileNamingStrategy
setCodecInfo in interface FileNamingStrategycodecInfo - the new codec infopublic void setStrategies(List<? extends FileNamingStrategy> strategies)
strategies - the new strategiespublic void register(FileNamingStrategy strategy)
strategy - the strategypublic List<? extends FileNamingStrategy> getStrategies()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||