|
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.util.PathUtils
public abstract class PathUtils
Utility for generating date-based paths.
Relies on the Formatter
style.
Formatter
Constructor Summary | |
---|---|
PathUtils()
|
Method Summary | |
---|---|
static java.lang.String |
format(java.lang.String pathFormat)
Generates a timed-based path, based on the current date, using the format of Formatter . |
static java.lang.String |
format(java.lang.String pathFormat,
boolean appendUUID)
Generates a timed-based path, based on the current date, using the format of Formatter . |
static java.lang.String |
format(java.lang.String pathFormat,
boolean appendUUID,
java.util.Date date)
Generates a timed-based path, based on the given date, using the format of Formatter . |
static java.lang.String |
format(java.lang.String pathFormat,
java.util.Date date)
Generates a timed-based path, based on the given date, using the format of Formatter . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PathUtils()
Method Detail |
---|
public static java.lang.String format(java.lang.String pathFormat, boolean appendUUID)
Formatter
.
pathFormat
- Formatted path, the variable in the path will be
replaced by Date
.
http://docs.oracle.com/javase/6/docs/api/java/util/Formatter.html#dtappendUUID
- Whether a UUID is appended to the generated path
public static java.lang.String format(java.lang.String pathFormat)
Formatter
.
pathFormat
- Path format, the variable in the path will be
replaced by Date
.
public static java.lang.String format(java.lang.String pathFormat, java.util.Date date)
Formatter
.
pathFormat
- Path format, the variable in the path will be
replaced by Date
.
public static java.lang.String format(java.lang.String pathFormat, boolean appendUUID, java.util.Date date)
Formatter
.
pathFormat
- Path format, the variable in the path will be
replaced by Date
.appendUUID
- whether or not to append a UUID at the enddate
- date to use
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |