public class BulkInsertWriterHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HoodieRowDataCreateHandle |
handle |
protected Map<String,HoodieRowDataCreateHandle> |
handles |
protected HoodieTable |
hoodieTable |
protected String |
instantTime |
protected Boolean |
isInputSorted |
protected RowDataKeyGen |
keyGen |
protected org.apache.flink.table.types.logical.RowType |
rowType |
protected long |
taskEpochId |
protected long |
taskId |
protected int |
taskPartitionId |
protected HoodieWriteConfig |
writeConfig |
| Constructor and Description |
|---|
BulkInsertWriterHelper(org.apache.flink.configuration.Configuration conf,
HoodieTable hoodieTable,
HoodieWriteConfig writeConfig,
String instantTime,
int taskPartitionId,
long taskId,
long taskEpochId,
org.apache.flink.table.types.logical.RowType rowType) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<HoodieInternalWriteStatus> |
getHoodieWriteStatuses() |
String |
getInstantTime()
Returns the write instant time.
|
List<WriteStatus> |
getWriteStatuses(int taskID) |
void |
write(org.apache.flink.table.data.RowData record) |
protected final String instantTime
protected final int taskPartitionId
protected final long taskId
protected final long taskEpochId
protected final HoodieTable hoodieTable
protected final HoodieWriteConfig writeConfig
protected final org.apache.flink.table.types.logical.RowType rowType
protected final Boolean isInputSorted
protected HoodieRowDataCreateHandle handle
protected final Map<String,HoodieRowDataCreateHandle> handles
protected final RowDataKeyGen keyGen
public BulkInsertWriterHelper(org.apache.flink.configuration.Configuration conf,
HoodieTable hoodieTable,
HoodieWriteConfig writeConfig,
String instantTime,
int taskPartitionId,
long taskId,
long taskEpochId,
org.apache.flink.table.types.logical.RowType rowType)
public String getInstantTime()
public void write(org.apache.flink.table.data.RowData record)
throws IOException
IOExceptionpublic List<HoodieInternalWriteStatus> getHoodieWriteStatuses() throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic List<WriteStatus> getWriteStatuses(int taskID)
Copyright © 2022 The Apache Software Foundation. All rights reserved.