public class HoodieUnmergedFileGroupRecordBuffer<T> extends HoodieBaseFileGroupRecordBuffer<T>
HoodieFileGroupRecordBuffer.BufferTypebaseFileIterator, enablePartialMerging, hoodieTableMetaClient, internalSchema, logRecordIterator, nextRecord, partitionNameOverrideOpt, partitionPathFieldOpt, props, readerContext, readerSchema, recordMergeMode, recordMerger, records| Constructor and Description |
|---|
HoodieUnmergedFileGroupRecordBuffer(HoodieReaderContext<T> readerContext,
HoodieTableMetaClient hoodieTableMetaClient,
Option<String> partitionNameOverrideOpt,
Option<String[]> partitionPathFieldOpt,
HoodieRecordMerger recordMerger,
TypedProperties props) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLogRecord(String recordKey)
Check if a record exists in the buffered records.
|
protected boolean |
doHasNext()
This allows hasNext() to be called multiple times without incrementing the iterator by more than 1
record.
|
HoodieFileGroupRecordBuffer.BufferType |
getBufferType() |
Iterator<Pair<Option<T>,Map<String,Object>>> |
getLogRecordIterator() |
void |
processDataBlock(HoodieDataBlock dataBlock,
Option<KeySpec> keySpecOpt)
Process a log data block, and store the resulting records into the buffer.
|
void |
processDeleteBlock(HoodieDeleteBlock deleteBlock)
Process a log delete block, and store the resulting records into the buffer.
|
void |
processNextDataRecord(T record,
Map<String,Object> metadata,
Serializable index)
Process a next record in a log data block.
|
void |
processNextDeletedRecord(DeleteRecord deleteRecord,
Serializable index)
Process next delete record.
|
close, composeEvolvedSchemaTransformer, doProcessNextDataRecord, doProcessNextDeletedRecord, getLogRecords, getRecordsIterator, getSchemaTransformerWithEvolvedSchema, hasNext, hasNextBaseRecord, hasNextLogRecord, merge, next, setBaseFileIterator, sizepublic HoodieUnmergedFileGroupRecordBuffer(HoodieReaderContext<T> readerContext, HoodieTableMetaClient hoodieTableMetaClient, Option<String> partitionNameOverrideOpt, Option<String[]> partitionPathFieldOpt, HoodieRecordMerger recordMerger, TypedProperties props)
protected boolean doHasNext()
throws IOException
HoodieBaseFileGroupRecordBufferdoHasNext in class HoodieBaseFileGroupRecordBuffer<T>IOExceptionpublic Iterator<Pair<Option<T>,Map<String,Object>>> getLogRecordIterator()
getLogRecordIterator in interface HoodieFileGroupRecordBuffer<T>getLogRecordIterator in class HoodieBaseFileGroupRecordBuffer<T>public HoodieFileGroupRecordBuffer.BufferType getBufferType()
public void processDataBlock(HoodieDataBlock dataBlock, Option<KeySpec> keySpecOpt)
HoodieFileGroupRecordBufferpublic void processNextDataRecord(T record, Map<String,Object> metadata, Serializable index)
HoodieFileGroupRecordBufferpublic void processDeleteBlock(HoodieDeleteBlock deleteBlock)
HoodieFileGroupRecordBufferpublic void processNextDeletedRecord(DeleteRecord deleteRecord, Serializable index)
HoodieFileGroupRecordBufferpublic boolean containsLogRecord(String recordKey)
HoodieFileGroupRecordBufferCopyright © 2024 The Apache Software Foundation. All rights reserved.