Examples of sort()


Examples of org.antlr.misc.Graph.sort()

            catch (FileNotFoundException fnfe) {
                ErrorManager.error(ErrorManager.MSG_CANNOT_OPEN_FILE, gfile);
                missingFiles.add(gfile);
            }
        }
        List<Object> sorted = g.sort();
        //System.out.println("sorted="+sorted);
        grammarFileNames.clear(); // wipe so we can give new ordered list
        for (int i = 0; i < sorted.size(); i++) {
            String f = (String)sorted.get(i);
            if ( missingFiles.contains(f) ) continue;
View Full Code Here

Examples of org.antlr.v4.runtime.misc.IntegerList.sort()

      if ( alts!=null ) {
        buf.append("\\n");
        // separate alts
        IntegerList altList = new IntegerList();
        altList.addAll(alts);
        altList.sort();
        Set<ATNConfig> configurations = s.configs;
        for (int altIndex = 0; altIndex < altList.size(); altIndex++) {
          int alt = altList.get(altIndex);
          if ( altIndex>0 ) {
            buf.append("\\n");
View Full Code Here

Examples of org.apache.beehive.samples.netui.ui.datagrid.sortandfilter.util.SortByProperty.sort()

        final List<Sort> sorts = (List<Sort>)dataGridState.getSortModel().getSorts();
        if(sorts != null && sorts.size() < 2) {

            Sort sort = (Sort)sorts.get(0);
            SortByProperty sorter = new SortByProperty();
            dataSet = sorter.sort(sort, _customers);
        }

        /* implement filtering */
        if(_customerFilterForm != null) {
            final List<Filter> filters = _customerFilterForm.getFilters();
View Full Code Here

Examples of org.apache.directory.mavibot.btree.persisted.BulkDataSorter.sort()

       
        BulkDataSorter bs = new BulkDataSorter<Dn, String>( readerWriter, tupleComparator, 2 );
       
        File file = createLdif();
       
        bs.sort( file );
       
        Iterator<Tuple<Dn, String>> itr = bs.getMergeSortedTuples();
        while( itr.hasNext() )
        {
            Tuple t = itr.next();
View Full Code Here

Examples of org.apache.drill.exec.physical.impl.sort.Sorter.sort()

    // Sort the records according the orderings given in the configuration

    Sorter sorter = SortBatch.createNewSorter(context, popConfig.getOrderings(), sortedSamples);
    SelectionVector4 sv4 = builder.getSv4();
    sorter.setup(context, sv4, sortedSamples);
    sorter.sort(sv4, sortedSamples);

    // Project every Nth record to a new vector container, where N = recordsSampled/(samplingFactor * partitions).
    // Uses the
    // the expressions from the Orderings to populate each column. There is one column for each Ordering in
    // popConfig.orderings.
View Full Code Here

Examples of org.apache.flex.compiler.internal.css.semantics.ActivatedStyleSheets.sort()

            // If there's more dependencies introduced by CSS, the loop continues.
            done = !allCompilationUnitsInTarget.addAll(cssDependencies);
        }

        delegate.cssCompilationSession.cssDocuments.addAll(activatedStyleSheets.sort());
        return allCompilationUnitsInTarget;
    }

    /**
     * Collect CSS from themes.
View Full Code Here

Examples of org.apache.flink.runtime.operators.sort.QuickSort.sort()

      num++;
    }
    while (sorter.write(record) && num < NUM_RECORDS);
   
    QuickSort qs = new QuickSort();
    qs.sort(sorter);
   
    MutableObjectIterator<IntPair> iter = sorter.getIterator();
    IntPair readTarget = new IntPair();
   
    int current = 0;
View Full Code Here

Examples of org.apache.flume.channel.recoverable.memory.wal.SequenceIDBuffer.sort()

    SequenceIDBuffer buffer = new SequenceIDBuffer(size);
    Assert.assertEquals(size, buffer.size());
    for (int i = 0; i < 100; i++) {
      buffer.put(i, i);
    }
    buffer.sort();
    Assert.assertFalse(buffer.exists(-1));
    Assert.assertFalse(buffer.exists(101));
    for (int i = 0; i < 100; i++) {
      Assert.assertTrue(buffer.exists(i));
    }
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.sort()

            // load the rest of the configurations
            try {
                ConfigurationManager configurationManager = ConfigurationUtil.getConfigurationManager(kernel);
                try {
                    LinkedHashSet<Artifact> sorted = configurationManager.sort(configs, lifecycleMonitor);
                    for (Artifact configID : sorted) {
                        monitor.moduleLoading(configID);
                        configurationManager.loadConfiguration(configID, lifecycleMonitor);
                        monitor.moduleLoaded(configID);
                        monitor.moduleStarting(configID);
View Full Code Here

Examples of org.apache.hadoop.util.QuickSort.sort()

    }
  }

  public void sort() {
    QuickSort quickSort = new QuickSort();
    quickSort.sort(this, 0, size());
  }

  public static void main(String[] args) throws Exception {
    try {
      System.out.println("SequenceIDBuffer");
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.