Examples of Sort

@author Robert "kebernet" Cooper
  • org.slim3.datastore.Sort
    The collection of constants of class. @author taedium @since 1.0.0
  • org.springframework.data.domain.Sort
    Sort option for queries. You have to provide at least a list of properties to sort for that must not include {@literal null} or empty strings. The direction defaults to {@link Sort#DEFAULT_DIRECTION}. @author Oliver Gierke @author Thomas Darimont
  • org.synyx.hades.domain.Sort
  • prefuse.data.util.Sort
    rg">jeffrey heer
  • wycs.solver.smt.Sort
    A sort is the term for a type in the SMT domain. This class provides a few default sorts as well as the ability to create generic sorts, such as {@link wycs.solver.smt.Sort.Set}s or {@link wycs.solver.smt.Sort.Tuple}s. In order to utilise these generic sorts, it is required that the initialisers (from {@link #generateInitialisers(Solver)} be added to the surrounding {@link wycs.solver.smt.Block} or {@link wycs.solver.smt.Smt2File}.

    This design pattern is required as it is not possible to easily write custom theorems to add to SMT solvers. @author Henry J. Wylde


  • Examples of org.apache.derby.iapi.store.access.conglomerate.Sort

        // Decide what segment the sort should use.
        int segment = 0; // XXX (nat) sorts always in segment 0

        // Create the sort.
        Sort sort = sfactory.createSort(this, segment,
                implParameters,  template, columnOrdering,
                sortObserver, alreadyInOrder, estimatedRows,
                            estimatedRowSize);

        // Add the sort to the sorts vector
    View Full Code Here

    Examples of org.apache.derby.iapi.store.access.conglomerate.Sort

      **/
        public void dropSort(long sortid)
            throws StandardException
        {
            // should call close on the sort.
            Sort sort = (Sort) sorts.get((int) sortid);

            if (sort != null)
            {
                sort.drop(this);
                sorts.set((int) sortid, null);
                freeSortIds.add(ReuseFactory.getInteger((int) sortid));
            }
        }
    View Full Code Here

    Examples of org.apache.derby.iapi.store.access.conglomerate.Sort

      @exception StandardException Standard error policy.
      **/
      public SortController openSort(long id)
        throws StandardException
      {
        Sort sort;

        // Find the sort in the sorts list, throw an error
        // if it doesn't exist.
        if (sorts == null || id >= sorts.size()
          || (sort = ((Sort) sorts.get((int) id))) == null)
        {
          throw StandardException.newException(
                        SQLState.AM_NO_SUCH_SORT, new Long(id));
        }

        // Open it.
        SortController sc = sort.open(this);

        // Keep track of it so we can release on close.
        if (sortControllers == null)
          sortControllers = new ArrayList();
        sortControllers.add(sc);
    View Full Code Here

    Examples of org.apache.derby.iapi.store.access.conglomerate.Sort

      public ScanController openSortScan(
        long    id,
        boolean hold)
        throws StandardException
      {
        Sort sort;

        // Find the sort in the sorts list, throw an error
        // if it doesn't exist.
        if (sorts == null || id >= sorts.size()
          || (sort = ((Sort) sorts.get((int) id))) == null)
        {
          throw StandardException.newException(
                        SQLState.AM_NO_SUCH_SORT, new Long(id));
        }

        // Open a scan on it.
        ScanController sc = sort.openSortScan(this, hold);

        // Keep track of it so we can release on close.
        scanControllers.add(sc);

        return sc;
    View Full Code Here

    Examples of org.apache.derby.iapi.store.access.conglomerate.Sort

      @exception StandardException Standard error policy.
      **/
      public RowLocationRetRowSource openSortRowSource(long id)
         throws StandardException
      {
        Sort sort;

        // Find the sort in the sorts list, throw an error
        // if it doesn't exist.
        if (sorts == null || id >= sorts.size()
          || (sort = ((Sort) sorts.get((int) id))) == null)
        {
          throw StandardException.newException(
                        SQLState.AM_NO_SUCH_SORT, new Long(id));
        }

        // Open a scan row source on it.
        ScanControllerRowSource sc = sort.openSortRowSource(this);

        // Keep track of it so we can release on close.
        scanControllers.add(sc);

        return sc;
    View Full Code Here

    Examples of org.apache.drill.exec.physical.config.Sort

          PhysicalOperator input = order.getInput().accept(this, value);
          List<OrderDef> ods = Lists.newArrayList();
          for(Ordering o : order.getOrderings()){
            ods.add(OrderDef.create(o));
          }
          return new SelectionVectorRemover(new Sort(input, ods, false));
        }
    View Full Code Here

    Examples of org.apache.hadoop.examples.Sort

      throws Exception {
        // Setup command-line arguments to 'sort'
        String[] sortArgs = {sortInput.toString(), sortOutput.toString()};
       
        // Run Sort
        assertEquals(ToolRunner.run(job, new Sort(), sortArgs), 0);
      }
    View Full Code Here

    Examples of org.apache.james.mailbox.SearchQuery.Sort

       
        @SuppressWarnings("unchecked")
        public static Comparator<Message<?>> create(List<Sort> sorts) {
            List<Comparator<?>> comps = new ArrayList<Comparator<?>>();
            for (int i = 0; i < sorts.size(); i++) {
                Sort sort = sorts.get(i);
                boolean reverse = sort.isReverse();
                Comparator<Message<?>> comparator = null;
               
                switch (sort.getSortClause()) {
                case Arrival:
                    comparator = InternalDateComparator.internalDate(reverse);
                    break;
                case MailboxCc:
                    comparator = HeaderMailboxComparator.cc(reverse);
    View Full Code Here

    Examples of org.apache.james.mailbox.model.SearchQuery.Sort

       
        @SuppressWarnings("unchecked")
        public static Comparator<Message<?>> create(List<Sort> sorts) {
            List<Comparator<?>> comps = new ArrayList<Comparator<?>>();
            for (int i = 0; i < sorts.size(); i++) {
                Sort sort = sorts.get(i);
                boolean reverse = sort.isReverse();
                Comparator<Message<?>> comparator = null;
               
                switch (sort.getSortClause()) {
                case Arrival:
                    comparator = InternalDateComparator.internalDate(reverse);
                    break;
                case MailboxCc:
                    comparator = HeaderMailboxComparator.cc(reverse);
    View Full Code Here

    Examples of org.apache.lucene.search.Sort

         * by terms in the given field with the type of term values explicitly given.
         */
        SortField[] s_fields = new SortField[2];
        s_fields[0] = SortField.FIELD_SCORE;
        s_fields[1] = new SortField(searching.getKeywordField(), SortField.INT, true);
        Sort sort = new Sort(s_fields);
           
            Hits hits = searcher.search(comboQuery, multiFilter, sort);
        int numResults = hits.length();
        //System.out.println(numResults + " found............................");
        int result_count = Math.min(numResults, MAX_RESULT_COUNT);
    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.