cascading.operation.text
Class FieldFormatter
java.lang.Object
cascading.operation.BaseOperation
cascading.operation.text.FieldFormatter
- All Implemented Interfaces:
- Function, Operation, Serializable
public class FieldFormatter
- extends BaseOperation
- implements Function
Class FieldFormatter formats the values in a Tuple with a given format and stuffs the result into a new field.
This function uses the Formatter
class for formatting the argument tuple values into a new string.
- See Also:
- Serialized Form
Fields inherited from interface cascading.operation.Operation |
ANY |
Constructor Summary |
FieldFormatter(Fields fieldDeclaration,
String format)
Constructor FieldJoiner creates a new FieldJoiner instance. |
FieldFormatter(String format)
Constructor FieldJoiner creates a new FieldFormatter instance using the default field name "formatted". |
FIELD_NAME
public static final String FIELD_NAME
- Field FIELD_NAME
- See Also:
- Constant Field Values
FieldFormatter
@ConstructorProperties(value="format")
public FieldFormatter(String format)
- Constructor FieldJoiner creates a new FieldFormatter instance using the default field name "formatted".
- Parameters:
format
- of type String
FieldFormatter
@ConstructorProperties(value={"fieldDeclaration","format"})
public FieldFormatter(Fields fieldDeclaration,
String format)
- Constructor FieldJoiner creates a new FieldJoiner instance.
- Parameters:
fieldDeclaration
- of type Fieldsformat
- of type String
getFormat
public String getFormat()
- Method getFormat returns the format of this FieldJoiner object.
- Returns:
- the format (type String) of this FieldJoiner object.
operate
public void operate(FlowProcess flowProcess,
FunctionCall functionCall)
- Description copied from interface:
Function
- Method operate provides the implementation of this Function.
- Specified by:
operate
in interface Function
- Parameters:
flowProcess
- of type FlowProcessfunctionCall
- of type FunctionCall- See Also:
Function.operate(cascading.flow.FlowProcess,cascading.operation.FunctionCall)
equals
public boolean equals(Object object)
- Overrides:
equals
in class BaseOperation
hashCode
public int hashCode()
- Overrides:
hashCode
in class BaseOperation
Copyright © 2007-2010 Concurrent, Inc. All Rights Reserved.