@Internal public class RowPartitionComputer extends Object implements PartitionComputer<org.apache.flink.types.Row>
PartitionComputer for Row.| Modifier and Type | Field and Description |
|---|---|
protected String |
defaultPartValue |
protected String[] |
partitionColumns |
protected int[] |
partitionIndexes |
| Constructor and Description |
|---|
RowPartitionComputer(String defaultPartValue,
String[] columnNames,
String[] partitionColumns) |
| Modifier and Type | Method and Description |
|---|---|
LinkedHashMap<String,String> |
generatePartValues(org.apache.flink.types.Row in)
Compute partition values from record.
|
org.apache.flink.types.Row |
projectColumnsToWrite(org.apache.flink.types.Row in)
Project non-partition columns for output writer.
|
static Object |
restorePartValueFromType(String valStr,
org.apache.flink.table.types.DataType type) |
static Object |
restorePartValueFromType(String valStr,
org.apache.flink.table.types.logical.LogicalType type)
Restore partition value from string and type.
|
protected final String defaultPartValue
protected final String[] partitionColumns
protected final int[] partitionIndexes
public LinkedHashMap<String,String> generatePartValues(org.apache.flink.types.Row in) throws Exception
PartitionComputergeneratePartValues in interface PartitionComputer<org.apache.flink.types.Row>in - input record.Exceptionpublic org.apache.flink.types.Row projectColumnsToWrite(org.apache.flink.types.Row in)
PartitionComputerprojectColumnsToWrite in interface PartitionComputer<org.apache.flink.types.Row>in - input record.public static Object restorePartValueFromType(String valStr, org.apache.flink.table.types.DataType type)
public static Object restorePartValueFromType(String valStr, org.apache.flink.table.types.logical.LogicalType type)
generatePartValues(org.apache.flink.types.Row).valStr - string partition value.type - type of partition field.Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.