public abstract class HoodieLazyInsertIterable<T extends HoodieRecordPayload> extends LazyIterableIterator<HoodieRecord<T>,List<WriteStatus>>
| Modifier and Type | Class and Description |
|---|---|
static class |
HoodieLazyInsertIterable.HoodieInsertValueGenResult<T extends HoodieRecord> |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
areRecordsSorted |
protected HoodieWriteConfig |
hoodieConfig |
protected HoodieTable |
hoodieTable |
protected String |
idPrefix |
protected String |
instantTime |
protected TaskContextSupplier |
taskContextSupplier |
protected WriteHandleFactory |
writeHandleFactory |
inputItr| Constructor and Description |
|---|
HoodieLazyInsertIterable(Iterator<HoodieRecord<T>> recordItr,
boolean areRecordsSorted,
HoodieWriteConfig config,
String instantTime,
HoodieTable hoodieTable,
String idPrefix,
TaskContextSupplier taskContextSupplier) |
HoodieLazyInsertIterable(Iterator<HoodieRecord<T>> recordItr,
boolean areRecordsSorted,
HoodieWriteConfig config,
String instantTime,
HoodieTable hoodieTable,
String idPrefix,
TaskContextSupplier taskContextSupplier,
WriteHandleFactory writeHandleFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
end()
Called once, after all elements are processed.
|
protected CopyOnWriteInsertHandler |
getInsertHandler() |
protected void |
start()
Called once, before any elements are processed.
|
computeNext, hasNext, iterator, next, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorforEachRemainingprotected final HoodieWriteConfig hoodieConfig
protected final String instantTime
protected boolean areRecordsSorted
protected final HoodieTable hoodieTable
protected final String idPrefix
protected TaskContextSupplier taskContextSupplier
protected WriteHandleFactory writeHandleFactory
public HoodieLazyInsertIterable(Iterator<HoodieRecord<T>> recordItr, boolean areRecordsSorted, HoodieWriteConfig config, String instantTime, HoodieTable hoodieTable, String idPrefix, TaskContextSupplier taskContextSupplier)
public HoodieLazyInsertIterable(Iterator<HoodieRecord<T>> recordItr, boolean areRecordsSorted, HoodieWriteConfig config, String instantTime, HoodieTable hoodieTable, String idPrefix, TaskContextSupplier taskContextSupplier, WriteHandleFactory writeHandleFactory)
protected void start()
LazyIterableIteratorstart in class LazyIterableIterator<HoodieRecord<T extends HoodieRecordPayload>,List<WriteStatus>>protected void end()
LazyIterableIteratorend in class LazyIterableIterator<HoodieRecord<T extends HoodieRecordPayload>,List<WriteStatus>>protected CopyOnWriteInsertHandler getInsertHandler()
Copyright © 2022 The Apache Software Foundation. All rights reserved.