public class PythonConnectorUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PythonConnectorUtils.FirstColumnTopicSelectorInvocationHandler
The serializable
InvocationHandler as the proxy for first column selector. |
static class |
PythonConnectorUtils.RowRowMapper
|
static class |
PythonConnectorUtils.SecondColumnSerializationSchema<T>
A
SerializationSchema for Row that only serialize the second column using a
wrapped SerializationSchema for T . |
Constructor and Description |
---|
PythonConnectorUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
createFirstColumnTopicSelector(Class<T> clazz)
Creates a selector that returns the first column of a row, and cast it to
clazz . |
public static <T> T createFirstColumnTopicSelector(Class<T> clazz)
clazz
.
T
should be a sub interface of Function
, which accepts a Row
.T
- An interfaceclazz
- The desired selector class to cast to, e.g. TopicSelector.class for Kafka.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.