Class RowDataCustomStreamPartitioner

java.lang.Object
org.apache.flink.streaming.runtime.partitioner.StreamPartitioner<org.apache.flink.table.data.RowData>
org.apache.flink.table.runtime.partitioner.RowDataCustomStreamPartitioner
All Implemented Interfaces:
Serializable, org.apache.flink.runtime.io.network.api.writer.ChannelSelector<org.apache.flink.runtime.plugable.SerializationDelegate<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.flink.table.data.RowData>>>

public class RowDataCustomStreamPartitioner extends org.apache.flink.streaming.runtime.partitioner.StreamPartitioner<org.apache.flink.table.data.RowData>
The partitioner used to partition row data by the connector's custom logic.
See Also:
  • Field Summary

    Fields inherited from class org.apache.flink.streaming.runtime.partitioner.StreamPartitioner

    numberOfChannels
  • Constructor Summary

    Constructors
    Constructor
    Description
    RowDataCustomStreamPartitioner(org.apache.flink.table.connector.source.abilities.SupportsLookupCustomShuffle.InputDataPartitioner partitioner, RowDataKeySelector keySelector)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.flink.streaming.runtime.partitioner.StreamPartitioner<org.apache.flink.table.data.RowData>
     
    org.apache.flink.runtime.io.network.api.writer.SubtaskStateMapper
     
    boolean
     
    int
    selectChannel(org.apache.flink.runtime.plugable.SerializationDelegate<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.flink.table.data.RowData>> record)
     
     

    Methods inherited from class org.apache.flink.streaming.runtime.partitioner.StreamPartitioner

    disableUnalignedCheckpoints, equals, getUpstreamSubtaskStateMapper, hashCode, isBroadcast, isSupportsUnalignedCheckpoint, setup

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RowDataCustomStreamPartitioner

      public RowDataCustomStreamPartitioner(org.apache.flink.table.connector.source.abilities.SupportsLookupCustomShuffle.InputDataPartitioner partitioner, RowDataKeySelector keySelector)
  • Method Details

    • selectChannel

      public int selectChannel(org.apache.flink.runtime.plugable.SerializationDelegate<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.flink.table.data.RowData>> record)
    • copy

      public org.apache.flink.streaming.runtime.partitioner.StreamPartitioner<org.apache.flink.table.data.RowData> copy()
      Specified by:
      copy in class org.apache.flink.streaming.runtime.partitioner.StreamPartitioner<org.apache.flink.table.data.RowData>
    • getDownstreamSubtaskStateMapper

      public org.apache.flink.runtime.io.network.api.writer.SubtaskStateMapper getDownstreamSubtaskStateMapper()
      Specified by:
      getDownstreamSubtaskStateMapper in class org.apache.flink.streaming.runtime.partitioner.StreamPartitioner<org.apache.flink.table.data.RowData>
    • isPointwise

      public boolean isPointwise()
      Specified by:
      isPointwise in class org.apache.flink.streaming.runtime.partitioner.StreamPartitioner<org.apache.flink.table.data.RowData>
    • toString

      public String toString()
      Overrides:
      toString in class Object