Operator Deserializer
De-Serialization operator. This operator reverts the operation of operator Serializer. The data received with parameter serializedData are de-serialized an assigned to the designated output attributes. Designated attributes are either
output attributes with assignment from output function deserialized(int32 i)
or
all output attributes if the operator invocation has no explicit output assignment.
The types, names and order of the serialized attributes and of the designated output attributes must be equal.
When the Serializer sends the embedded type list, the received type list is checked against the types and names of the designated output attributes. If the type does not match an exception is thrown and the operator terminates. This parameter specifies the list of the designated attributes where the de-serialization results are .
Summary
- Ports
- This operator has 1 input port and 1 output port.
- Windowing
- This operator does not accept any windowing configurations.
- Parameters
- This operator supports 1 parameter.
Required: serializedData
- Metrics
- This operator does not report any metrics.
Properties
- Implementation
- C++
- Threading
- Always - Operator always provides a single threaded execution context.
- Ports (0)
-
The input port receives the input data to de-serialize in a single attribute of type blob. See parameter serializedData.
- Properties
-
- Optional: false
- ControlPort: false
- TupleMutationAllowed: false
- WindowingMode: NonWindowed
- WindowPunctuationInputMode: Oblivious
- Assignments
- This operator allows any SPL expression of the correct type to be assigned to output attributes.
- Output Functions
-
- DeserializationFunctions
-
- <any T> T AsIs(T)
-
The default function for output attributes. This function assigns the output attribute to the value of the input attribute with the same name.
- <any T> T deserialized(int32 i)
-
De-serialized data attribute with index i. The index starts with zero. The index parameter i must be a single compile time constant literal.
- Ports (0)
-
If no output clause is present in the operator invocation, all output tuple attributes are designated for de-serialization.
- Properties
-
- Optional: false
- TupleMutationAllowed: true
- WindowPunctuationOutputMode: Free
Required: serializedData
- serializedData
-
This parameter specifies the attribute with the serialized data. The attribute must be of type blob. The data of this attribute are de-serialized and the results are assigned to the designated output attributes.
- Properties
-
- Type: blob
- Cardinality: 1
- Optional: false
- ExpressionMode: Attribute