Class RecordConfig

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Iterable<ComponentConfig>, SelectorConfig, Replicateable

    public class RecordConfig
    extends SegmentConfig
    implements SelectorConfig
    A record is a segment that is bound to a record in a stream. The physical representation of a record is dependent on the type of stream. A typical example might be a line in a fixed length or delimited flat file.
    Since:
    2.0
    • Constructor Detail

      • RecordConfig

        public RecordConfig()
    • Method Detail

      • getMinLength

        public java.lang.Integer getMinLength()
        Returns the minimum length of the record. Depending on the type of stream, the length may refer to the number of fields or the number of characters.
        Returns:
        the minimum record length, or null if not set
      • setMinLength

        public void setMinLength​(java.lang.Integer minLength)
        Sets the minimum length of the record. Depending on the type of stream, the length may refer to the number of fields or the number of characters.
        Parameters:
        minLength - the minimum record length, or null if not set
      • getMaxLength

        public java.lang.Integer getMaxLength()
        Returns the maximum length of the record. Depending on the type of stream, the length may refer to the number of fields or the number of characters.
        Returns:
        the maximum record length, or null if not set
      • setMaxLength

        public void setMaxLength​(java.lang.Integer maxLength)
        Sets the maximum length of the record. Depending on the type of stream, the length may refer to the number of fields or the number of characters.
        Parameters:
        maxLength - the maximum record length, or null if not set
      • getMinMatchLength

        public java.lang.Integer getMinMatchLength()
        Returns the minimum record length for identifying this record.
        Returns:
        the minimum record length, or null if no minimum length applies
      • setMinMatchLength

        public void setMinMatchLength​(java.lang.Integer minMatchLength)
        Sets the minimum record length for identifying this record.
        Parameters:
        minMatchLength - the minimum record length, or null if no minimum length applies
      • getMaxMatchLength

        public java.lang.Integer getMaxMatchLength()
        Returns the maximum record length for identifying this record.
        Returns:
        the maximum record length, or null if no maximum length applies
      • setMaxMatchLength

        public void setMaxMatchLength​(java.lang.Integer maxMatchLength)
        Sets the maximum record length for identifying this record.
        Parameters:
        maxMatchLength - the maximum record length, or null if no maximum length applies
      • getOrder

        public java.lang.Integer getOrder()
        Returns the order this record must appear within the context of its parent group component. Records and groups assigned the same order number may appear in any order.
        Specified by:
        getOrder in interface SelectorConfig
        Returns:
        the order of this record
      • setOrder

        public void setOrder​(java.lang.Integer order)
        Sets the order this record must appear within the context of its parent group component. Records and groups assigned the same order number may appear in any order.
        Specified by:
        setOrder in interface SelectorConfig
        Parameters:
        order - the order of this record