Examples of OrderBy


Examples of com.avaje.ebean.OrderBy

   * Move a OrderBy.Property from the main query to this query join.
   */
  @SuppressWarnings("rawtypes")
  public void addSecJoinOrderProperty(OrderBy.Property orderProp) {
    if (orderBy == null) {
      orderBy = new OrderBy();
    }
    orderBy.add(orderProp);
  }
View Full Code Here

Examples of com.coherentlogic.fred.client.core.domain.OrderBy

    }

    @Override
    public Object fromString(String value) {

        OrderBy result = null;

        if (OrderBy.frequency.toString().equals(value))
            result = OrderBy.frequency;
        else if (OrderBy.lastUpdated.toString().equals(value))
            result = OrderBy.lastUpdated;
View Full Code Here

Examples of com.datasalt.pangool.tuplemr.OrderBy

   
    TupleMRBuilder mr = new TupleMRBuilder(conf,"Pangool Url Resolution");
    mr.addIntermediateSchema(getURLMapSchema());
    mr.addIntermediateSchema(getURLRegisterSchema());
    mr.setGroupByFields("url");
    mr.setOrderBy(new OrderBy().add("url", Order.ASC).addSchemaOrder(Order.ASC));
    mr.setTupleReducer(new Handler());
    mr.setOutput(new Path(output), new HadoopOutputFormat(TextOutputFormat.class), Text.class, NullWritable.class);
    mr.addInput(new Path(input1), new HadoopInputFormat(TextInputFormat.class), new UrlMapProcessor());
    mr.addInput(new Path(input2), new HadoopInputFormat(TextInputFormat.class), new UrlProcessor());
    mr.createJob().waitForCompletion(true);
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201306.cm.OrderBy

        adWordsServices.get(session, AdGroupAdServiceInterface.class);

    // Create selector.
    Selector selector = new Selector();
    selector.setFields(new String[] {"Id", "DisapprovalReasons"});
    selector.setOrdering(new OrderBy[] {new OrderBy("Id", SortOrder.ASCENDING)});

    // Create predicates.
    Predicate adGroupIdPredicate =
        new Predicate("AdGroupId", PredicateOperator.IN, new String[] {adGroupId.toString()});
    Predicate approvalStatusPredicate = new Predicate(
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201309.cm.OrderBy

    // Create selector.
    Selector selector = new Selector();
    selector.setFields(new String[] {"MediaId", "Width", "Height", "MimeType"});
    selector.setPaging(new Paging(offset, PAGE_SIZE));
    selector.setOrdering(new OrderBy[] {new OrderBy("MediaId", SortOrder.ASCENDING)});
    selector.setPaging(new Paging(offset, PAGE_SIZE));

    // Create predicates.
    Predicate typePredicate =
        new Predicate("Type", PredicateOperator.IN, new String[] {"IMAGE", "VIDEO"});
View Full Code Here

Examples of com.google.api.ads.adwords.jaxws.v201309.cm.OrderBy

   * @return the new set of OrderBy objects with different instance for each of the OrderBy
   */
  private Set<OrderBy> copyOrderingSet() {
    Set<OrderBy> orderingCopy = Sets.newLinkedHashSet();
    for (OrderBy order : this.ordering) {
      OrderBy copyOrder = new OrderBy();
      copyOrder.setField(order.getField());
      copyOrder.setSortOrder(order.getSortOrder());
      orderingCopy.add(copyOrder);
    }
    return orderingCopy;
  }
View Full Code Here

Examples of com.google.api.adwords.v201306.cm.OrderBy

      Long adGroupId = Long.parseLong("INSERT_AD_GROUP_ID_HERE");

      // Create selector.
      Selector selector = new Selector();
      selector.setFields(new String[] {"Id", "AdGroupId", "Status"});
      selector.setOrdering(new OrderBy[] {new OrderBy("Id", SortOrder.ASCENDING)});

      // Create predicates.
      Predicate statusPredicate =
          new Predicate("Status", PredicateOperator.IN, new String[] {"ACTIVE"});
      Predicate adGroupIdPredicate =
View Full Code Here

Examples of com.google.api.adwords.v201309.cm.OrderBy

          user.getService(AdWordsService.V201309.MEDIA_SERVICE);

      // Create selector.
      Selector selector = new Selector();
      selector.setFields(new String[] {"MediaId", "Name"});
      selector.setOrdering(new OrderBy[] {new OrderBy("MediaId", SortOrder.ASCENDING)});

      // Create predicates.
      Predicate typePredicate =
          new Predicate("Type", PredicateOperator.IN, new String[] {"VIDEO"});
      selector.setPredicates(new Predicate[] {typePredicate});
View Full Code Here

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

  @SuppressWarnings({ "unchecked", "rawtypes" })
  protected ListPage<?> query(Query query, ListPage<?> page ){
    if( page == null )
      page = new ListPage();
   
    OrderBy orderBy = page.getOrderBy();
    if( orderBy != null ){
      if( ListPage.OrderType.DESCENDING.equals(orderBy.getType()) )
        query.desc();
      else
        query.asc();
    }
   
View Full Code Here

Examples of com.googlecode.gql4j.GqlQuery.OrderBy

 
  @Test
  public void testOrderBy_1() {
    ParseResult actual = GqlQuery.parse("SELECT * from a order by a desc");
    ParseResult expected = new ParseResult().setSelect(new Select(false)).setFrom(new From("a")).setOrderBy(
        new OrderBy().withItem(new OrderByItem("a").setDirection(false)));
    assertEquals(expected, actual);
  }
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.