Class FlinkPravegaDynamicTableSink.RowDataBasedRouter
- java.lang.Object
-
- io.pravega.connectors.flink.dynamic.table.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 aRowData
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.
-
-
-
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 interfacePravegaEventRouter<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.
-
-