public class KeySelectorUtil extends Object
Constructor and Description |
---|
KeySelectorUtil() |
Modifier and Type | Method and Description |
---|---|
static RowDataKeySelector |
getRowDataSelector(ClassLoader classLoader,
int[] keyFields,
InternalTypeInfo<RowData> rowType) |
static RowDataKeySelector |
getRowDataSelector(ClassLoader classLoader,
int[] keyFields,
InternalTypeInfo<RowData> rowType,
Class<? extends RowData> outClass)
Create a RowDataKeySelector to extract keys from DataStream which type is
InternalTypeInfo of RowData . |
public static RowDataKeySelector getRowDataSelector(ClassLoader classLoader, int[] keyFields, InternalTypeInfo<RowData> rowType)
public static RowDataKeySelector getRowDataSelector(ClassLoader classLoader, int[] keyFields, InternalTypeInfo<RowData> rowType, Class<? extends RowData> outClass)
InternalTypeInfo
of RowData
.classLoader
- user ClassLoaderkeyFields
- key fieldsrowType
- type of DataStream to extract keysInternalTypeInfo
of RowData
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.