Keyable (Java Application API for IBM Streams)
Date: 2020-08-07

com.ibm.streamsx.topology.tuple

## Interface Keyable<K>

- Type Parameters:
    `K` - Type of the key.
  All Superinterfaces:
    java.io.Serializable
  All Known Implementing Classes:
    BeaconTuple

      public interface Keyable<K>
      extends java.io.Serializable

  A tuple that has a partition key.
  See Also:
    `TStream.parallel(int)`, `TWindow`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `K` | `getKey()` Returns the partition key for this tuple.

- - ### Method Detail

    - #### getKey

          K getKey()

      Returns the partition key for this tuple.
      Returns:
        the partition key for this tuple