public class CoreUtils extends Object
| Constructor and Description |
|---|
CoreUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.wso2.siddhi.core.executor.VariableExpressionExecutor |
extractAndValidateClassLabel(org.wso2.siddhi.query.api.definition.AbstractDefinition inputDefinition,
org.wso2.siddhi.core.executor.ExpressionExecutor[] attributeExpressionExecutors,
int classIndex)
Validate and extract Class label executor
|
static List<org.wso2.siddhi.core.executor.VariableExpressionExecutor> |
extractAndValidateFeatures(org.wso2.siddhi.query.api.definition.AbstractDefinition inputDefinition,
org.wso2.siddhi.core.executor.ExpressionExecutor[] attributeExpressionExecutors,
int startIndex,
int noOfFeatures)
Validate and extract feature attribute executors
|
static boolean |
isLabelType(org.wso2.siddhi.query.api.definition.Attribute.Type attributeType)
Check label attribute to be a valid type
|
public static List<org.wso2.siddhi.core.executor.VariableExpressionExecutor> extractAndValidateFeatures(org.wso2.siddhi.query.api.definition.AbstractDefinition inputDefinition, org.wso2.siddhi.core.executor.ExpressionExecutor[] attributeExpressionExecutors, int startIndex, int noOfFeatures)
inputDefinition - the incoming stream definitionattributeExpressionExecutors - the executors of each function parametersstartIndex - starting index of the feature attributesnoOfFeatures - number of feature attributespublic static boolean isLabelType(org.wso2.siddhi.query.api.definition.Attribute.Type attributeType)
attributeType - label feature attribute typepublic static org.wso2.siddhi.core.executor.VariableExpressionExecutor extractAndValidateClassLabel(org.wso2.siddhi.query.api.definition.AbstractDefinition inputDefinition,
org.wso2.siddhi.core.executor.ExpressionExecutor[] attributeExpressionExecutors,
int classIndex)
inputDefinition - the incoming stream definitionattributeExpressionExecutors - the executors of each function parametersclassIndex - index of the class label attributeCopyright © 2018 WSO2. All rights reserved.