public abstract class HoodieBootstrapSchemaProvider extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HoodieWriteConfig |
writeConfig |
| Constructor and Description |
|---|
HoodieBootstrapSchemaProvider(HoodieWriteConfig writeConfig) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.avro.Schema |
getBootstrapSchema(HoodieEngineContext context,
List<Pair<String,List<HoodieFileStatus>>> partitions)
Main API to select avro schema for bootstrapping.
|
protected abstract org.apache.avro.Schema |
getBootstrapSourceSchema(HoodieEngineContext context,
List<Pair<String,List<HoodieFileStatus>>> partitions)
Select a random file to be used to generate avro schema.
|
protected final HoodieWriteConfig writeConfig
public HoodieBootstrapSchemaProvider(HoodieWriteConfig writeConfig)
public final org.apache.avro.Schema getBootstrapSchema(HoodieEngineContext context, List<Pair<String,List<HoodieFileStatus>>> partitions)
context - HoodieEngineContextpartitions - List of partitions with files within themprotected abstract org.apache.avro.Schema getBootstrapSourceSchema(HoodieEngineContext context, List<Pair<String,List<HoodieFileStatus>>> partitions)
context - HoodieEngineContextpartitions - List of partitions with files within themCopyright © 2023 The Apache Software Foundation. All rights reserved.