Class RecordAttributesBuilder

java.lang.Object
org.apache.flink.streaming.runtime.streamrecord.RecordAttributesBuilder

@Experimental public class RecordAttributesBuilder extends Object
The builder class for RecordAttributes.
  • Constructor Details

    • 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 Details

    • 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.