@EnumDescription(value="Determines the logic of merging updates") public enum RecordMergeMode extends Enum<RecordMergeMode>
| Enum Constant and Description |
|---|
CUSTOM |
EVENT_TIME_ORDERING |
OVERWRITE_WITH_LATEST |
| Modifier and Type | Method and Description |
|---|---|
static RecordMergeMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RecordMergeMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@EnumFieldDescription(value="Using transaction time to merge records, i.e., the record from later transaction overwrites the earlier record with the same key.") public static final RecordMergeMode OVERWRITE_WITH_LATEST
@EnumFieldDescription(value="Using event time as the ordering to merge records, i.e., the record with the larger event time overwrites the record with the smaller event time on the same key, regardless of transaction time. The event time or preCombine field needs to be specified by the user.") public static final RecordMergeMode EVENT_TIME_ORDERING
@EnumFieldDescription(value="Using custom merging logic specified by the user.") public static final RecordMergeMode CUSTOM
public static RecordMergeMode[] values()
for (RecordMergeMode c : RecordMergeMode.values()) System.out.println(c);
public static RecordMergeMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2024 The Apache Software Foundation. All rights reserved.