Examples of Aggregation


Examples of com.dianping.cat.configuration.aggreation.model.entity.Aggregation

      }
    } catch (Exception e) {
      Cat.logError(e);
    }
    if (m_aggregation == null) {
      m_aggregation = new Aggregation();
    }
    m_handler.register(queryAggregationRules());

    Threads.forGroup("cat").start(new ConfigReloadTask());
  }
View Full Code Here

Examples of com.dianping.cat.configuration.aggreation.model.entity.Aggregation

      return DefaultSaxParser.parse(content);
    } catch (Exception e) {
      Cat.logError(e);
    }
    return new Aggregation();
  }
View Full Code Here

Examples of com.dianping.cat.configuration.aggreation.model.entity.Aggregation

    long modifyTime = config.getModifyDate().getTime();

    synchronized (this) {
      if (modifyTime > m_modifyTime) {
        String content = config.getContent();
        Aggregation aggregation = DefaultSaxParser.parse(content);

        m_aggregation = aggregation;
        m_handler.register(queryAggregationRules());
        m_modifyTime = modifyTime;
      }
View Full Code Here

Examples of com.google.code.lightssh.common.model.page.Aggregation

        || page.getAggregationList().isEmpty() )
      return page;
   
    StringBuffer agg_hql = new StringBuffer(" SELECT ");
    for( int i=0;i<page.getAggregationList().size();i++ ){
      Aggregation item = page.getAggregationList().get(i);
      if( i != 0 )
        agg_hql.append(",");
      agg_hql.append( item.getFun().name());
      agg_hql.append( " ( "+item.getProperty()+" ) ");
    }
   
    agg_hql.append( from_jqpl );
    Query query = session.createQuery( agg_hql.toString() );
    addQueryParams( query,params );
View Full Code Here

Examples of com.google.code.lightssh.common.model.page.Aggregation

        || page.getAggregationList().isEmpty() )
      return page;
   
    StringBuffer agg_hql = new StringBuffer(" SELECT ");
    for( int i=0;i<page.getAggregationList().size();i++ ){
      Aggregation item = page.getAggregationList().get(i);
      if( i != 0 )
        agg_hql.append(",");
      agg_hql.append( item.getFun().name());
      agg_hql.append( " ( "+item.getProperty()+" ) ");
    }
   
    agg_hql.append( from_jqpl );
    //List<Object> results = getJpaTemplate().find( agg_hql.toString(),params );
    Query query = getEntityManager().createQuery(agg_hql.toString());
View Full Code Here

Examples of com.inadco.hbl.protocodegen.Cells.Aggregation

            AggregateFunction af = afr.findFunction(functionName);
            if (af == null)
                throw new HblException(String.format("Invalid function name:%s.", functionName));
            if (result == null)
                throw new HblException("no current result");
            Aggregation measureAggr = result[index];
            if (measureAggr == null) {
                Aggregation.Builder b = delegate.current().getMeasures()[index];
                result[index] = b == null ? null : (measureAggr = b.build()); // cache
            }
View Full Code Here

Examples of com.inadco.hbl.protocodegen.Cells.Aggregation

        try {
            for (Tuple tup : db) {
                byte[] msg = DataType.toBytes(tup.get(0));
                if (msg == null)
                    continue; // should not happen.
                Aggregation source = Aggregation.parseFrom(msg);
                afr.mergeAll(accumulator, source, SliceOperation.ADD);
                nonDegenerate = true;
            }
            return nonDegenerate;
        } catch (InvalidProtocolBufferException exc) {
View Full Code Here

Examples of io.crate.planner.symbol.Aggregation

        minAggFunction = (AggregationFunction<MinimumAggregation.MinimumAggState>) functions.get(minAggIdent);

        groupProjection = new GroupProjection();
        groupProjection.keys(Arrays.<DataTypeSymbol>asList(new InputColumn(0, DataTypes.INTEGER)));
        groupProjection.values(Arrays.asList(
                new Aggregation(minAggFunction.info(), Arrays.<Symbol>asList(new InputColumn(1)), Aggregation.Step.PARTIAL, Aggregation.Step.FINAL)
        ));
    }
View Full Code Here

Examples of io.crate.planner.symbol.Aggregation

        mergeNode.inputTypes(Arrays.<DataType>asList(DataTypes.UNDEFINED, DataTypes.STRING));

        GroupProjection groupProjection = new GroupProjection();
        groupProjection.keys(Arrays.<DataTypeSymbol>asList(new InputColumn(1, DataTypes.STRING)));
        groupProjection.values(Arrays.asList(
                new Aggregation(
                        countAggregation.info(),
                        ImmutableList.<Symbol>of(new InputColumn(0)),
                        Aggregation.Step.PARTIAL,
                        Aggregation.Step.FINAL
                )
View Full Code Here

Examples of io.crate.planner.symbol.Aggregation

        Reference nameRef = TestingHelpers.createReference("name", DataTypes.STRING);
        GroupProjection groupProjection = new GroupProjection();
        groupProjection.keys(Arrays.<DataTypeSymbol>asList(nameRef));
        groupProjection.values(Arrays.asList(
                new Aggregation(
                        new FunctionInfo(new FunctionIdent(CountAggregation.NAME, ImmutableList.<DataType>of()), DataTypes.LONG),
                        ImmutableList.<Symbol>of(),
                        Aggregation.Step.PARTIAL,
                        Aggregation.Step.FINAL
                )
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.