public class HoodieUnboundedCreateHandle<T extends HoodieRecordPayload,I,K,O> extends HoodieCreateHandle<T,I,K,O>
Please use this with caution. This can end up creating very large files if not used correctly.
fileWriter, insertRecordsWritten, path, recordsDeleted, recordsWrittenfileId, IGNORE_RECORD, partitionPath, schemaOnReadEnabled, tableSchema, tableSchemaWithMetaFields, taskContextSupplier, timer, writeSchema, writeSchemaWithMetaFields, writeStatus, writeTokenconfig, fs, hoodieTable, instantTime| Constructor and Description |
|---|
HoodieUnboundedCreateHandle(HoodieWriteConfig config,
String instantTime,
HoodieTable<T,I,K,O> hoodieTable,
String partitionPath,
String fileId,
TaskContextSupplier taskContextSupplier,
boolean preserveHoodieMetadata) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWrite(HoodieRecord record)
Determines whether we can accept the incoming records, into the current file.
|
close, getIOType, setupWriteStatus, write, writecreateMarkerFile, createNewFileWriter, getAttemptId, getFileSystem, getPartitionId, getPartitionPath, getStageId, getWriterSchemaWithMetaFields, makeNewFilePath, makeNewPath, rewriteRecord, rewriteRecordWithMetadata, write, writeStatusespublic HoodieUnboundedCreateHandle(HoodieWriteConfig config, String instantTime, HoodieTable<T,I,K,O> hoodieTable, String partitionPath, String fileId, TaskContextSupplier taskContextSupplier, boolean preserveHoodieMetadata)
public boolean canWrite(HoodieRecord record)
HoodieWriteHandle- Whether it belongs to the same partitionPath as existing records - Whether the current file written bytes lt max file size
canWrite in class HoodieCreateHandle<T extends HoodieRecordPayload,I,K,O>Copyright © 2022 The Apache Software Foundation. All rights reserved.