Package ca.uqac.lif.cep.serialization
Class SerializeEvents<T>
java.lang.Object
ca.uqac.lif.cep.functions.Function
ca.uqac.lif.cep.serialization.SerializeEvents<T>
- Type Parameters:
T- The type of the serialized objects
- All Implemented Interfaces:
ca.uqac.lif.cep.Duplicable,ca.uqac.lif.cep.functions.DuplicableFunction
- Direct Known Subclasses:
JsonSerialize,JsonSerializeString
public class SerializeEvents<T>
extends ca.uqac.lif.cep.functions.Function
Function that applies a serializer to its input argument.
An
ApplyFunction
that applies a serialization function will be depicted graphically by
this pictogram:
The picture represents an event that is "packed" into a box with a barcode, representing its serialized form.
- Author:
- Sylvain Hallé
-
Field Summary
FieldsModifier and TypeFieldDescriptionA reference to the class of the serialized objects.protected ca.uqac.lif.azrael.ObjectPrinter<T> The serializerFields inherited from class ca.uqac.lif.cep.functions.Function
s_maxInputArity -
Constructor Summary
ConstructorsConstructorDescriptionSerializeEvents(ca.uqac.lif.azrael.ObjectPrinter<T> s, Class<T> output_type) Creates a new instance of the function. -
Method Summary
Modifier and TypeMethodDescriptionduplicate(boolean with_state) voidintvoidgetInputTypesFor(Set<Class<?>> classes, int index) intClass<?> getOutputTypeFor(int index) voidreset()Methods inherited from class ca.uqac.lif.cep.functions.Function
duplicate, evaluate, evaluate, evaluateLazy, evaluatePartial, printState, readState
-
Field Details
-
m_serializer
The serializer -
m_outputType
A reference to the class of the serialized objects. This is used ingetOutputTypeFor(int)to return the output type for this processor.
-
-
Constructor Details
-
SerializeEvents
Creates a new instance of the function.- Parameters:
s- The serializer used to serialize the function's argumentsoutput_type- A reference to the class of the serialized objects
-
-
Method Details
-
evaluate
- Specified by:
evaluatein classca.uqac.lif.cep.functions.Function
-
getInputArity
public int getInputArity()- Specified by:
getInputArityin classca.uqac.lif.cep.functions.Function
-
getOutputArity
public int getOutputArity()- Specified by:
getOutputArityin classca.uqac.lif.cep.functions.Function
-
reset
public void reset()- Overrides:
resetin classca.uqac.lif.cep.functions.Function
-
duplicate
- Specified by:
duplicatein interfaceca.uqac.lif.cep.Duplicable- Specified by:
duplicatein classca.uqac.lif.cep.functions.Function
-
getInputTypesFor
- Specified by:
getInputTypesForin classca.uqac.lif.cep.functions.Function
-
getOutputTypeFor
- Specified by:
getOutputTypeForin classca.uqac.lif.cep.functions.Function
-
