|
|||||||||
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 | |
---|---|
void |
cleanup(FlowProcess flowProcess,
OperationCall<Long> longOperationCall)
Method cleanup does nothing, and may safely be overridden. |
boolean |
equals(Object object)
|
Debug.Output |
getOutput()
|
String |
getPrefix()
|
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. |
int |
hashCode()
|
boolean |
isPrintFields()
|
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. |
boolean |
supportsPlannerLevel(PlannerLevel plannerLevel)
|
Methods inherited from class cascading.operation.BaseOperation |
---|
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 |
---|
flush, getFieldDeclaration, getNumArgs, isSafe |
Constructor Detail |
---|
public Debug()
@ConstructorProperties(value="prefix") public Debug(String prefix)
prefix
- of type String@ConstructorProperties(value={"prefix","printFields"}) public Debug(String prefix, boolean printFields)
prefix
- of type StringprintFields
- of type boolean@ConstructorProperties(value="printFields") public Debug(boolean printFields)
printFields
- of type boolean@ConstructorProperties(value="output") public Debug(Debug.Output output)
output
- of type Output@ConstructorProperties(value={"output","prefix"}) public Debug(Debug.Output output, String prefix)
output
- of type Outputprefix
- of type String@ConstructorProperties(value={"output","prefix","printFields"}) public Debug(Debug.Output output, String prefix, boolean printFields)
output
- of type Outputprefix
- of type StringprintFields
- of type boolean@ConstructorProperties(value={"output","printFields"}) public Debug(Debug.Output output, boolean printFields)
output
- of type OutputprintFields
- of type booleanMethod Detail |
---|
public Debug.Output getOutput()
public String getPrefix()
public boolean isPrintFields()
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 boolean supportsPlannerLevel(PlannerLevel plannerLevel)
supportsPlannerLevel
in interface PlannedOperation<Long>
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)
public void cleanup(FlowProcess flowProcess, OperationCall<Long> longOperationCall)
BaseOperation
cleanup
in interface Operation<Long>
cleanup
in class BaseOperation<Long>
public boolean equals(Object object)
equals
in class BaseOperation<Long>
public int hashCode()
hashCode
in class BaseOperation<Long>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |