@Internal public class RowDataPartitionComputer extends Object implements PartitionComputer<RowData>
PartitionComputer
for RowData
.Modifier and Type | Field and Description |
---|---|
protected String |
defaultPartValue |
protected RowData.FieldGetter[] |
nonPartitionFieldGetters |
protected String[] |
partitionColumns |
protected RowData.FieldGetter[] |
partitionFieldGetters |
protected int[] |
partitionIndexes |
protected LogicalType[] |
partitionTypes |
Constructor and Description |
---|
RowDataPartitionComputer(String defaultPartValue,
String[] columnNames,
DataType[] columnTypes,
String[] partitionColumns) |
Modifier and Type | Method and Description |
---|---|
LinkedHashMap<String,String> |
generatePartValues(RowData in)
Compute partition values from record.
|
RowData |
projectColumnsToWrite(RowData in)
Project non-partition columns for output writer.
|
protected final String defaultPartValue
protected final String[] partitionColumns
protected final int[] partitionIndexes
protected final LogicalType[] partitionTypes
protected final RowData.FieldGetter[] partitionFieldGetters
protected final RowData.FieldGetter[] nonPartitionFieldGetters
public LinkedHashMap<String,String> generatePartValues(RowData in)
PartitionComputer
generatePartValues
in interface PartitionComputer<RowData>
in
- input record.public RowData projectColumnsToWrite(RowData in)
PartitionComputer
projectColumnsToWrite
in interface PartitionComputer<RowData>
in
- input record.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.