|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.hadoop.store.strategy.naming.AbstractFileNamingStrategy
public abstract class AbstractFileNamingStrategy
Base class for FileNamingStrategy
implementations. This class
also implements Ordered
interface to be useful with
ChainedFileNamingStrategy
and OrderedComposite
.
Field Summary |
---|
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
AbstractFileNamingStrategy()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.data.hadoop.store.strategy.naming.FileNamingStrategy |
---|
reset, resolve |
Constructor Detail |
---|
public AbstractFileNamingStrategy()
Method Detail |
---|
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
Ordered.getOrder()
public void setCodecInfo(CodecInfo codecInfo)
FileNamingStrategy
setCodecInfo
in interface FileNamingStrategy
codecInfo
- the new codec infopublic 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 setOrder(int order)
order
- the new orderOrdered
public CodecInfo getCodecInfo()
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |