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 boolean |
preserveHoodieMetadata |
protected org.apache.flink.table.types.logical.RowType |
rowType |
protected long |
taskEpochId |
protected int |
taskPartitionId |
protected long |
totalSubtaskNum |
protected HoodieWriteConfig |
writeConfig |
| Constructor and Description |
|---|
BulkInsertWriterHelper(org.apache.flink.configuration.Configuration conf,
HoodieTable hoodieTable,
HoodieWriteConfig writeConfig,
String instantTime,
int taskPartitionId,
long totalSubtaskNum,
long taskEpochId,
org.apache.flink.table.types.logical.RowType rowType) |
BulkInsertWriterHelper(org.apache.flink.configuration.Configuration conf,
HoodieTable hoodieTable,
HoodieWriteConfig writeConfig,
String instantTime,
int taskPartitionId,
long totalSubtaskNum,
long taskEpochId,
org.apache.flink.table.types.logical.RowType rowType,
boolean preserveHoodieMetadata) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.flink.table.types.logical.RowType |
addMetadataFields(org.apache.flink.table.types.logical.RowType rowType,
boolean withOperationField)
Adds the Hoodie metadata fields to the given row type.
|
void |
close() |
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 totalSubtaskNum
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 preserveHoodieMetadata
protected final Boolean isInputSorted
protected HoodieRowDataCreateHandle handle
protected final Map<String,HoodieRowDataCreateHandle> handles
@Nullable protected final RowDataKeyGen keyGen
public BulkInsertWriterHelper(org.apache.flink.configuration.Configuration conf,
HoodieTable hoodieTable,
HoodieWriteConfig writeConfig,
String instantTime,
int taskPartitionId,
long totalSubtaskNum,
long taskEpochId,
org.apache.flink.table.types.logical.RowType rowType)
public BulkInsertWriterHelper(org.apache.flink.configuration.Configuration conf,
HoodieTable hoodieTable,
HoodieWriteConfig writeConfig,
String instantTime,
int taskPartitionId,
long totalSubtaskNum,
long taskEpochId,
org.apache.flink.table.types.logical.RowType rowType,
boolean preserveHoodieMetadata)
public String getInstantTime()
public void write(org.apache.flink.table.data.RowData record)
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic static org.apache.flink.table.types.logical.RowType addMetadataFields(org.apache.flink.table.types.logical.RowType rowType,
boolean withOperationField)
public List<WriteStatus> getWriteStatuses(int taskID)
Copyright © 2023 The Apache Software Foundation. All rights reserved.