This repository has been archived by the owner on Mar 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a simple group combiners and additional IT tests. (#744)
* Add distribution query integration test. (Part 2 of 2) * Addresses PR comments * Addresses PR comments * Add a new group combiner that handles tdigest query without aggregation * Addresses pr comments and add boilerplate methods to metricollection to handle tdigestPoint creation
- Loading branch information
Showing
18 changed files
with
560 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...ple/src/test/java/com/spotify/heroic/aggregation/simple/TdigestBucketIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.spotify.heroic.aggregation.simple; | ||
|
||
|
||
import com.google.common.collect.ImmutableList; | ||
import com.spotify.heroic.aggregation.DoubleBucket; | ||
import com.spotify.heroic.aggregation.TDigestBucket; | ||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
public class TdigestBucketIntegrationTest extends ValueBucketIntegrationTest { | ||
|
||
|
||
public TdigestBucketIntegrationTest() { | ||
super(Double.NEGATIVE_INFINITY, null); | ||
} | ||
|
||
@Override | ||
public Collection<DoubleBucket> buckets() { | ||
return List.of(); | ||
} | ||
|
||
@Override | ||
public Collection<? extends TDigestBucket> tDigestBuckets(){ | ||
return ImmutableList.<TDigestBucket>of(new TdigestMergingBucket(0L)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.