public interface HoodieFileGroupRecordBuffer<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
HoodieFileGroupRecordBuffer.BufferType |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
containsLogRecord(String recordKey)
Check if a record exists in the buffered records.
|
HoodieFileGroupRecordBuffer.BufferType |
getBufferType() |
Iterator<Pair<Option<T>,Map<String,Object>>> |
getLogRecordIterator() |
Map<Serializable,Pair<Option<T>,Map<String,Object>>> |
getLogRecords() |
boolean |
hasNext()
Check if next merged record exists.
|
T |
next() |
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.
|
void |
setBaseFileIterator(ClosableIterator<T> baseFileIterator)
Link the base file iterator for consequential merge.
|
int |
size() |
HoodieFileGroupRecordBuffer.BufferType getBufferType()
void processDataBlock(HoodieDataBlock dataBlock, Option<KeySpec> keySpecOpt) throws IOException
dataBlock - keySpecOpt - IOExceptionvoid processNextDataRecord(T record, Map<String,Object> metadata, Serializable index) throws IOException
record - metadata - ExceptionIOExceptionvoid processDeleteBlock(HoodieDeleteBlock deleteBlock) throws IOException
deleteBlock - IOExceptionvoid processNextDeletedRecord(DeleteRecord deleteRecord, Serializable index)
deleteRecord - boolean containsLogRecord(String recordKey)
int size()
Iterator<Pair<Option<T>,Map<String,Object>>> getLogRecordIterator()
Map<Serializable,Pair<Option<T>,Map<String,Object>>> getLogRecords()
void setBaseFileIterator(ClosableIterator<T> baseFileIterator)
baseFileIterator - boolean hasNext()
throws IOException
IOExceptionT next()
void close()
Copyright © 2024 The Apache Software Foundation. All rights reserved.