public class HoodieSortedMergeHandleWithChangeLog<T,I,K,O> extends HoodieMergeHandleWithChangeLog<T,I,K,O>
cdcLoggerbaseFileToMerge, fileWriter, insertRecordsWritten, keyGeneratorOpt, keyToNewRecords, newFilePath, oldFilePath, partitionFields, partitionValues, preserveMetadata, recordsDeleted, recordsWritten, updatedRecordsWritten, writtenRecordKeysfileId, newRecordLocation, partitionPath, recordMerger, schemaOnReadEnabled, taskContextSupplier, timer, writeSchema, writeSchemaWithMetaFields, writeStatus, writeTokenconfig, hoodieTable, instantTime, storage| Constructor and Description |
|---|
HoodieSortedMergeHandleWithChangeLog(HoodieWriteConfig config,
String instantTime,
HoodieTable<T,I,K,O> hoodieTable,
Iterator<HoodieRecord<T>> recordItr,
String partitionPath,
String fileId,
TaskContextSupplier taskContextSupplier,
Option<BaseKeyGenerator> keyGeneratorOpt) |
HoodieSortedMergeHandleWithChangeLog(HoodieWriteConfig config,
String instantTime,
HoodieTable<T,I,K,O> hoodieTable,
Map<String,HoodieRecord<T>> keyToNewRecords,
String partitionPath,
String fileId,
HoodieBaseFile dataFileToBeMerged,
TaskContextSupplier taskContextSupplier,
Option<BaseKeyGenerator> keyGeneratorOpt)
Called by compactor code path.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
writeRecord(HoodieRecord<T> newRecord,
Option<HoodieRecord> insertRecord,
org.apache.avro.Schema schema,
Properties props) |
close, writeInsertRecord, writeUpdateRecordbaseFileForMerge, getIOType, getLatestBaseFile, getOldFilePath, getPartitionFields, getPartitionValues, getWriteStatusesAsIterator, init, initializeIncomingRecordsMap, makeOldAndNewFilePaths, performMergeDataValidationCheck, setPartitionFields, setPartitionValues, setWriteStatusPath, write, writeIncomingRecords, writeInsertRecord, writeToFilecanWrite, createLogWriter, createLogWriter, createMarkerFile, doWrite, getAttemptId, getConfig, getFileId, getHoodieTableMetaClient, getLogCreationCallback, getPartitionId, getPartitionPath, getStageId, getStorage, getWriterSchema, getWriterSchemaWithMetaFields, getWriteStatuses, isClosed, makeNewFilePath, makeNewPath, markClosed, toAvroRecord, writepublic HoodieSortedMergeHandleWithChangeLog(HoodieWriteConfig config, String instantTime, HoodieTable<T,I,K,O> hoodieTable, Iterator<HoodieRecord<T>> recordItr, String partitionPath, String fileId, TaskContextSupplier taskContextSupplier, Option<BaseKeyGenerator> keyGeneratorOpt)
public HoodieSortedMergeHandleWithChangeLog(HoodieWriteConfig config, String instantTime, HoodieTable<T,I,K,O> hoodieTable, Map<String,HoodieRecord<T>> keyToNewRecords, String partitionPath, String fileId, HoodieBaseFile dataFileToBeMerged, TaskContextSupplier taskContextSupplier, Option<BaseKeyGenerator> keyGeneratorOpt)
protected boolean writeRecord(HoodieRecord<T> newRecord, Option<HoodieRecord> insertRecord, org.apache.avro.Schema schema, Properties props) throws IOException
writeRecord in class HoodieMergeHandle<T,I,K,O>IOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.