public class DateOperation extends BaseOperation<Pair<SimpleDateFormat,Tuple>>
DateFormatter
and DateParser
.Modifier and Type | Field and Description |
---|---|
protected Locale |
locale
Field locale
|
protected TimeZone |
zone
Field zone
|
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
DateOperation(int numArgs,
Fields fieldDeclaration,
String dateFormatString)
Constructor DateOperation creates a new DateOperation instance.
|
DateOperation(int numArgs,
Fields fieldDeclaration,
String dateFormatString,
TimeZone zone,
Locale locale)
Constructor DateOperation creates a new DateOperation instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
protected Calendar |
getCalendar() |
SimpleDateFormat |
getDateFormat()
Method getDateFormat returns the dateFormat of this DateParser object.
|
String |
getDateFormatString() |
int |
hashCode() |
void |
prepare(FlowProcess flowProcess,
OperationCall<Pair<SimpleDateFormat,Tuple>> operationCall)
Method prepare does nothing, and may safely be overridden.
|
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal
@ConstructorProperties(value={"numArgs","fieldDeclaration","dateFormatString"}) public DateOperation(int numArgs, Fields fieldDeclaration, String dateFormatString)
numArgs
- of type intfieldDeclaration
- of type FieldsdateFormatString
- of type String@ConstructorProperties(value={"numArgs","fieldDeclaration","dateFormatString","zone","locale"}) public DateOperation(int numArgs, Fields fieldDeclaration, String dateFormatString, TimeZone zone, Locale locale)
numArgs
- of type intfieldDeclaration
- of type FieldsdateFormatString
- of type Stringzone
- of type TimeZonelocale
- of type Localepublic String getDateFormatString()
public SimpleDateFormat getDateFormat()
protected Calendar getCalendar()
public void prepare(FlowProcess flowProcess, OperationCall<Pair<SimpleDateFormat,Tuple>> operationCall)
BaseOperation
prepare
in interface Operation<Pair<SimpleDateFormat,Tuple>>
prepare
in class BaseOperation<Pair<SimpleDateFormat,Tuple>>
public boolean equals(Object object)
equals
in class BaseOperation<Pair<SimpleDateFormat,Tuple>>
public int hashCode()
hashCode
in class BaseOperation<Pair<SimpleDateFormat,Tuple>>
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.