|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcascading.operation.BaseOperation
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 | |
|---|---|
void |
operate(FlowProcess flowProcess,
FunctionCall functionCall)
Method operate provides the implementation of this Function. |
| Methods inherited from class cascading.operation.text.DateOperation |
|---|
getCalendar, getDateFormat |
| Methods inherited from class cascading.operation.BaseOperation |
|---|
cleanup, getFieldDeclaration, getNumArgs, getTrace, prepare, printOperationInternal, toString, toStringInternal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface cascading.operation.Operation |
|---|
cleanup, getFieldDeclaration, getNumArgs, prepare |
| Field Detail |
|---|
public static final String FIELD_NAME
| Constructor Detail |
|---|
public DateParser(String dateFormatString)
dateFormatString - of type String
public DateParser(Fields fieldDeclaration,
String dateFormatString)
fieldDeclaration - of type FieldsdateFormatString - of type String
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
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
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 String| Method Detail |
|---|
public void operate(FlowProcess flowProcess,
FunctionCall functionCall)
Function
operate in interface FunctionflowProcess - of type FlowProcessfunctionCall - of type FunctionCallFunction.operate(cascading.flow.FlowProcess,cascading.operation.FunctionCall)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||