public class CodeGeneratorImpl extends Object implements CodeGenerator
CodeGenerator
.Constructor and Description |
---|
CodeGeneratorImpl() |
Modifier and Type | Method and Description |
---|---|
GeneratedClass<NormalizedKeyComputer> |
generateNormalizedKeyComputer(List<DataType> inputTypes,
int[] sortFields)
Generate a
NormalizedKeyComputer . |
GeneratedClass<Projection> |
generateProjection(RowType inputType,
int[] inputMapping) |
GeneratedClass<RecordComparator> |
generateRecordComparator(List<DataType> inputTypes,
int[] sortFields,
boolean isAscendingOrder)
Generate a
RecordComparator . |
GeneratedClass<RecordEqualiser> |
generateRecordEqualiser(List<DataType> fieldTypes,
int[] fields)
Generate a
RecordEqualiser with fields. |
public GeneratedClass<Projection> generateProjection(RowType inputType, int[] inputMapping)
generateProjection
in interface CodeGenerator
public GeneratedClass<NormalizedKeyComputer> generateNormalizedKeyComputer(List<DataType> inputTypes, int[] sortFields)
CodeGenerator
NormalizedKeyComputer
.generateNormalizedKeyComputer
in interface CodeGenerator
inputTypes
- input types.sortFields
- the sort key fields. Records are compared by the first field, then the
second field, then the third field and so on. All fields are compared in ascending order.public GeneratedClass<RecordComparator> generateRecordComparator(List<DataType> inputTypes, int[] sortFields, boolean isAscendingOrder)
CodeGenerator
RecordComparator
.generateRecordComparator
in interface CodeGenerator
inputTypes
- input types.sortFields
- the sort key fields. Records are compared by the first field, then the
second field, then the third field and so on. All fields are compared in ascending order.isAscendingOrder
- decide the sort key fields order whether is ascendingpublic GeneratedClass<RecordEqualiser> generateRecordEqualiser(List<DataType> fieldTypes, int[] fields)
CodeGenerator
RecordEqualiser
with fields.generateRecordEqualiser
in interface CodeGenerator
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.