public static class HoodieDeltaStreamer.DeltaSyncService extends AbstractDeltaStreamerService
log| Constructor and Description |
|---|
DeltaSyncService(HoodieDeltaStreamer.Config cfg,
org.apache.spark.api.java.JavaSparkContext jssc,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.hive.conf.HiveConf hiveConf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close all resources
|
HoodieDeltaStreamer.AsyncCompactService |
getAsyncCompactService() |
DeltaSync |
getDeltaSync() |
org.apache.spark.api.java.JavaSparkContext |
getJavaSparkContext() |
TypedProperties |
getProps() |
SchemaProvider |
getSchemaProvider() |
org.apache.spark.sql.SparkSession |
getSparkSession() |
protected Boolean |
onInitializingWriteClient(HoodieWriteClient writeClient)
Callback to initialize write client and start compaction service if required
|
protected Pair<CompletableFuture,ExecutorService> |
startService()
Service implementation
|
startpublic DeltaSyncService(HoodieDeltaStreamer.Config cfg, org.apache.spark.api.java.JavaSparkContext jssc, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.hive.conf.HiveConf hiveConf) throws IOException
IOExceptionpublic DeltaSync getDeltaSync()
protected Pair<CompletableFuture,ExecutorService> startService()
AbstractDeltaStreamerServicestartService in class AbstractDeltaStreamerServiceprotected Boolean onInitializingWriteClient(HoodieWriteClient writeClient)
writeClient - HoodieWriteClientpublic void close()
public SchemaProvider getSchemaProvider()
public org.apache.spark.sql.SparkSession getSparkSession()
public org.apache.spark.api.java.JavaSparkContext getJavaSparkContext()
public HoodieDeltaStreamer.AsyncCompactService getAsyncCompactService()
public TypedProperties getProps()
Copyright © 2019 The Apache Software Foundation. All rights reserved.