Package ca.uqac.lif.cep.tuples
Class ProjectTuple
java.lang.Object
ca.uqac.lif.cep.functions.Function
ca.uqac.lif.cep.tuples.ProjectTuple
- All Implemented Interfaces:
ca.uqac.lif.cep.Duplicable,ca.uqac.lif.cep.functions.DuplicableFunction
public class ProjectTuple
extends ca.uqac.lif.cep.functions.Function
Creates an output tuple from input tuples by combining their values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAssociates a tuple's key to a function to be evaluated on input tuples -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FixedTupleBuilderThe builder used to create the output tuplesprotected intThe function's input arityprotected ProjectTuple.NameFunctionPair[]The list of associations between the output tuple's key and its corresponding valueFields inherited from class ca.uqac.lif.cep.functions.Function
s_maxInputArity -
Constructor Summary
ConstructorsConstructorDescriptionProjectTuple(int input_arity, ProjectTuple.NameFunctionPair... pairs) Creates a new instance of the functionProjectTuple(ProjectTuple.NameFunctionPair... pairs) Creates a new instance of the function -
Method Summary
Modifier and TypeMethodDescriptionca.uqac.lif.cep.functions.Functionduplicate(boolean with_state) voidintvoidgetInputTypesFor(Set<Class<?>> classes, int index) intClass<?> getOutputTypeFor(int index) Methods inherited from class ca.uqac.lif.cep.functions.Function
duplicate, evaluate, evaluate, evaluateLazy, evaluatePartial, printState, readState, reset
-
Field Details
-
m_inputArity
protected int m_inputArityThe function's input arity -
m_pairs
The list of associations between the output tuple's key and its corresponding value -
m_builder
The builder used to create the output tuples
-
-
Constructor Details
-
ProjectTuple
Creates a new instance of the function- Parameters:
input_arity- The function's input aritypairs- The list of associations between the output tuple's key and its corresponding value
-
ProjectTuple
Creates a new instance of the function- Parameters:
pairs- The list of associations between the output tuple's key and its corresponding value
-
-
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
-
getInputTypesFor
- Specified by:
getInputTypesForin classca.uqac.lif.cep.functions.Function
-
getOutputTypeFor
- Specified by:
getOutputTypeForin classca.uqac.lif.cep.functions.Function
-
duplicate
public ca.uqac.lif.cep.functions.Function duplicate(boolean with_state) - Specified by:
duplicatein interfaceca.uqac.lif.cep.Duplicable- Specified by:
duplicatein classca.uqac.lif.cep.functions.Function
-