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.lucene.search.suggest.Sort

        checkSort(new Sort(), new byte [][] {});
      }

      @Test
      public void testSingleLine() throws Exception {
        checkSort(new Sort(), new byte [][] {
            "Single line only.".getBytes("UTF-8")
        });
      }
    View Full Code Here

    Examples of org.apache.lucene.search.suggest.Sort

      }

      @Test
      public void testIntermediateMerges() throws Exception {
        // Sort 20 mb worth of data with 1mb buffer, binary merging.
        SortInfo info = checkSort(new Sort(Sort.DEFAULT_COMPARATOR, BufferSize.megabytes(1), Sort.defaultTempDir(), 2),
            generateRandom((int)Sort.MB * 20));
        assertTrue(info.mergeRounds > 10);
      }
    View Full Code Here

    Examples of org.apache.lucene.search.suggest.Sort

      }

      @Test
      public void testSmallRandom() throws Exception {
        // Sort 20 mb worth of data with 1mb buffer.
        SortInfo sortInfo = checkSort(new Sort(Sort.DEFAULT_COMPARATOR, BufferSize.megabytes(1), Sort.defaultTempDir(), Sort.MAX_TEMPFILES),
            generateRandom((int)Sort.MB * 20));
        assertEquals(1, sortInfo.mergeRounds);
      }
    View Full Code Here

    Examples of org.apache.lucene.search.suggest.Sort

      }

      @Test @Nightly
      public void testLargerRandom() throws Exception {
        // Sort 100MB worth of data with 15mb buffer.
        checkSort(new Sort(Sort.DEFAULT_COMPARATOR, BufferSize.megabytes(16), Sort.defaultTempDir(), Sort.MAX_TEMPFILES),
            generateRandom((int)Sort.MB * 100));
      }
    View Full Code Here

    Examples of org.apache.lucene.search.suggest.Sort

    import org.junit.Test;

    public class BytesRefSortersTest extends LuceneTestCase {
      @Test
      public void testExternalRefSorter() throws Exception {
        ExternalRefSorter s = new ExternalRefSorter(new Sort());
        check(s);
        s.close();
      }
    View Full Code Here

    Examples of org.apache.lucene.search.suggest.Sort

        File input = new File("/home/dweiss/tmp/shuffled.dict");

        int buckets = 20;
        int shareMaxTail = 10;

        ExternalRefSorter sorter = new ExternalRefSorter(new Sort());
        FSTCompletionBuilder builder = new FSTCompletionBuilder(buckets, sorter, shareMaxTail);

        BufferedReader reader = new BufferedReader(
            new InputStreamReader(
                new FileInputStream(input), "UTF-8"));
    View Full Code Here

    Examples of org.apache.lucene.search.suggest.fst.Sort

          while ((spare = source.next()) != null) {
            encode(writer, output, buffer, spare, source.weight());
          }
          writer.close();
          new Sort(comparator).sort(tempInput, tempSorted);
          ByteSequencesReader reader = new Sort.ByteSequencesReader(tempSorted);
          success = true;
          return reader;
         
        } finally {
    View Full Code Here

    Examples of org.apache.tools.ant.types.resources.Sort

            if (rcs != null) {
                // sort first to files, then dirs
                Restrict exists = new Restrict();
                exists.add(EXISTS);
                exists.add(rcs);
                Sort s = new Sort();
                s.add(REVERSE_FILESYSTEM);
                s.add(exists);
                resourcesToDelete.add(s);
            }
            try {
                if (resourcesToDelete.isFilesystemOnly()) {
                    for (Iterator iter = resourcesToDelete.iterator(); iter.hasNext();) {
    View Full Code Here

    Examples of org.dspace.app.webui.cris.util.RelationPreferenceUtil.Sort

            int numSort = UIUtil.getIntParameter(request, "iSortingCols");
            if (numSort > 0)
            {
                for (int idx = 0; idx < numSort; idx++)
                {
                    Sort sort = new Sort();
                    // we need to remove 2 because the datatable structure has uuid
                    // and relationPreference as first columns
                    sort.col = UIUtil.getIntParameter(request, "iSortCol_"+idx)-2;
                    sort.asc = "asc".equalsIgnoreCase(request.getParameter("sSortDir_"+idx));
                    sorts.add(sort);
    View Full Code Here

    Examples of org.extremecomponents.table.limit.Sort

        }
        return result;
      }

      private static String getSortingColumns(Limit limit, String defaultSortColumns) {
        Sort sort = limit.getSort();
        if(sort.getProperty() == null) {
          return defaultSortColumns;
        }
       
        String sortOrder = sort.getSortOrder() == null ? ""  : " " + sort.getSortOrder();
        String column = sort.isAliased() ? sort.getAlias() : sort.getProperty();
        String sortColumns = column + sortOrder;
        return sortColumns;
      }
    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.