From 00271af64e8a913f69a093935fc4e412a48f16ae Mon Sep 17 00:00:00 2001 From: dugenkui Date: Sat, 10 Oct 2020 05:52:55 +0800 Subject: [PATCH] [MINOR] Fix typo (#2159) * fix typo * fix typo --- .../org/apache/hudi/common/model/HoodieTableType.java | 11 +++++------ .../OverwriteNonDefaultsWithLatestAvroPayload.java | 8 +++++--- .../common/model/OverwriteWithLatestAvroPayload.java | 11 +++++------ 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/hudi-common/src/main/java/org/apache/hudi/common/model/HoodieTableType.java b/hudi-common/src/main/java/org/apache/hudi/common/model/HoodieTableType.java index 851771c08..68c7cbc42 100644 --- a/hudi-common/src/main/java/org/apache/hudi/common/model/HoodieTableType.java +++ b/hudi-common/src/main/java/org/apache/hudi/common/model/HoodieTableType.java @@ -20,13 +20,12 @@ package org.apache.hudi.common.model; /** * Type of the Hoodie Table. - *

+ * * Currently, 2 types are supported. - *

- * COPY_ON_WRITE - Performs upserts by versioning entire files, with later versions containing newer value of a record. - *

- * MERGE_ON_READ - Speeds up upserts, by delaying merge until enough work piles up. - *

+ *

*/ public enum HoodieTableType { COPY_ON_WRITE, MERGE_ON_READ diff --git a/hudi-common/src/main/java/org/apache/hudi/common/model/OverwriteNonDefaultsWithLatestAvroPayload.java b/hudi-common/src/main/java/org/apache/hudi/common/model/OverwriteNonDefaultsWithLatestAvroPayload.java index 2f7ae2e76..fca656847 100644 --- a/hudi-common/src/main/java/org/apache/hudi/common/model/OverwriteNonDefaultsWithLatestAvroPayload.java +++ b/hudi-common/src/main/java/org/apache/hudi/common/model/OverwriteNonDefaultsWithLatestAvroPayload.java @@ -29,10 +29,12 @@ import java.util.List; /** * subclass of OverwriteWithLatestAvroPayload used for delta streamer. - *

- * 1. preCombine - Picks the latest delta record for a key, based on an ordering field. - * 2. combineAndGetUpdateValue/getInsertValue - overwrite storage for specified fields + * + *

    + *
  1. preCombine - Picks the latest delta record for a key, based on an ordering field; + *
  2. combineAndGetUpdateValue/getInsertValue - overwrite storage for specified fields * that doesn't equal defaultValue. + *
*/ public class OverwriteNonDefaultsWithLatestAvroPayload extends OverwriteWithLatestAvroPayload { diff --git a/hudi-common/src/main/java/org/apache/hudi/common/model/OverwriteWithLatestAvroPayload.java b/hudi-common/src/main/java/org/apache/hudi/common/model/OverwriteWithLatestAvroPayload.java index 6d32d502f..e1e61244b 100644 --- a/hudi-common/src/main/java/org/apache/hudi/common/model/OverwriteWithLatestAvroPayload.java +++ b/hudi-common/src/main/java/org/apache/hudi/common/model/OverwriteWithLatestAvroPayload.java @@ -29,16 +29,15 @@ import java.io.IOException; /** * Default payload used for delta streamer. - *

- * 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 + * + *

    + *
  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 + *
*/ public class OverwriteWithLatestAvroPayload extends BaseAvroPayload implements HoodieRecordPayload { - /** - * - */ public OverwriteWithLatestAvroPayload(GenericRecord record, Comparable orderingVal) { super(record, orderingVal); }