Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for compactor (0.29 sec)

  1. guava/src/com/google/common/collect/ImmutableSortedMap.java

      public static <K, V> ImmutableSortedMap<K, V> copyOfSorted(SortedMap<K, ? extends V> map) {
        Comparator<? super K> comparator = map.comparator();
        if (comparator == null) {
          // If map has a null comparator, the keys should have a natural ordering,
          // even though K doesn't explicitly implement Comparable.
          comparator = (Comparator<? super K>) NATURAL_ORDER;
        }
        if (map instanceof ImmutableSortedMap) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

      public static <K, V> ImmutableSortedMap<K, V> copyOfSorted(SortedMap<K, ? extends V> map) {
        Comparator<? super K> comparator = map.comparator();
        if (comparator == null) {
          // If map has a null comparator, the keys should have a natural ordering,
          // even though K doesn't explicitly implement Comparable.
          comparator = (Comparator<? super K>) NATURAL_ORDER;
        }
        if (map instanceof ImmutableSortedMap) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    	}
    	if validation != nil {
    		validation(t, 2, 1)
    	}
    }
    
    type Compaction func(ctx context.Context, t *testing.T, resourceVersion string)
    
    func RunTestListInconsistentContinuation(ctx context.Context, t *testing.T, store storage.Interface, compaction Compaction) {
    	if compaction == nil {
    		t.Skipf("compaction callback not provided")
    	}
    
    	// Setup storage with the following structure:
    	//  /
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         *            この優先度キューの初期容量
         * @param comparator
         *            この優先度キューの順序付けに使用するコンパレータ
         * @return {@link PriorityQueue}の新しいインスタンス
         * @see PriorityQueue#PriorityQueue(int, Comparator)
         */
        public static <E> PriorityQueue<E> newPriorityQueue(final int initialCapacity, final Comparator<? super E> comparator) {
            return new PriorityQueue<>(initialCapacity, comparator);
        }
    
        /**
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Sets.java

          return standardTailSet(fromElement);
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public Comparator<? super E> comparator() {
          Comparator<? super E> forwardComparator = forward.comparator();
          if (forwardComparator == null) {
            return (Comparator) Ordering.natural().reverse();
          } else {
            return reverse(forwardComparator);
          }
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Sets.java

          return standardTailSet(fromElement);
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public Comparator<? super E> comparator() {
          Comparator<? super E> forwardComparator = forward.comparator();
          if (forwardComparator == null) {
            return (Comparator) Ordering.natural().reverse();
          } else {
            return reverse(forwardComparator);
          }
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 77.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go

    //   - For testing with etcd, watch from 0 is able to return events for objects
    //     whose previous version has been compacted. If testing with cacher, we
    //     expect compaction to be nil.
    func RunTestWatchFromZero(ctx context.Context, t *testing.T, store storage.Interface, compaction Compaction) {
    	key, storedObj := testPropagateStore(ctx, t, store, &example.Pod{ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "test-ns"}})
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  8. tensorflow/cc/gradients/math_grad.cc

                                    std::vector<Output>* grad_outputs,
                                    const Output& comparator) {
      // comparator is a boolean tensor, with
      // y = x_1 at points where comparator is true, and x_2 otherwise
      // Therefore
      // dy/dx_1 = 1 where comparator is true, and 0 otherwise.
      // dy/dx_2 = 0 where comparator is true, and 1 otherwise.
      auto grad = grad_inputs[0];
      auto zeros = ZerosLike(scope, grad);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 50.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/SetsTest.java

       * constructed with the elements in the given iterable. Also verifies that the comparator is the
       * same as the given comparator.
       */
      private static <E> void verifySortedSetContents(
          SortedSet<E> set, Iterable<E> iterable, @Nullable Comparator<E> comparator) {
        assertSame(comparator, set.comparator());
        verifySetContents(set, iterable);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/MapsTest.java

            .inOrder();
        assertThat(map.values()).containsExactly(2, 1).inOrder();
        assertNull(map.comparator());
      }
    
      public void testTreeMapWithComparator() {
        TreeMap<Integer, Integer> map = Maps.newTreeMap(SOME_COMPARATOR);
        assertEquals(Collections.emptyMap(), map);
        assertSame(SOME_COMPARATOR, map.comparator());
      }
    
      public void testTreeMapWithInitialMap() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
Back to top