|
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.AbstractFileNamingStrategy
org.springframework.data.hadoop.store.strategy.naming.CodecFileNamingStrategy
public class CodecFileNamingStrategy
A FileNamingStrategy which adds suffix based on known codec.
| Field Summary |
|---|
| Fields inherited from interface org.springframework.core.Ordered |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Constructor Summary | |
|---|---|
CodecFileNamingStrategy()
Instantiates a new codec file naming strategy. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.springframework.data.hadoop.store.strategy.naming.AbstractFileNamingStrategy |
|---|
getCodecInfo, setCodecInfo, setOrder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CodecFileNamingStrategy()
| Method Detail |
|---|
public int getOrder()
AbstractFileNamingStrategy
getOrder in interface org.springframework.core.OrderedgetOrder in class AbstractFileNamingStrategyOrdered.getOrder()public org.apache.hadoop.fs.Path resolve(org.apache.hadoop.fs.Path path)
FileNamingStrategy
public void reset()
FileNamingStrategy
public 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
|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||