Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 51 for partition (0.11 sec)

  1. 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)
  2. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<List<Integer>> partitions = Iterators.partition(source, 1);
        assertTrue(partitions.hasNext());
        assertTrue(partitions.hasNext());
        assertEquals(ImmutableList.of(1), partitions.next());
        assertFalse(partitions.hasNext());
      }
    
      public void testPartition_singleton2() {
        Iterator<Integer> source = singletonIterator(1);
        Iterator<List<Integer>> partitions = Iterators.partition(source, 2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/InetAddressOrder.kt

     */
    fun reorderForHappyEyeballs(addresses: List<InetAddress>): List<InetAddress> {
      if (addresses.size < 2) {
        return addresses
      }
    
      val (ipv6, ipv4) = addresses.partition { it is Inet6Address }
    
      return if (ipv6.isEmpty() || ipv4.isEmpty()) {
        addresses
      } else {
        interleave(ipv6, ipv4)
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. 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)
  5. .teamcity/src/main/kotlin/projects/StageProject.kt

                stage.flameGraphs.map { createFlameGraphs(model, stage, it) }
    
            val (topLevelCoverage, allCoverage) = stage.functionalTests.partition { it.testType == TestType.soak }
            val topLevelFunctionalTests = topLevelCoverage
                .map { FunctionalTest(model, it.asConfigurationId(model), it.asName(), it.asName(), it, stage = stage) }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Oct 07 09:17:14 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. ci/official/utilities/setup_macos.sh

    # inside this directory. TF Mac builds need ~150 GB of disk space to be able to
    # run all the tests. Since TFCI Mac VMs execute Bazel test commands in a
    # partition with insufficient storage, we specify the
    # 'TFCI_MACOS_BAZEL_TEST_DIR_PATH' environment variable to point to a partition
    # with ample storage. When this variable is empty (i.e by default), Bazel will
    # use the output base directory to run tests.
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Feb 15 15:23:28 UTC 2024
    - 6.2K 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. 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)
  9. 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)
  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