|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cascading.operation.BaseOperation<Tuple> cascading.operation.text.FieldJoiner
public class FieldJoiner
Class FieldJoiner joins the values in a Tuple with a given delimiter and stuffs the result into a new field.
Field Summary | |
---|---|
static String |
FIELD_NAME
Field FIELD_NAME |
Fields inherited from class cascading.operation.BaseOperation |
---|
fieldDeclaration, numArgs, trace |
Fields inherited from interface cascading.operation.Operation |
---|
ANY |
Constructor Summary | |
---|---|
FieldJoiner(Fields fieldDeclaration)
Constructor FieldJoiner creates a new FieldJoiner instance. |
|
FieldJoiner(Fields fieldDeclaration,
String delimiter)
Constructor FieldJoiner creates a new FieldJoiner instance. |
|
FieldJoiner(String delimiter)
Constructor FieldJoiner creates a new FieldJoiner instance. |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
String |
getDelimiter()
Method getFormat returns the delimiter of this FieldJoiner 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. |
Methods inherited from class cascading.operation.BaseOperation |
---|
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface cascading.operation.Operation |
---|
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe |
Field Detail |
---|
public static final String FIELD_NAME
Constructor Detail |
---|
@ConstructorProperties(value="delimiter") public FieldJoiner(String delimiter)
delimiter
- of type String@ConstructorProperties(value="fieldDeclaration") public FieldJoiner(Fields fieldDeclaration)
fieldDeclaration
- of type Fields@ConstructorProperties(value={"fieldDeclaration","delimiter"}) public FieldJoiner(Fields fieldDeclaration, String delimiter)
fieldDeclaration
- of type Fieldsdelimiter
- of type StringMethod Detail |
---|
public String getDelimiter()
public void prepare(FlowProcess flowProcess, OperationCall<Tuple> operationCall)
BaseOperation
prepare
in interface Operation<Tuple>
prepare
in class BaseOperation<Tuple>
public void operate(FlowProcess flowProcess, FunctionCall<Tuple> functionCall)
Function
operate
in interface Function<Tuple>
flowProcess
- of type FlowProcessfunctionCall
- of type FunctionCallpublic boolean equals(Object object)
equals
in class BaseOperation<Tuple>
public int hashCode()
hashCode
in class BaseOperation<Tuple>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |