cascading.operation
Class Debug

java.lang.Object
  extended by cascading.operation.BaseOperation
      extended by cascading.operation.Debug
All Implemented Interfaces:
Filter, Operation, Serializable

public class Debug
extends BaseOperation
implements Filter

Class Debug is a Filter that will never remove an item from a stream, but will print the Tuple to either stdout or stderr.

See Also:
Serialized Form

Nested Class Summary
static class Debug.Output
           
 
Field Summary
 
Fields inherited from class cascading.operation.BaseOperation
fieldDeclaration, numArgs
 
Fields inherited from interface cascading.operation.Operation
ANY
 
Constructor Summary
Debug()
          Constructor Debug creates a new Debug instance that prints to stderr by default, and does not print the Tuple instance field names.
Debug(boolean printFields)
          Constructor Debug creates a new Debug instance that prints to stderr and will print the current Tuple instance field names if printFields is true.
Debug(Debug.Output output)
          Constructor Debug creates a new Debug instance that prints to the declared stream and does not print the Tuple field names.
Debug(Debug.Output output, boolean printFields)
          Constructor Debug creates a new Debug instance that prints to the declared stream and will print the Tuple instances field names if printFields is true.
 
Method Summary
 boolean isRemove(TupleEntry input)
          Method isRemove returns true if input should be removed from the tuple stream.
 
Methods inherited from class cascading.operation.BaseOperation
getFieldDeclaration, getNumArgs, printOperationInternal, toString, toStringInternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cascading.operation.Operation
getFieldDeclaration, getNumArgs
 

Constructor Detail

Debug

public Debug()
Constructor Debug creates a new Debug instance that prints to stderr by default, and does not print the Tuple instance field names.


Debug

public Debug(boolean printFields)
Constructor Debug creates a new Debug instance that prints to stderr and will print the current Tuple instance field names if printFields is true.

Parameters:
printFields - of type boolean

Debug

public Debug(Debug.Output output)
Constructor Debug creates a new Debug instance that prints to the declared stream and does not print the Tuple field names.

Parameters:
output - of type Output

Debug

public Debug(Debug.Output output,
             boolean printFields)
Constructor Debug creates a new Debug instance that prints to the declared stream and will print the Tuple instances field names if printFields is true.

Parameters:
output - of type Output
Method Detail

isRemove

public boolean isRemove(TupleEntry input)
Description copied from interface: Filter
Method isRemove returns true if input should be removed from the tuple stream.

Specified by:
isRemove in interface Filter
Parameters:
input - of type TupleEntry
Returns:
boolean
See Also:
Filter.isRemove(TupleEntry)


Copyright © 2007-2008 Concurrent, Inc. All Rights Reserved.