Package org.apache.storm.trident.operation.builtin

## Class Debug

- java.lang.Object
- - org.apache.storm.trident.operation.BaseOperation
  - - org.apache.storm.trident.operation.BaseFilter
    - - org.apache.storm.trident.operation.builtin.Debug

- 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:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Debug()` |
    `Debug​(boolean useLogger)` |
    `Debug​(String name)` | Creates a `Debug` filter with a string identifier.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `isKeep​(TridentTuple tuple)` | Determines if a tuple should be filtered out of a stream.

    - ### Methods inherited from class org.apache.storm.trident.operation.BaseOperation

      `cleanup, prepare`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.storm.trident.operation.Operation

      `cleanup, prepare`

- - ### Constructor Detail

    - #### Debug

          public Debug()

    - #### Debug

          public Debug​(boolean useLogger)

    - #### Debug

          public Debug​(String name)

      Creates a `Debug` filter with a string identifier.

  - ### Method Detail

    - #### 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