Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for Partition (0.07 sec)

  1. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals(1, Iterables.size(partitions));
        assertEquals(singletonList(1), partitions.iterator().next());
      }
    
      public void testPartition_view() {
        List<Integer> list = asList(1, 2);
        Iterable<List<Integer>> partitions = Iterables.partition(list, 2);
    
        // Changes before the partition is retrieved are reflected
        list.set(0, 3);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ListsTest.java

        List<List<Integer>> partitions = partition(source, 1);
        assertEquals(1, partitions.size());
        assertEquals(singletonList(1), partitions.get(0));
      }
    
      public void testPartition_1_2() {
        List<Integer> source = singletonList(1);
        List<List<Integer>> partitions = partition(source, 2);
        assertEquals(1, partitions.size());
        assertEquals(singletonList(1), partitions.get(0));
      }
    
      public void testPartition_2_1() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ListsTest.java

        List<List<Integer>> partitions = partition(source, 1);
        assertEquals(1, partitions.size());
        assertEquals(singletonList(1), partitions.get(0));
      }
    
      public void testPartition_1_2() {
        List<Integer> source = singletonList(1);
        List<List<Integer>> partitions = partition(source, 2);
        assertEquals(1, partitions.size());
        assertEquals(singletonList(1), partitions.get(0));
      }
    
      public void testPartition_2_1() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Iterables.java

       * <p><b>Note:</b> if {@code iterable} is a {@link List}, use {@link Lists#partition(List, int)}
       * instead.
       *
       * @param iterable the iterable to return a partitioned view of
       * @param size the desired size of each partition (the last may be smaller)
       * @return an iterable of unmodifiable lists containing the elements of {@code iterable} divided
       *     into partitions
       * @throws IllegalArgumentException if {@code size} is nonpositive
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Lists.java

       */
      public static <T extends @Nullable Object> List<List<T>> partition(List<T> list, int size) {
        checkNotNull(list);
        checkArgument(size > 0);
        return (list instanceof RandomAccess)
            ? new RandomAccessPartition<>(list, size)
            : new Partition<>(list, size);
      }
    
      private static class Partition<T extends @Nullable Object> extends AbstractList<List<T>> {
        final List<T> list;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/apps/v1/generated.proto

    message RollingUpdateStatefulSetStrategy {
      // Partition indicates the ordinal at which the StatefulSet should be partitioned
      // for updates. During a rolling update, all pods from ordinal Replicas-1 to
      // Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched.
      // This is helpful in being able to do a canary based deployment. The default value is 0.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  7. common-protos/k8s.io/api/apps/v1beta2/generated.proto

    message RollingUpdateStatefulSetStrategy {
      // Partition indicates the ordinal at which the StatefulSet should be partitioned
      // for updates. During a rolling update, all pods from ordinal Replicas-1 to
      // Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched.
      // This is helpful in being able to do a canary based deployment. The default value is 0.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/TopKSelector.java

          }
        }
      }
    
      /**
       * Partitions the contents of buffer in the range [left, right] around the pivot element
       * previously stored in buffer[pivotValue]. Returns the new index of the pivot element,
       * pivotNewIndex, so that everything in [left, pivotNewIndex] is ≤ pivotValue and everything in
       * (pivotNewIndex, right] is greater than pivotValue.
       */
      private int partition(int left, int right, int pivotIndex) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/apps/v1beta1/generated.proto

    message RollingUpdateStatefulSetStrategy {
      // Partition indicates the ordinal at which the StatefulSet should be partitioned
      // for updates. During a rolling update, all pods from ordinal Replicas-1 to
      // Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched.
      // This is helpful in being able to do a canary based deployment. The default value is 0.
      optional int32 partition = 1;
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 24K bytes
    - Viewed (0)
  10. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildParams.kt

    
    val Project.testDistributionServerUrl: Provider<String>
        get() = gradleProperty(TEST_DISTRIBUTION_SERVER_URL)
    
    
    // Controls the test distribution partition size. The test classes smaller than this value will be merged into a "partition"
    val Project.maxTestDistributionPartitionSecond: Long?
        get() = systemProperty(TEST_DISTRIBUTION_PARTITION_SIZE).orNull?.toLong()
    
    
    val Project.maxParallelForks: Int
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Oct 09 08:19:42 UTC 2024
    - 16.9K bytes
    - Viewed (0)
Back to top