Default values of SPL types
Teracloud® Streams provides default values for SPL types.
The default values of SPL types are defined in the following table.
SPL types | Default values |
---|---|
Integer types | 0 |
boolean | false |
Float and decimal types | 0.0 |
For complex types | [0.0, 0.0] |
For string types | Empty string |
timestamp | 0 for all components |
blob | Empty blob with no elements |
List, set, map, bounded list, bounded set, and bounded map types | Their empty values |
Optional types | null |
Tuple types | The value of the tuple with all attributes initialized to their default values |
Enums | The first enumeration value |
XML | isDefaultValue(someXMLvalue) returns true |