Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for compactors (0.48 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go

    	}
    
    	compactors[key].refs++
    
    	return func() {
    		compactorsMu.Lock()
    		defer compactorsMu.Unlock()
    
    		compactor := compactors[key]
    		compactor.refs--
    		if compactor.refs == 0 {
    			compactor.cancel()
    			compactor.client.Close()
    			delete(compactors, key)
    		}
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 07:56:39 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Comparators.java

     * the JDK.
     *
     * @since 21.0
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Comparators {
      private Comparators() {}
    
      /**
       * Returns a new comparator which sorts iterables by comparing corresponding elements pairwise
       * until a nonzero result is found; imposes "dictionary order." If the end of one iterable is
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Comparators.java

     * the JDK.
     *
     * @since 21.0
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Comparators {
      private Comparators() {}
    
      /**
       * Returns a new comparator which sorts iterables by comparing corresponding elements pairwise
       * until a nonzero result is found; imposes "dictionary order." If the end of one iterable is
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 11 08:42:51 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/etcd3/compact.go

    	// Technical details/insights:
    	//
    	// The protocol here is lease based. If one compactor CAS successfully, the others would know it when they fail in
    	// CAS later and would try again in 5 minutes. If an APIServer crashed, another one would "take over" the lease.
    	//
    	// For example, in the following diagram, we have a compactor C1 doing compaction in t1, t2. Another compactor C2
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 17 02:54:36 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

        assertTrue(Comparators.isInOrder(asList(0, 0, 3, 3), Ordering.natural()));
        assertTrue(Comparators.isInOrder(asList(0, 3), Ordering.natural()));
        assertTrue(Comparators.isInOrder(Collections.singleton(1), Ordering.natural()));
        assertTrue(Comparators.isInOrder(Collections.<Integer>emptyList(), Ordering.natural()));
      }
    
      public void testIsInStrictOrder() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 11 08:42:51 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CompoundOrdering.java

        this.comparators = (Comparator<? super T>[]) new Comparator<?>[] {primary, secondary};
      }
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Iterable<? extends Comparator<? super T>> comparators) {
        this.comparators =
            Iterables.toArray(comparators, (Comparator<? super T>[]) new Comparator<?>[0]);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompoundOrdering.java

        this.comparators = (Comparator<? super T>[]) new Comparator<?>[] {primary, secondary};
      }
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Iterable<? extends Comparator<? super T>> comparators) {
        this.comparators =
            Iterables.toArray(comparators, (Comparator<? super T>[]) new Comparator<?>[0]);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Ordering.java

       * to {@code reduce}).
       *
       * @param comparators the comparators to try in order
       */
      @GwtCompatible(serializable = true)
      public static <T extends @Nullable Object> Ordering<T> compound(
          Iterable<? extends Comparator<? super T>> comparators) {
        return new CompoundOrdering<>(comparators);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/TreeMultimap.java

    /**
     * Implementation of {@code Multimap} whose keys and values are ordered by their natural ordering or
     * by supplied comparators. In all cases, this implementation uses {@link Comparable#compareTo} or
     * {@link Comparator#compare} instead of {@link Object#equals} to determine equivalence of
     * instances.
     *
     * <p><b>Warning:</b> The comparators or comparables used must be <i>consistent with equals</i> as
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Mar 09 00:21:17 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSortedAsList.java

      public int indexOf(@CheckForNull Object target) {
        int index = delegateCollection().indexOf(target);
    
        // TODO(kevinb): reconsider if it's really worth making feeble attempts at
        // sanity for inconsistent comparators.
    
        // The equals() check is needed when the comparator isn't compatible with
        // equals().
        return (index >= 0 && get(index).equals(target)) ? index : -1;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top