Examples of AggregationFunctionFactory


Examples of com.espertech.esper.client.hook.AggregationFunctionFactory

        }

        // try plug-in aggregation function
        try
        {
            AggregationFunctionFactory aggregationFactory = engineImportService.resolveAggregationFactory(childNodeText);
            astExprNodeMap.put(node, new ExprPlugInAggFunctionFactoryNode(isDistinct, aggregationFactory, childNodeText));
            return;
        }
        catch (EngineImportUndefinedException e)
        {
View Full Code Here

Examples of com.espertech.esper.client.hook.AggregationFunctionFactory

                                             String functionName,
                                             LazyAllocatedMap<ConfigurationPlugInAggregationMultiFunction, PlugInAggregationMultiFunctionFactory> plugInAggregations,
                                             String engineURI) {
        try
        {
            AggregationFunctionFactory aggregationFactory = engineImportService.resolveAggregationFactory(functionName);
            return new ExprPlugInAggFunctionFactoryNode(distinct, aggregationFactory, functionName);
        }
        catch (EngineImportUndefinedException e)
        {
            // Not an aggregation function
View Full Code Here

Examples of com.espertech.esper.client.hook.AggregationFunctionFactory

        }

        // Try an aggregation function factory
        try
        {
            AggregationFunctionFactory aggregationFactory = validationContext.getMethodResolutionService().resolveAggregationFactory(parse.getMethodName());
            ExprNode result = new ExprPlugInAggFunctionFactoryNode(false, aggregationFactory, parse.getMethodName());
            result.addChildNode(new ExprConstantNodeImpl(parse.getArgString()));

            // Validate
            try
View Full Code Here

Examples of com.espertech.esper.client.hook.AggregationFunctionFactory

                                             String functionName,
                                             LazyAllocatedMap<ConfigurationPlugInAggregationMultiFunction, PlugInAggregationMultiFunctionFactory> plugInAggregations,
                                             String engineURI) {
        try
        {
            AggregationFunctionFactory aggregationFactory = engineImportService.resolveAggregationFactory(functionName);
            return new ExprPlugInAggFunctionFactoryNode(distinct, aggregationFactory, functionName);
        }
        catch (EngineImportUndefinedException e)
        {
            // Not an aggregation function
View Full Code Here

Examples of com.espertech.esper.client.hook.AggregationFunctionFactory

        }

        // Try an aggregation function factory
        try
        {
            AggregationFunctionFactory aggregationFactory = validationContext.getMethodResolutionService().resolveAggregationFactory(parse.getMethodName());
            ExprNode result = new ExprPlugInAggFunctionFactoryNode(false, aggregationFactory, parse.getMethodName());
            result.addChildNode(new ExprConstantNodeImpl(parse.getArgString()));

            // Validate
            try
View Full Code Here

Examples of com.espertech.esper.client.hook.AggregationFunctionFactory

        }

        // Try an aggregation function factory
        try
        {
            AggregationFunctionFactory aggregationFactory = validationContext.getMethodResolutionService().resolveAggregationFactory(parse.getMethodName());
            ExprNode result = new ExprPlugInAggFunctionFactoryNode(false, aggregationFactory, parse.getMethodName());
            result.addChildNode(new ExprConstantNodeImpl(parse.getArgString()));

            // Validate
            try
View Full Code Here

Examples of com.espertech.esper.client.hook.AggregationFunctionFactory

        }

        // try plug-in aggregation function
        try
        {
            AggregationFunctionFactory aggregationFactory = engineImportService.resolveAggregationFactory(childNodeText);
            astExprNodeMap.put(node, new ExprPlugInAggFunctionFactoryNode(isDistinct, aggregationFactory, childNodeText));
            return;
        }
        catch (EngineImportUndefinedException e)
        {
View Full Code Here

Examples of com.espertech.esper.client.hook.AggregationFunctionFactory

            PlugInProjectionExpression node = (PlugInProjectionExpression) expr;

            // first try the configured aggregation
            try
            {
                AggregationFunctionFactory aggregationFactory = mapContext.getEngineImportService().resolveAggregationFactory(node.getFunctionName());
                return new ExprPlugInAggFunctionFactoryNode(node.isDistinct(), aggregationFactory, node.getFunctionName());
            }
            catch (Exception e)
            {
                // then try the builtin aggregation
View Full Code Here

Examples of eu.stratosphere.api.java.aggregation.AggregationFunctionFactory

   
    if (field < 0 || field >= inType.getArity()) {
      throw new IllegalArgumentException("Aggregation field position is out of range.");
    }
   
    AggregationFunctionFactory factory = function.getFactory();
    AggregationFunction<?> aggFunct = factory.createAggregationFunction(inType.getTypeAt(field).getTypeClass());
   
    // this is the first aggregation operator after a regular data set (non grouped aggregation)
    this.aggregationFunctions.add(aggFunct);
    this.fields.add(field);
    this.grouping = null;
View Full Code Here

Examples of eu.stratosphere.api.java.aggregation.AggregationFunctionFactory

   
    if (field < 0 || field >= inType.getArity()) {
      throw new IllegalArgumentException("Aggregation field position is out of range.");
    }
   
    AggregationFunctionFactory factory = function.getFactory();
    AggregationFunction<?> aggFunct = factory.createAggregationFunction(inType.getTypeAt(field).getTypeClass());
   
    // set the aggregation fields
    this.aggregationFunctions.add(aggFunct);
    this.fields.add(field);
    this.grouping = input;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.