Class FlinkPravegaDynamicTableSink.RowDataBasedRouter

  • All Implemented Interfaces:
    PravegaEventRouter<org.apache.flink.table.data.RowData>, java.io.Serializable
    Enclosing class:
    FlinkPravegaDynamicTableSink

    public static class FlinkPravegaDynamicTableSink.RowDataBasedRouter
    extends java.lang.Object
    implements PravegaEventRouter<org.apache.flink.table.data.RowData>
    An event router that extracts the routing key from a RowData by field name.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RowDataBasedRouter​(java.lang.String routingKeyFieldName, org.apache.flink.table.api.TableSchema tableSchema)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getRoutingKey​(org.apache.flink.table.data.RowData event)
      Fetch the routing key for the given event.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RowDataBasedRouter

        public RowDataBasedRouter​(java.lang.String routingKeyFieldName,
                                  org.apache.flink.table.api.TableSchema tableSchema)
    • Method Detail

      • getRoutingKey

        public java.lang.String getRoutingKey​(org.apache.flink.table.data.RowData event)
        Description copied from interface: PravegaEventRouter
        Fetch the routing key for the given event.
        Specified by:
        getRoutingKey in interface PravegaEventRouter<org.apache.flink.table.data.RowData>
        Parameters:
        event - The type of the event.
        Returns:
        The routing key which will be used by the pravega writer.