public class IncrSourceHelper extends Object
| Constructor and Description |
|---|
IncrSourceHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Pair<String,String> |
calculateBeginAndEndInstants(org.apache.spark.api.java.JavaSparkContext jssc,
String srcBasePath,
int numInstantsPerFetch,
Option<String> beginInstant,
boolean readLatestOnMissingBeginInstant)
Find begin and end instants to be set for the next fetch
|
static void |
validateInstantTime(org.apache.spark.sql.Row row,
String instantTime,
String sinceInstant,
String endInstant)
Validate instant time seen in the incoming row
|
public static Pair<String,String> calculateBeginAndEndInstants(org.apache.spark.api.java.JavaSparkContext jssc, String srcBasePath, int numInstantsPerFetch, Option<String> beginInstant, boolean readLatestOnMissingBeginInstant)
jssc - Java Spark ContextsrcBasePath - Base path of Hudi source tablenumInstantsPerFetch - Max Instants per fetchbeginInstant - Last Checkpoint StringreadLatestOnMissingBeginInstant - when begin instant is missing, allow reading from latest committed instantpublic static void validateInstantTime(org.apache.spark.sql.Row row,
String instantTime,
String sinceInstant,
String endInstant)
row - Input RowinstantTime - Hoodie Instant time of the rowsinceInstant - begin instant of the batchendInstant - end instant of the batchCopyright © 2019 The Apache Software Foundation. All rights reserved.