Class FlinkPravegaTableSink.RowBasedRouter

  • All Implemented Interfaces:
    PravegaEventRouter<org.apache.flink.types.Row>, java.io.Serializable
    Enclosing class:
    FlinkPravegaTableSink

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

      Constructors 
      Constructor Description
      RowBasedRouter​(java.lang.String keyFieldName, java.lang.String[] fieldNames, org.apache.flink.table.types.DataType[] fieldTypes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getRoutingKey​(org.apache.flink.types.Row 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

      • RowBasedRouter

        public RowBasedRouter​(java.lang.String keyFieldName,
                              java.lang.String[] fieldNames,
                              org.apache.flink.table.types.DataType[] fieldTypes)
    • Method Detail

      • getRoutingKey

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