All Implemented Interfaces:
Serializable, EachOperation, Filter, Operation

public class Debug extends BaseFilter
Filter for debugging purposes. The `isKeep()` method simply prints the tuple to `System.out` and returns `true`.
See Also:
  • Constructor Details

    • Debug

      public Debug()
    • Debug

      public Debug(boolean useLogger)
    • Debug

      public Debug(String name)
      Creates a `Debug` filter with a string identifier.
  • Method Details

    • isKeep

      public boolean isKeep(TridentTuple tuple)
      Description copied from interface: Filter
      Determines if a tuple should be filtered out of a stream.
      Parameters:
      tuple - the tuple being evaluated
      Returns:
      `false` to drop the tuple, `true` to keep the tuple