Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for splitIntoBuckets (0.56 sec)

  1. .teamcity/src/main/kotlin/model/BucketExtensions.kt

     * @param smallElementAggregateFunction the function used to aggregate tiny elements into a large bucket
     * @param expectedBucketNumber the return value's size should be expectedBucketNumber
     */
    fun <T, R> splitIntoBuckets(
        list: LinkedList<T>,
        toIntFunction: (T) -> Int,
        largeElementSplitFunction: (T, Int) -> List<R>,
        smallElementAggregateFunction: (List<T>) -> R,
        expectedBucketNumber: Int,
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Feb 12 09:12:03 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  2. .teamcity/src/test/kotlin/SplitBucketTest.kt

    import model.splitIntoBuckets
    import org.junit.jupiter.api.Assertions.assertEquals
    import org.junit.jupiter.api.Assertions.assertTrue
    import org.junit.jupiter.api.Test
    import java.util.LinkedList
    
    /*
     * Copyright 2024 the original author or authors.
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Feb 12 09:12:03 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. .teamcity/src/main/kotlin/model/FunctionalTestBucketGenerator.kt

        ): List<SmallSubprojectBucket> {
            // splitIntoBuckets() method expects us to split large element into N elements,
            // but we want to have a single bucket with N batches.
            // As a workaround, we repeat the bucket N times, and deduplicate the result at the end
            val resultIncludingDuplicates =
                splitIntoBuckets(
                    LinkedList(subProjectTestClassTimes),
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Apr 10 15:09:32 UTC 2025
    - 7.3K bytes
    - Viewed (0)
Back to top