public class UserDefinedSeqComparator extends Object implements FieldsComparator
FieldsComparator
for user defined sequence fields.Constructor and Description |
---|
UserDefinedSeqComparator(int[] fields,
RecordComparator comparator) |
Modifier and Type | Method and Description |
---|---|
int |
compare(InternalRow o1,
InternalRow o2) |
int[] |
compareFields() |
static UserDefinedSeqComparator |
create(RowType rowType,
CoreOptions options) |
static UserDefinedSeqComparator |
create(RowType rowType,
int[] sequenceFields) |
static UserDefinedSeqComparator |
create(RowType rowType,
List<String> sequenceFields) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public UserDefinedSeqComparator(int[] fields, RecordComparator comparator)
public int[] compareFields()
compareFields
in interface FieldsComparator
public int compare(InternalRow o1, InternalRow o2)
compare
in interface Comparator<InternalRow>
@Nullable public static UserDefinedSeqComparator create(RowType rowType, CoreOptions options)
@Nullable public static UserDefinedSeqComparator create(RowType rowType, List<String> sequenceFields)
@Nullable public static UserDefinedSeqComparator create(RowType rowType, int[] sequenceFields)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.