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