public class Debug extends BaseFilter
Filter for debugging purposes. The isKeep()
method simply prints the tuple to System.out
and returns true
.
Constructor and Description |
---|
Debug() |
Debug(boolean useLogger) |
Debug(String name)
Creates a
Debug filter with a string identifier. |
Modifier and Type | Method and Description |
---|---|
boolean |
isKeep(TridentTuple tuple)
Determines if a tuple should be filtered out of a stream.
|
cleanup, prepare
public Debug()
public Debug(boolean useLogger)
public Debug(String name)
Creates a Debug
filter with a string identifier.
public boolean isKeep(TridentTuple tuple)
Filter
Determines if a tuple should be filtered out of a stream.
tuple
- the tuple being evaluatedfalse
to drop the tuple, true
to keep the tupleCopyright © 2022 The Apache Software Foundation. All rights reserved.