cascading.operation.state
Class Status
java.lang.Object
cascading.operation.BaseOperation<Boolean>
cascading.operation.state.Status
- All Implemented Interfaces:
- DeclaresResults, Filter<Boolean>, Operation<Boolean>, Serializable
public class Status
- extends BaseOperation<Boolean>
- implements Filter<Boolean>
Class Status is a Filter
that sets the current FlowProcess
'status' on
the first Tuple
it sees.
Internally, the isRemove(cascading.flow.FlowProcess, cascading.operation.FilterCall)
method calls
FlowProcess.setStatus(String)
.
No Tuple
instances are ever discarded.
- See Also:
FlowProcess
,
Filter
,
Serialized Form
Fields inherited from interface cascading.operation.Operation |
ANY |
Constructor Summary |
Status(String status)
Constructor Status creates a new Status instance. |
Status
@ConstructorProperties(value="status")
public Status(String status)
- Constructor Status creates a new Status instance.
- Parameters:
status
- of type String
getStatus
public String getStatus()
prepare
public void prepare(FlowProcess flowProcess,
OperationCall<Boolean> operationCall)
- Description copied from class:
BaseOperation
- Method prepare does nothing, and may safely be overridden.
- Specified by:
prepare
in interface Operation<Boolean>
- Overrides:
prepare
in class BaseOperation<Boolean>
isRemove
public boolean isRemove(FlowProcess flowProcess,
FilterCall<Boolean> filterCall)
- Description copied from interface:
Filter
- Method isRemove returns true if input should be removed from the tuple stream.
- Specified by:
isRemove
in interface Filter<Boolean>
- Parameters:
flowProcess
- of type FlowProcessfilterCall
- of type FilterCall
- Returns:
- boolean
equals
public boolean equals(Object object)
- Overrides:
equals
in class BaseOperation<Boolean>
hashCode
public int hashCode()
- Overrides:
hashCode
in class BaseOperation<Boolean>
Copyright © 2007-2013 Concurrent, Inc. All Rights Reserved.