public class FieldFormatter extends BaseOperation<Tuple> implements Function<Tuple>
Formatter
class for formatting the argument tuple values into a new string.Modifier and Type | Field and Description |
---|---|
static String |
FIELD_NAME
Field FIELD_NAME
|
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
FieldFormatter(Fields fieldDeclaration,
String format)
Constructor FieldJoiner creates a new FieldFormatter instance.
|
FieldFormatter(String format)
Constructor FieldJoiner creates a new FieldFormatter instance using the default field name "formatted".
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
String |
getFormat()
Method getFormat returns the format of this FieldFormatter object.
|
int |
hashCode() |
void |
operate(FlowProcess flowProcess,
FunctionCall<Tuple> functionCall)
Method operate provides the implementation of this Function.
|
void |
prepare(FlowProcess flowProcess,
OperationCall<Tuple> operationCall)
Method prepare does nothing, and may safely be overridden.
|
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe
public static final String FIELD_NAME
@ConstructorProperties(value="format") public FieldFormatter(String format)
format
- of type String@ConstructorProperties(value={"fieldDeclaration","format"}) public FieldFormatter(Fields fieldDeclaration, String format)
fieldDeclaration
- of type Fieldsformat
- of type Stringpublic String getFormat()
public void prepare(FlowProcess flowProcess, OperationCall<Tuple> operationCall)
BaseOperation
public void operate(FlowProcess flowProcess, FunctionCall<Tuple> functionCall)
Function
public boolean equals(Object object)
equals
in class BaseOperation<Tuple>
public int hashCode()
hashCode
in class BaseOperation<Tuple>
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.