|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcascading.operation.BaseOperation<Long>
cascading.operation.Debug
public class Debug
Class Debug is a Filter that will never remove an item from a stream, but will print the Tuple to either
stdout or stderr.
setPrintFieldsEvery(int) and
setPrintTupleEvery(int) methods, respectively.
| Nested Class Summary | |
|---|---|
static class |
Debug.Output
|
| Field Summary |
|---|
| Fields inherited from class cascading.operation.BaseOperation |
|---|
fieldDeclaration, numArgs, trace |
| 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. |
|
Debug(Debug.Output output,
String prefix)
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,
String prefix,
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. |
|
Debug(String prefix)
Constructor Debug creates a new Debug instance that prints to stderr by default, and does not print the Tuple instance field names. |
|
Debug(String prefix,
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. |
|
| Method Summary | |
|---|---|
int |
getPrintFieldsEvery()
Method getPrintFieldsEvery returns the printFieldsEvery interval value of this Debug object. |
int |
getPrintTupleEvery()
Method getPrintTupleEvery returns the printTupleEvery interval value of this Debug object. |
boolean |
isRemove(FlowProcess flowProcess,
FilterCall<Long> filterCall)
Method isRemove returns true if input should be removed from the tuple stream. |
void |
prepare(FlowProcess flowProcess,
OperationCall<Long> operationCall)
Method prepare does nothing, and may safely be overridden. |
void |
setPrintFieldsEvery(int printFieldsEvery)
Method setPrintFieldsEvery sets the printFieldsEvery interval value of this Debug object. |
void |
setPrintTupleEvery(int printTupleEvery)
Method setPrintTupleEvery sets the printTupleEvery interval value of this Debug object. |
| Methods inherited from class cascading.operation.BaseOperation |
|---|
cleanup, getFieldDeclaration, getNumArgs, getTrace, 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 |
|---|
cleanup, getFieldDeclaration, getNumArgs |
| Constructor Detail |
|---|
public Debug()
public Debug(String prefix)
prefix - of type String
public Debug(String prefix,
boolean printFields)
prefix - of type StringprintFields - of type booleanpublic Debug(boolean printFields)
printFields - of type booleanpublic Debug(Debug.Output output)
output - of type Output
public Debug(Debug.Output output,
String prefix)
output - of type Outputprefix - of type String
public Debug(Debug.Output output,
String prefix,
boolean printFields)
output - of type Outputprefix - of type StringprintFields - of type boolean
public Debug(Debug.Output output,
boolean printFields)
output - of type OutputprintFields - of type boolean| Method Detail |
|---|
public int getPrintFieldsEvery()
public void setPrintFieldsEvery(int printFieldsEvery)
printFieldsEvery - the printFieldsEvery of this Debug object.public int getPrintTupleEvery()
public void setPrintTupleEvery(int printTupleEvery)
printTupleEvery - the printTupleEvery of this Debug object.
public void prepare(FlowProcess flowProcess,
OperationCall<Long> operationCall)
BaseOperation
prepare in interface Operation<Long>prepare in class BaseOperation<Long>
public boolean isRemove(FlowProcess flowProcess,
FilterCall<Long> filterCall)
Filter
isRemove in interface Filter<Long>flowProcess - of type FlowProcessfilterCall - of type FilterCall
Filter.isRemove(cascading.flow.FlowProcess, FilterCall)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||