public class HoodieFileWriterFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HoodieStorage |
storage |
| Constructor and Description |
|---|
HoodieFileWriterFactory(HoodieStorage storage) |
| Modifier and Type | Method and Description |
|---|---|
protected static BloomFilter |
createBloomFilter(HoodieConfig config) |
static boolean |
enableBloomFilter(boolean populateMetaFields,
HoodieConfig config)
Check if need to enable bloom filter.
|
static <T,I,K,O> HoodieFileWriter |
getFileWriter(HoodieFileFormat format,
OutputStream outputStream,
HoodieStorage storage,
HoodieConfig config,
org.apache.avro.Schema schema,
HoodieRecord.HoodieRecordType recordType) |
static <T,I,K,O> HoodieFileWriter |
getFileWriter(String instantTime,
StoragePath path,
HoodieStorage storage,
HoodieConfig config,
org.apache.avro.Schema schema,
TaskContextSupplier taskContextSupplier,
HoodieRecord.HoodieRecordType recordType) |
protected <T,I,K,O> HoodieFileWriter |
getFileWriterByFormat(HoodieFileFormat format,
OutputStream outputStream,
HoodieConfig config,
org.apache.avro.Schema schema) |
protected <T,I,K,O> HoodieFileWriter |
getFileWriterByFormat(String extension,
String instantTime,
StoragePath path,
HoodieConfig config,
org.apache.avro.Schema schema,
TaskContextSupplier taskContextSupplier) |
protected HoodieFileWriter |
newHFileFileWriter(String instantTime,
StoragePath path,
HoodieConfig config,
org.apache.avro.Schema schema,
TaskContextSupplier taskContextSupplier) |
protected HoodieFileWriter |
newOrcFileWriter(String instantTime,
StoragePath path,
HoodieConfig config,
org.apache.avro.Schema schema,
TaskContextSupplier taskContextSupplier) |
protected HoodieFileWriter |
newParquetFileWriter(OutputStream outputStream,
HoodieConfig config,
org.apache.avro.Schema schema) |
protected HoodieFileWriter |
newParquetFileWriter(String instantTime,
StoragePath path,
HoodieConfig config,
org.apache.avro.Schema schema,
TaskContextSupplier taskContextSupplier) |
protected final HoodieStorage storage
public HoodieFileWriterFactory(HoodieStorage storage)
public static <T,I,K,O> HoodieFileWriter getFileWriter(String instantTime, StoragePath path, HoodieStorage storage, HoodieConfig config, org.apache.avro.Schema schema, TaskContextSupplier taskContextSupplier, HoodieRecord.HoodieRecordType recordType) throws IOException
IOExceptionpublic static <T,I,K,O> HoodieFileWriter getFileWriter(HoodieFileFormat format, OutputStream outputStream, HoodieStorage storage, HoodieConfig config, org.apache.avro.Schema schema, HoodieRecord.HoodieRecordType recordType) throws IOException
IOExceptionprotected <T,I,K,O> HoodieFileWriter getFileWriterByFormat(String extension, String instantTime, StoragePath path, HoodieConfig config, org.apache.avro.Schema schema, TaskContextSupplier taskContextSupplier) throws IOException
IOExceptionprotected <T,I,K,O> HoodieFileWriter getFileWriterByFormat(HoodieFileFormat format, OutputStream outputStream, HoodieConfig config, org.apache.avro.Schema schema) throws IOException
IOExceptionprotected HoodieFileWriter newParquetFileWriter(String instantTime, StoragePath path, HoodieConfig config, org.apache.avro.Schema schema, TaskContextSupplier taskContextSupplier) throws IOException
IOExceptionprotected HoodieFileWriter newParquetFileWriter(OutputStream outputStream, HoodieConfig config, org.apache.avro.Schema schema) throws IOException
IOExceptionprotected HoodieFileWriter newHFileFileWriter(String instantTime, StoragePath path, HoodieConfig config, org.apache.avro.Schema schema, TaskContextSupplier taskContextSupplier) throws IOException
IOExceptionprotected HoodieFileWriter newOrcFileWriter(String instantTime, StoragePath path, HoodieConfig config, org.apache.avro.Schema schema, TaskContextSupplier taskContextSupplier) throws IOException
IOExceptionprotected static BloomFilter createBloomFilter(HoodieConfig config)
public static boolean enableBloomFilter(boolean populateMetaFields,
HoodieConfig config)
Copyright © 2024 The Apache Software Foundation. All rights reserved.