public static class HoodieDeltaStreamer.DeltaSyncService extends HoodieAsyncService
Constructor and Description |
---|
DeltaSyncService(HoodieDeltaStreamer.Config cfg,
org.apache.spark.api.java.JavaSparkContext jssc,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf) |
DeltaSyncService(HoodieDeltaStreamer.Config cfg,
org.apache.spark.api.java.JavaSparkContext jssc,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf,
Option<TypedProperties> properties) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close all resources.
|
DeltaSync |
getDeltaSync() |
TypedProperties |
getProps() |
SchemaProvider |
getSchemaProvider() |
org.apache.spark.sql.SparkSession |
getSparkSession() |
protected Boolean |
onInitializingWriteClient(SparkRDDWriteClient writeClient)
Callback to initialize write client and start compaction service if required.
|
protected Pair<CompletableFuture,ExecutorService> |
startService() |
enqueuePendingAsyncServiceInstant, isRunInDaemonMode, isShutdown, isShutdownRequested, shutdown, start, waitForShutdown, waitTillPendingAsyncServiceInstantsReducesTo
public DeltaSyncService(HoodieDeltaStreamer.Config cfg, org.apache.spark.api.java.JavaSparkContext jssc, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf, Option<TypedProperties> properties) throws IOException
IOException
public DeltaSyncService(HoodieDeltaStreamer.Config cfg, org.apache.spark.api.java.JavaSparkContext jssc, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public DeltaSync getDeltaSync()
protected Pair<CompletableFuture,ExecutorService> startService()
startService
in class HoodieAsyncService
protected Boolean onInitializingWriteClient(SparkRDDWriteClient writeClient)
writeClient
- HoodieWriteClientpublic void close()
public SchemaProvider getSchemaProvider()
public org.apache.spark.sql.SparkSession getSparkSession()
public TypedProperties getProps()
Copyright © 2021 The Apache Software Foundation. All rights reserved.