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
andBSTRING
.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()
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.ibm.streams.operator.Type
Type.Factory, Type.MetaType
-
-
Method Summary
Methods Modifier and Type Method and Description int
getBoundedSize()
Get the bound size of the type.-
Methods inherited from interface com.ibm.streams.operator.Type
getAsCompositeElementType, getDefaultValue, getLanguageType, getMetaType, getObjectType, randomValue, toString
-
-