public class DateFormatter extends DateOperation implements Function<Pair<SimpleDateFormat,Tuple>>
SimpleDateFormat
syntax.
Note the timezone data is given to the SimpleDateFormat, not the internal Calendar instance which interprets
the 'timestamp' value as it is assumed the timestamp is already in GMT.Modifier and Type | Field and Description |
---|---|
static String |
FIELD_NAME
Field FIELD_NAME
|
locale, zone
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
DateFormatter(Fields fieldDeclaration,
String dateFormatString)
Constructor DateParser creates a new DateParser instance.
|
DateFormatter(Fields fieldDeclaration,
String dateFormatString,
TimeZone zone)
Constructor DateFormatter creates a new DateFormatter instance.
|
DateFormatter(Fields fieldDeclaration,
String dateFormatString,
TimeZone zone,
Locale locale)
Constructor DateFormatter creates a new DateFormatter instance.
|
DateFormatter(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 |
---|---|
void |
operate(FlowProcess flowProcess,
FunctionCall<Pair<SimpleDateFormat,Tuple>> functionCall)
Method operate provides the implementation of this Function.
|
equals, getCalendar, getDateFormat, getDateFormatString, hashCode, 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 DateFormatter(String dateFormatString)
dateFormatString
- of type String@ConstructorProperties(value={"fieldDeclaration","dateFormatString"}) public DateFormatter(Fields fieldDeclaration, String dateFormatString)
fieldDeclaration
- of type FieldsdateFormatString
- of type String@ConstructorProperties(value={"fieldDeclaration","dateFormatString","zone"}) public DateFormatter(Fields fieldDeclaration, String dateFormatString, TimeZone zone)
fieldDeclaration
- of type FieldsdateFormatString
- of type Stringzone
- of type TimeZone@ConstructorProperties(value={"fieldDeclaration","dateFormatString","zone","locale"}) public DateFormatter(Fields fieldDeclaration, String dateFormatString, TimeZone zone, Locale locale)
fieldDeclaration
- of type FieldsdateFormatString
- of type Stringzone
- of type TimeZonelocale
- of type Localepublic void operate(FlowProcess flowProcess, FunctionCall<Pair<SimpleDateFormat,Tuple>> functionCall)
Function
operate
in interface Function<Pair<SimpleDateFormat,Tuple>>
flowProcess
- of type FlowProcessfunctionCall
- of type FunctionCallCopyright © 2007-2015 Concurrent, Inc. All Rights Reserved.