public class DateParser extends DateOperation implements Function<Pair<SimpleDateFormat,Tuple>>
SimpleDateFormat
syntax.
If given, individual Calendar
fields can be stored in unique fields for a given TimeZone
and Locale
.Modifier and Type | Field and Description |
---|---|
static String |
FIELD_NAME
Field FIELD_NAME
|
locale, zone
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
int |
hashCode() |
void |
operate(FlowProcess flowProcess,
FunctionCall<Pair<SimpleDateFormat,Tuple>> functionCall)
Method operate provides the implementation of this Function.
|
getCalendar, getDateFormat, getDateFormatString, prepare
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe, prepare
public static final String FIELD_NAME
@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 Stringpublic 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
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.