Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for splitIntoBuckets (0.19 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,
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Thu Nov 17 05:17:44 GMT 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),
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Thu Feb 15 17:04:41 GMT 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) },
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Mon Feb 19 11:22:56 GMT 2024
    - 15.3K bytes
    - Viewed (0)
Back to top