Class RecordAttributesBuilder
- java.lang.Object
-
- org.apache.flink.streaming.runtime.streamrecord.RecordAttributesBuilder
-
@Experimental public class RecordAttributesBuilder extends Object
The builder class forRecordAttributes.
-
-
Constructor Summary
Constructors Constructor Description RecordAttributesBuilder(List<RecordAttributes> lastRecordAttributesOfInputs)This constructor takes a list of the last RecordAttributes received from each of the operator's inputs.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecordAttributesbuild()If any operator attribute is null, we will log it at DEBUG level and determine a non-null default value as described below.RecordAttributesBuildersetBacklog(boolean isBacklog)
-
-
-
Constructor Detail
-
RecordAttributesBuilder
public RecordAttributesBuilder(List<RecordAttributes> lastRecordAttributesOfInputs)
This constructor takes a list of the last RecordAttributes received from each of the operator's inputs. Each input is corresponding to an input edge of the job graph. When this list is not empty, it will be used to determine the default values for those attributes that have not been explicitly set by caller.
-
-
Method Detail
-
setBacklog
public RecordAttributesBuilder setBacklog(boolean isBacklog)
-
build
public RecordAttributes build()
If any operator attribute is null, we will log it at DEBUG level and determine a non-null default value as described below.Default value for backlog: if any element in lastRecordAttributesOfInputs has backlog=true, use true. Otherwise, use false.
-
-