@@ -20,13 +20,12 @@ package org.apache.hudi.common.model;
|
||||
|
||||
/**
|
||||
* Type of the Hoodie Table.
|
||||
* <p>
|
||||
*
|
||||
* Currently, 2 types are supported.
|
||||
* <p>
|
||||
* COPY_ON_WRITE - Performs upserts by versioning entire files, with later versions containing newer value of a record.
|
||||
* <p>
|
||||
* MERGE_ON_READ - Speeds up upserts, by delaying merge until enough work piles up.
|
||||
* <p>
|
||||
* <ul>
|
||||
* <li> COPY_ON_WRITE - Performs upserts by versioning entire files, with later versions containing newer value of a record.
|
||||
* <li> MERGE_ON_READ - Speeds up upserts, by delaying merge until enough work piles up.
|
||||
* </ul>
|
||||
*/
|
||||
public enum HoodieTableType {
|
||||
COPY_ON_WRITE, MERGE_ON_READ
|
||||
|
||||
@@ -29,10 +29,12 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* subclass of OverwriteWithLatestAvroPayload used for delta streamer.
|
||||
* <p>
|
||||
* 1. preCombine - Picks the latest delta record for a key, based on an ordering field.
|
||||
* 2. combineAndGetUpdateValue/getInsertValue - overwrite storage for specified fields
|
||||
*
|
||||
* <ol>
|
||||
* <li>preCombine - Picks the latest delta record for a key, based on an ordering field;
|
||||
* <li>combineAndGetUpdateValue/getInsertValue - overwrite storage for specified fields
|
||||
* that doesn't equal defaultValue.
|
||||
* </ol>
|
||||
*/
|
||||
public class OverwriteNonDefaultsWithLatestAvroPayload extends OverwriteWithLatestAvroPayload {
|
||||
|
||||
|
||||
@@ -29,16 +29,15 @@ import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Default payload used for delta streamer.
|
||||
* <p>
|
||||
* 1. preCombine - Picks the latest delta record for a key, based on an ordering field 2.
|
||||
* combineAndGetUpdateValue/getInsertValue - Simply overwrites storage with latest delta record
|
||||
*
|
||||
* <ol>
|
||||
* <li> preCombine - Picks the latest delta record for a key, based on an ordering field;
|
||||
* <li> combineAndGetUpdateValue/getInsertValue - Simply overwrites storage with latest delta record
|
||||
* </ol>
|
||||
*/
|
||||
public class OverwriteWithLatestAvroPayload extends BaseAvroPayload
|
||||
implements HoodieRecordPayload<OverwriteWithLatestAvroPayload> {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public OverwriteWithLatestAvroPayload(GenericRecord record, Comparable orderingVal) {
|
||||
super(record, orderingVal);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user