public class DeltaSync extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
CHECKPOINT_KEY |
static String |
CHECKPOINT_RESET_KEY |
protected static org.apache.log4j.Logger |
log |
| Constructor and Description |
|---|
DeltaSync(HoodieDeltaStreamer.Config cfg,
org.apache.spark.sql.SparkSession sparkSession,
SchemaProvider schemaProvider,
HoodieTableType tableType,
TypedProperties props,
org.apache.spark.api.java.JavaSparkContext jssc,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.hive.conf.HiveConf hiveConf,
java.util.function.Function<HoodieWriteClient,Boolean> onInitializingHoodieWriteClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close all resources
|
void |
setupWriteClient()
Note that depending on configs and source-type, schemaProvider could either be eagerly or lazily created.
|
Option<String> |
syncOnce()
Run one round of delta sync and return new compaction instant if one got scheduled
|
protected static volatile org.apache.log4j.Logger log
public static String CHECKPOINT_KEY
public static String CHECKPOINT_RESET_KEY
public DeltaSync(HoodieDeltaStreamer.Config cfg, org.apache.spark.sql.SparkSession sparkSession, SchemaProvider schemaProvider, HoodieTableType tableType, TypedProperties props, org.apache.spark.api.java.JavaSparkContext jssc, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.hive.conf.HiveConf hiveConf, java.util.function.Function<HoodieWriteClient,Boolean> onInitializingHoodieWriteClient) throws IOException
IOExceptionpublic Option<String> syncOnce() throws Exception
Exceptionpublic void setupWriteClient()
public void close()
Copyright © 2019 The Apache Software Foundation. All rights reserved.