@NotThreadSafe public class HoodieSortedMergeHandle<T,I,K,O> extends HoodieMergeHandle<T,I,K,O>
fileWriter, insertRecordsWritten, keyGeneratorOpt, keyToNewRecords, newFilePath, oldFilePath, partitionFields, partitionValues, recordsDeleted, recordsWritten, updatedRecordsWritten, useWriterSchemaForCompaction, writtenRecordKeysfileId, newRecordLocation, partitionPath, recordMerger, schemaOnReadEnabled, taskContextSupplier, timer, writeSchema, writeSchemaWithMetaFields, writeStatus, writeTokenconfig, fs, hoodieTable, instantTime| Constructor and Description |
|---|
HoodieSortedMergeHandle(HoodieWriteConfig config,
String instantTime,
HoodieTable<T,I,K,O> hoodieTable,
Iterator<HoodieRecord<T>> recordItr,
String partitionPath,
String fileId,
TaskContextSupplier taskContextSupplier,
Option<BaseKeyGenerator> keyGeneratorOpt) |
HoodieSortedMergeHandle(HoodieWriteConfig config,
String instantTime,
HoodieTable<T,I,K,O> hoodieTable,
Map<String,HoodieRecord<T>> keyToNewRecordsOrig,
String partitionPath,
String fileId,
HoodieBaseFile dataFileToBeMerged,
TaskContextSupplier taskContextSupplier,
Option<BaseKeyGenerator> keyGeneratorOpt)
Called by compactor code path.
|
| Modifier and Type | Method and Description |
|---|---|
List<WriteStatus> |
close() |
void |
write(HoodieRecord oldRecord)
Go through an old record.
|
baseFileForMerge, getIOType, getLatestBaseFile, getOldFilePath, getPartitionFields, getPartitionValues, init, initializeIncomingRecordsMap, makeOldAndNewFilePaths, performMergeDataValidationCheck, setPartitionFields, setPartitionValues, setWriteStatusPath, writeIncomingRecords, writeInsertRecord, writeInsertRecord, writeRecord, writeToFile, writeUpdateRecordcanWrite, createLogWriter, createLogWriter, createLogWriter, createMarkerFile, doWrite, getAttemptId, getConfig, getFileId, getFileSystem, getHoodieTableMetaClient, getPartitionId, getPartitionPath, getStageId, getWriterSchema, getWriterSchemaWithMetaFields, isClosed, makeNewFilePath, makeNewPath, markClosed, toAvroRecord, write, writeStatusespublic HoodieSortedMergeHandle(HoodieWriteConfig config, String instantTime, HoodieTable<T,I,K,O> hoodieTable, Iterator<HoodieRecord<T>> recordItr, String partitionPath, String fileId, TaskContextSupplier taskContextSupplier, Option<BaseKeyGenerator> keyGeneratorOpt)
public HoodieSortedMergeHandle(HoodieWriteConfig config, String instantTime, HoodieTable<T,I,K,O> hoodieTable, Map<String,HoodieRecord<T>> keyToNewRecordsOrig, String partitionPath, String fileId, HoodieBaseFile dataFileToBeMerged, TaskContextSupplier taskContextSupplier, Option<BaseKeyGenerator> keyGeneratorOpt)
public void write(HoodieRecord oldRecord)
public List<WriteStatus> close()
Copyright © 2023 The Apache Software Foundation. All rights reserved.