Class GroupConfig

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

    public class GroupConfig
    extends PropertyConfig
    implements SelectorConfig
    A group is used to organize records and the overall structure of a stream. A group may contain records and/or other groups. In many cases, a group does not map to any physical aspect of a stream.

    The minSize, maxSize, and nillable attributes do not apply to groups.

    Since:
    2.0
    • Constructor Detail

      • GroupConfig

        public GroupConfig()
    • Method Detail

      • getOrder

        public java.lang.Integer getOrder()
        Returns the order this group 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 group 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
      • getKey

        public java.lang.String getKey()
        Returns the name of the property descendant to use for the Map key when collection is set to map.
        Overrides:
        getKey in class PropertyConfig
        Returns:
        the key property name
      • setKey

        public void setKey​(java.lang.String key)
        Sets the name of the property descendant to use for the Map key when collection is set to map.
        Parameters:
        key - the key property name
      • getTarget

        public java.lang.String getTarget()
        Returns the name of the target property for this group.
        Returns:
        the target property name
      • setTarget

        public void setTarget​(java.lang.String target)
        Sets the name of the target property for this group, which can be used in lieu of class to return descendant property types.
        Parameters:
        target - the target property name