Package eu.stratosphere.api.common.operators

Examples of eu.stratosphere.api.common.operators.Order


        if (this.ordering.getFieldNumber(i) != o.getFieldNumber(i)) {
          return false;
        }
       
        // if this one request no order, everything is good
        final Order oo = o.getOrder(i);
        final Order to = this.ordering.getOrder(i);
        if (oo != Order.NONE) {
          if (oo == Order.ANY) {
            // if any order is requested, any not NONE order is good
            if (to == Order.NONE) {
              return false;
View Full Code Here


      }
   
      // and next the additional order fields
      for (int i = 0; i < additionalOrdering1.getNumberOfFields(); i++) {
        Integer field = additionalOrdering1.getFieldNumber(i);
        Order order = additionalOrdering1.getOrder(i);
        this.ordering1.appendOrdering(field, additionalOrdering1.getType(i), order);
      }
    } else {
      this.ordering1 = Utils.createOrdering(this.keys1);
    }
   
    // if we have an additional ordering, construct the ordering to have primarily the grouping fields
    if (additionalOrdering2 != null) {
      this.ordering2 = new Ordering();
      for (Integer key : this.keys2) {
        this.ordering2.appendOrdering(key, null, Order.ANY);
      }
   
      // and next the additional order fields
      for (int i = 0; i < additionalOrdering2.getNumberOfFields(); i++) {
        Integer field = additionalOrdering2.getFieldNumber(i);
        Order order = additionalOrdering2.getOrder(i);
        this.ordering2.appendOrdering(field, additionalOrdering2.getType(i), order);
      }
    } else {
      this.ordering2 = Utils.createOrdering(this.keys2);
    }
View Full Code Here

      }
   
      // and next the additional order fields
      for (int i = 0; i < additionalOrderKeys.getNumberOfFields(); i++) {
        Integer field = additionalOrderKeys.getFieldNumber(i);
        Order order = additionalOrderKeys.getOrder(i);
        this.ordering.appendOrdering(field, additionalOrderKeys.getType(i), order);
      }
    } else {
      this.ordering = null;
    }
View Full Code Here

      }
   
      // and next the additional order fields
      for (int i = 0; i < additionalOrderKeys.getNumberOfFields(); i++) {
        Integer field = additionalOrderKeys.getFieldNumber(i);
        Order order = additionalOrderKeys.getOrder(i);
        this.ordering.appendOrdering(field, additionalOrderKeys.getType(i), order);
      }
    } else {
      this.ordering = null;
    }
View Full Code Here

TOP

Related Classes of eu.stratosphere.api.common.operators.Order

Copyright © 2018 www.massapicom. 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.