Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 695 for qsort (0.08 sec)

  1. src/main/java/org/codelibs/fess/query/TermQueryCommand.java

    import org.opensearch.index.query.QueryBuilder;
    import org.opensearch.index.query.QueryBuilders;
    import org.opensearch.search.sort.SortOrder;
    
    public class TermQueryCommand extends QueryCommand {
        private static final Logger logger = LogManager.getLogger(TermQueryCommand.class);
    
        private static final String SORT_FIELD = "sort";
    
        @Override
        protected String getQueryClassName() {
            return TermQuery.class.getSimpleName();
        }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/cpu_assignment.go

    		s.acc.sort(numas, s.acc.details.CPUsInNUMANodes)
    		result = append(result, numas...)
    	}
    	return result
    }
    
    // If sockets are higher in the memory hierarchy than NUMA nodes, then just
    // sort the sockets directly, and return them.
    func (s *socketsFirst) sortAvailableSockets() []int {
    	sockets := s.acc.details.Sockets().UnsortedList()
    	s.acc.sort(sockets, s.acc.details.CPUsInSockets)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 25 23:56:21 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/sym.go

    		// that can be scheduled independently. We need to reorder those
    		// symbols reliably. Sort by name but use a stable sort, so that
    		// any original entries with the same name (all DWARFVAR symbols
    		// have empty names but different relocation sets) are not shuffled.
    		// TODO: Find a better place and optimize to only sort TOC symbols.
    		sort.SliceStable(ctxt.Data, func(i, j int) bool {
    			return ctxt.Data[i].Name < ctxt.Data[j].Name
    		})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/schedule.go

    		for i, v := range order {
    			if v.Op == OpNilCheck {
    				if start == -1 {
    					start = i
    				}
    			} else {
    				if start != -1 {
    					sort.Sort(bySourcePos(order[start:i]))
    					start = -1
    				}
    			}
    		}
    		if start != -1 {
    			sort.Sort(bySourcePos(order[start:]))
    		}
    	}
    
    	return order
    }
    
    // isFlagOp reports if v is an OP with the flag type.
    func (v *Value) isFlagOp() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 15:53:17 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/meta/restmapper.go

    			}
    			if plural.Resource == resource.Resource {
    				ret = append(ret, plural)
    			}
    		}
    	}
    
    	if len(ret) == 0 {
    		return nil, &NoResourceMatchError{PartialResource: resource}
    	}
    
    	sort.Sort(resourceByPreferredGroupVersion{ret, m.defaultGroupVersions})
    	return ret, nil
    }
    
    func (m *DefaultRESTMapper) ResourceFor(resource schema.GroupVersionResource) (schema.GroupVersionResource, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 17 01:55:47 UTC 2021
    - 16.1K bytes
    - Viewed (0)
  6. pkg/controller/podgc/gc_controller.go

    	if deleteCount == 0 {
    		return
    	}
    
    	logger.V(4).Info("Garbage collecting pods that are terminating on node tainted with node.kubernetes.io/out-of-service", "numPods", deleteCount)
    	// sort only when necessary
    	sort.Sort(byEvictionAndCreationTimestamp(terminatingPods))
    	var wait sync.WaitGroup
    	for i := 0; i < deleteCount; i++ {
    		wait.Add(1)
    		go func(pod *v1.Pod) {
    			defer wait.Done()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. pilot/test/xdstest/extract.go

    					resourceNames.Insert(s.GetName())
    				}
    			}
    		}
    	}
    	resourceNames.Delete("")
    	ls := resourceNames.UnsortedList()
    	sort.Sort(sort.Reverse(sort.StringSlice(ls)))
    	return ls
    }
    
    func ExtractListenerNames(ll []*listener.Listener) []string {
    	res := []string{}
    	for _, l := range ll {
    		res = append(res, l.Name)
    	}
    	return res
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  8. src/cmd/trace/goroutines.go

    		}
    
    		// Sort.
    		sortBy := r.FormValue("sortby")
    		if _, ok := validNonOverlappingStats[sortBy]; ok {
    			slices.SortFunc(goroutines, func(a, b goroutine) int {
    				return cmp.Compare(b.NonOverlappingStats[sortBy], a.NonOverlappingStats[sortBy])
    			})
    		} else {
    			// Sort by total time by default.
    			slices.SortFunc(goroutines, func(a, b goroutine) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. src/cmd/trace/regions.go

    					maxTotal = r.TotalTime
    				}
    			}
    		}
    
    		// Sort.
    		sortBy := r.FormValue("sortby")
    		if _, ok := validNonOverlappingStats[sortBy]; ok {
    			slices.SortFunc(regions, func(a, b region) int {
    				return cmp.Compare(b.NonOverlappingStats[sortBy], a.NonOverlappingStats[sortBy])
    			})
    		} else {
    			// Sort by total time by default.
    			slices.SortFunc(regions, func(a, b region) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/kuberuntime_gc.go

    	// Remove from oldest to newest (last to first).
    	numToKeep := len(containers) - toRemove
    	if numToKeep > 0 {
    		sort.Sort(byCreated(containers))
    	}
    	for i := len(containers) - 1; i >= numToKeep; i-- {
    		if containers[i].unknown {
    			// Containers in known state could be running, we should try
    			// to stop it before removal.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top