com.ibm.streams.operator.meta

Interface BoundedType

  • All Superinterfaces:
    Type


    public interface BoundedType
    extends Type
    Type specific information for SPL bounded types, BLIST, BMAP, BSET and BSTRING.

    Bounded types are limited to getBoundedSize() number of elements. On assignment of a value to a bounded type excess elements are silently dropped, when dropping elements the behavior is specific to the type.

    • For bounded lists elements beyond the bound are dropped so that the first getBoundedSize() elements will be kept.
    • For bounded rstrings bytes beyond the bound are dropped so that the first getBoundedSize() bytes will be kept. Note that the truncation is regardless of the encoding of the characters and thus with some encoding the truncation may result in an invalid encoded sequence.
    • For bounded maps and sets there is no guarantee as to which elements will be discarded, only that the assignment of a value with too many elements will result in a map or set of size getBoundedSize().

    • Method Detail

      • getBoundedSize

        int getBoundedSize()
        Get the bound size of the type.
        Returns:
        The bound size.