@PublicEvolving public class BinaryRecordDataGenerator extends Object
BinaryRecordData.| Constructor and Description |
|---|
BinaryRecordDataGenerator(org.apache.flink.cdc.common.types.DataType[] dataTypes) |
BinaryRecordDataGenerator(org.apache.flink.cdc.common.types.DataType[] dataTypes,
org.apache.flink.api.common.typeutils.TypeSerializer[] serializers) |
BinaryRecordDataGenerator(org.apache.flink.cdc.common.types.RowType recordType) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.cdc.common.data.binary.BinaryRecordData |
generate(Object[] rowFields)
Creates an instance of
BinaryRecordData with given field values. |
public BinaryRecordDataGenerator(org.apache.flink.cdc.common.types.RowType recordType)
public BinaryRecordDataGenerator(org.apache.flink.cdc.common.types.DataType[] dataTypes)
public BinaryRecordDataGenerator(org.apache.flink.cdc.common.types.DataType[] dataTypes,
org.apache.flink.api.common.typeutils.TypeSerializer[] serializers)
public org.apache.flink.cdc.common.data.binary.BinaryRecordData generate(Object[] rowFields)
BinaryRecordData with given field values.
Note: All fields of the record must be internal data structures. See RecordData.
Copyright © 2024 The Apache Software Foundation. All rights reserved.