cascading.operation.text
Class DateFormatter
java.lang.Object
cascading.operation.BaseOperation
cascading.operation.text.DateOperation
cascading.operation.text.DateFormatter
- All Implemented Interfaces:
- Function, Operation, Serializable
public class DateFormatter
- extends DateOperation
- implements Function
Class DateFormatter is used to convert a date timestamp to a formatted string, where a timestamp
is the number of milliseconds since January 1, 1970, 00:00:00 GMT, using the SimpleDateFormat syntax.
- See Also:
- Serialized Form
| Fields inherited from interface cascading.operation.Operation |
ANY |
|
Constructor Summary |
DateFormatter(Fields fieldDeclaration,
String dateFormatString)
Constructor DateParser creates a new DateParser instance. |
DateFormatter(String dateFormatString)
Constructor DateParser creates a new DateParser instance that creates a simple long time stamp of the parsed date. |
FIELD_NAME
public static final String FIELD_NAME
- Field FIELD_NAME
- See Also:
- Constant Field Values
DateFormatter
public DateFormatter(String dateFormatString)
- Constructor DateParser creates a new DateParser instance that creates a simple long time stamp of the parsed date.
- Parameters:
dateFormatString - of type String
DateFormatter
public DateFormatter(Fields fieldDeclaration,
String dateFormatString)
- Constructor DateParser creates a new DateParser instance.
- Parameters:
fieldDeclaration - of type FieldsdateFormatString - of type String
operate
public void operate(TupleEntry input,
TupleCollector outputCollector)
- Description copied from interface:
Function
- Method operate provides the implementation of this Function.
- Specified by:
operate in interface Function
- Parameters:
input - of type TupleEntryoutputCollector - of type TupleEntryListIterator- See Also:
Function.operate(TupleEntry, TupleCollector)
Copyright © 2007-2008 Concurrent, Inc. All Rights Reserved.