public class HoodieTestSuiteWriter extends Object implements Serializable
HoodieDeltaStreamerWrapper and SparkRDDWriteClient.| Modifier and Type | Field and Description |
|---|---|
protected HoodieTestSuiteJob.HoodieTestSuiteConfig |
cfg |
| Constructor and Description |
|---|
HoodieTestSuiteWriter(org.apache.spark.api.java.JavaSparkContext jsc,
Properties props,
HoodieTestSuiteJob.HoodieTestSuiteConfig cfg,
String schema) |
protected HoodieTestSuiteJob.HoodieTestSuiteConfig cfg
public HoodieTestSuiteWriter(org.apache.spark.api.java.JavaSparkContext jsc,
Properties props,
HoodieTestSuiteJob.HoodieTestSuiteConfig cfg,
String schema)
throws Exception
Exceptionpublic org.apache.hudi.config.HoodieWriteConfig getWriteConfig()
public org.apache.spark.rdd.RDD<org.apache.avro.generic.GenericRecord> getNextBatch()
throws Exception
Exceptionpublic org.apache.hudi.common.util.collection.Pair<SchemaProvider,org.apache.hudi.common.util.collection.Pair<String,org.apache.spark.api.java.JavaRDD<org.apache.hudi.common.model.HoodieRecord>>> fetchSource() throws Exception
Exceptionpublic org.apache.hudi.common.util.Option<String> startCommit()
public org.apache.spark.api.java.JavaRDD<org.apache.hudi.client.WriteStatus> upsert(org.apache.hudi.common.util.Option<String> instantTime) throws Exception
Exceptionpublic org.apache.spark.api.java.JavaRDD<org.apache.hudi.client.WriteStatus> insert(org.apache.hudi.common.util.Option<String> instantTime) throws Exception
Exceptionpublic org.apache.spark.api.java.JavaRDD<org.apache.hudi.client.WriteStatus> bulkInsert(org.apache.hudi.common.util.Option<String> instantTime) throws Exception
Exceptionpublic org.apache.spark.api.java.JavaRDD<org.apache.hudi.client.WriteStatus> compact(org.apache.hudi.common.util.Option<String> instantTime) throws Exception
Exceptionpublic void inlineClustering()
public org.apache.hudi.common.util.Option<String> scheduleCompaction(org.apache.hudi.common.util.Option<Map<String,String>> previousCommitExtraMetadata) throws Exception
Exceptionpublic void commit(org.apache.spark.api.java.JavaRDD<org.apache.hudi.client.WriteStatus> records, org.apache.spark.api.java.JavaRDD<DeltaWriteStats> generatedDataStats, org.apache.hudi.common.util.Option<String> instantTime)
public org.apache.hudi.client.SparkRDDWriteClient getWriteClient(DagNode dagNode) throws IllegalAccessException
IllegalAccessExceptionpublic HoodieDeltaStreamerWrapper getDeltaStreamerWrapper()
public HoodieTestSuiteJob.HoodieTestSuiteConfig getCfg()
public org.apache.hadoop.conf.Configuration getConfiguration()
public org.apache.spark.api.java.JavaSparkContext getSparkContext()
public org.apache.hudi.common.util.Option<String> getLastCheckpoint()
public Properties getProps()
public String getSchema()
Copyright © 2021 The Apache Software Foundation. All rights reserved.