public interface CodeGenerator
GeneratedClass
generator.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. |
GeneratedClass<Projection> generateProjection(RowType inputType, int[] inputMapping)
GeneratedClass<NormalizedKeyComputer> generateNormalizedKeyComputer(List<DataType> inputTypes, int[] sortFields)
NormalizedKeyComputer
.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.GeneratedClass<RecordComparator> generateRecordComparator(List<DataType> inputTypes, int[] sortFields, boolean isAscendingOrder)
RecordComparator
.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 ascendingGeneratedClass<RecordEqualiser> generateRecordEqualiser(List<DataType> fieldTypes, int[] fields)
RecordEqualiser
with fields.Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.