Class StreamPartitioner<T>

    • Field Detail

      • numberOfChannels

        protected int numberOfChannels
    • Constructor Detail

      • StreamPartitioner

        public StreamPartitioner()
    • Method Detail

      • setup

        public void setup​(int numberOfChannels)
        Description copied from interface: ChannelSelector
        Initializes the channel selector with the number of output channels.
        Specified by:
        setup in interface ChannelSelector<T>
        Parameters:
        numberOfChannels - the total number of output channels which are attached to respective output gate.
      • isBroadcast

        public boolean isBroadcast()
        Description copied from interface: ChannelSelector
        Returns whether the channel selector always selects all the output channels.
        Specified by:
        isBroadcast in interface ChannelSelector<T>
        Returns:
        true if the selector is for broadcast mode.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getUpstreamSubtaskStateMapper

        public SubtaskStateMapper getUpstreamSubtaskStateMapper()
        Defines the behavior of this partitioner, when upstream rescaled during recovery of in-flight data.
      • getDownstreamSubtaskStateMapper

        public abstract SubtaskStateMapper getDownstreamSubtaskStateMapper()
        Defines the behavior of this partitioner, when downstream rescaled during recovery of in-flight data.
      • isPointwise

        public abstract boolean isPointwise()
      • isSupportsUnalignedCheckpoint

        public boolean isSupportsUnalignedCheckpoint()
      • disableUnalignedCheckpoints

        public void disableUnalignedCheckpoints()