Examples of AliasedExpr


Examples of com.odiago.flumebase.parser.AliasedExpr

      int numBucketsInRangeForGroup = 0;
      // Execute each aggregation function over the applicable subset of buckets
      // in bucketsByTime.
      for (int i = 0; i < mAggregateExprs.size(); i++) {
        BucketIterator aggIterator = new BucketIterator(i, loTime, closeTime, bucketsByTime);
        AliasedExpr aliasExpr = mAggregateExprs.get(i);
        FnCallExpr fnCall = (FnCallExpr) aliasExpr.getExpr();
        Object result = fnCall.finishWindow(new IterableIterator(aggIterator));
        numBucketsInRangeForGroup += aggIterator.getYieldCount();
        record.put(aliasExpr.getAvroLabel(), result);
      }

      // If there are no buckets in bucketsByTime that are in our time range,
      // we should not emit anything for this group. Just silently continue.
      if (0 == numBucketsInRangeForGroup) {
View Full Code Here

Examples of com.odiago.flumebase.parser.AliasedExpr

    // For each aggregation function we're performing, insert this event into
    // the bucket for the aggregate function.
    assert buckets.size() == mAggregateExprs.size();
    for (int i = 0; i < mAggregateExprs.size(); i++ ) {
      AliasedExpr aliasExpr = mAggregateExprs.get(i);
      Expr expr = aliasExpr.getExpr();
      assert expr instanceof FnCallExpr;
      FnCallExpr fnCall = (FnCallExpr) expr;
      Bucket bucket = buckets.get(i);
      fnCall.insertAggregate(e, bucket);
    }
View Full Code Here

Examples of com.odiago.flumebase.parser.AliasedExpr

  @Override
  protected void visit(SelectStmt s) throws VisitException {
    List<AliasedExpr> exprs = s.getSelectExprs();
    for (int i = 0; i < exprs.size(); i++) {
      AliasedExpr e = exprs.get(i);
      before(s, e);
      e.accept(this);
      after(s, e);
    }

    before(s, s.getSource());
    s.getSource().accept(this);
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.