Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. .teamcity/src/main/kotlin/model/bucket-extensions.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 Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Nov 17 05:17:44 UTC 2022
    - 4K bytes
    - Viewed (0)
  2. .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 Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Aug 29 11:04:49 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

            })
            .entries
            .map { TestProjectDuration(it.key, it.value) }
            .sortedBy { -it.totalTime }
        return splitIntoBuckets(
            LinkedList(testProjectDurations),
            TestProjectDuration::totalTime,
            { largeElement: TestProjectDuration, size: Int -> largeElement.split(size) },
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Feb 19 11:22:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top