|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcascading.operation.BaseOperation<Pair<SimpleDateFormat,Tuple>>
cascading.operation.text.DateOperation
cascading.operation.text.DateParser
public class DateParser
Class DateParser is used to convert a text date string to a timestamp, the number of milliseconds
since January 1, 1970, 00:00:00 GMT, using the SimpleDateFormat
syntax.
Calendar
fields can be stored in unique fields for a given TimeZone
and Locale
.
Field Summary | |
---|---|
static String |
FIELD_NAME
Field FIELD_NAME |
Fields inherited from class cascading.operation.text.DateOperation |
---|
locale, zone |
Fields inherited from class cascading.operation.BaseOperation |
---|
fieldDeclaration, numArgs, trace |
Fields inherited from interface cascading.operation.Operation |
---|
ANY |
Constructor Summary | |
---|---|
DateParser(Fields fieldDeclaration,
int[] calendarFields,
String dateFormatString)
Constructor DateParser creates a new DateParser instance, where calendarFields is an int[] of Calendar field
values. |
|
DateParser(Fields fieldDeclaration,
int[] calendarFields,
TimeZone zone,
Locale locale,
String dateFormatString)
Constructor DateParser creates a new DateParser instance, where calendarFields is an int[] of Calendar field
values. |
|
DateParser(Fields fieldDeclaration,
String dateFormatString)
Constructor DateParser creates a new DateParser instance. |
|
DateParser(Fields fieldDeclaration,
TimeZone zone,
Locale locale,
String dateFormatString)
Constructor DateParser creates a new DateParser instance, where zone and locale are passed to the internal SimpleDateFormat instance. |
|
DateParser(String dateFormatString)
Constructor DateParser creates a new DateParser instance that creates a simple long time stamp of the parsed date. |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
int |
hashCode()
|
void |
operate(FlowProcess flowProcess,
FunctionCall<Pair<SimpleDateFormat,Tuple>> functionCall)
Method operate provides the implementation of this Function. |
Methods inherited from class cascading.operation.text.DateOperation |
---|
getCalendar, getDateFormat, getDateFormatString, prepare |
Methods inherited from class cascading.operation.BaseOperation |
---|
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface cascading.operation.Operation |
---|
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe, prepare |
Field Detail |
---|
public static final String FIELD_NAME
Constructor Detail |
---|
@ConstructorProperties(value="dateFormatString") public DateParser(String dateFormatString)
dateFormatString
- of type String@ConstructorProperties(value={"fieldDeclaration","dateFormatString"}) public DateParser(Fields fieldDeclaration, String dateFormatString)
fieldDeclaration
- of type FieldsdateFormatString
- of type String@ConstructorProperties(value={"fieldDeclaration","calendarFields","dateFormatString"}) public DateParser(Fields fieldDeclaration, int[] calendarFields, String dateFormatString)
Calendar
field
values. See Calendar.get(int)
.
fieldDeclaration
- of type FieldscalendarFields
- of type int[]dateFormatString
- of type String@ConstructorProperties(value={"fieldDeclaration","zone","locale","dateFormatString"}) public DateParser(Fields fieldDeclaration, TimeZone zone, Locale locale, String dateFormatString)
SimpleDateFormat
instance.
fieldDeclaration
- of type Fieldszone
- of type TimeZonelocale
- of type LocaledateFormatString
- of type String@ConstructorProperties(value={"fieldDeclaration","calendarFields","zone","locale","dateFormatString"}) public DateParser(Fields fieldDeclaration, int[] calendarFields, TimeZone zone, Locale locale, String dateFormatString)
Calendar
field
values. See Calendar.get(int)
. The TimeZone
and/or Locale
may also be set.
fieldDeclaration
- of type FieldscalendarFields
- of type int[]zone
- of type TimeZonelocale
- of type LocaledateFormatString
- of type StringMethod Detail |
---|
public void operate(FlowProcess flowProcess, FunctionCall<Pair<SimpleDateFormat,Tuple>> functionCall)
Function
operate
in interface Function<Pair<SimpleDateFormat,Tuple>>
flowProcess
- of type FlowProcessfunctionCall
- of type FunctionCallpublic boolean equals(Object object)
equals
in class DateOperation
public int hashCode()
hashCode
in class DateOperation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |