Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
208 commits
Select commit Hold shift + click to select a range
99340bb
Implementation of increase function for timeseries applications
pabloem Sep 12, 2025
cdc01cd
rebasing aigu
pabloem Sep 13, 2025
6961893
fixup
pabloem Sep 13, 2025
2db338f
[CI] Auto commit changes from spotless
Sep 13, 2025
f1ebc3d
[CI] Update transport version definitions
Sep 13, 2025
248d75b
[CI] Auto commit changes from spotless
Sep 13, 2025
383daca
[CI] Update transport version definitions
Sep 13, 2025
3e827ab
[CI] Auto commit changes from spotless
Sep 13, 2025
12db607
[CI] Update transport version definitions
Sep 13, 2025
61d4396
[CI] Auto commit changes from spotless
Sep 13, 2025
e98aa59
[CI] Update transport version definitions
Sep 13, 2025
9c6ae31
[CI] Auto commit changes from spotless
Sep 13, 2025
52ee41b
[CI] Update transport version definitions
Sep 13, 2025
f47b8c6
[CI] Auto commit changes from spotless
Sep 13, 2025
364b5fc
[CI] Update transport version definitions
Sep 13, 2025
d833b3e
[CI] Auto commit changes from spotless
Sep 13, 2025
321fae7
[CI] Update transport version definitions
Sep 13, 2025
0e9142f
[CI] Auto commit changes from spotless
Sep 13, 2025
34c480f
[CI] Update transport version definitions
Sep 13, 2025
d44518e
[CI] Auto commit changes from spotless
Sep 13, 2025
34e079e
[CI] Update transport version definitions
Sep 13, 2025
7c33c50
[CI] Auto commit changes from spotless
Sep 13, 2025
84ce4d8
[CI] Update transport version definitions
Sep 13, 2025
e732dd2
[CI] Auto commit changes from spotless
Sep 13, 2025
2d8e4e2
[CI] Update transport version definitions
Sep 13, 2025
ff0ec44
[CI] Auto commit changes from spotless
Sep 13, 2025
24bd67d
[CI] Update transport version definitions
Sep 13, 2025
b259298
[CI] Auto commit changes from spotless
Sep 13, 2025
f7a5929
[CI] Update transport version definitions
Sep 13, 2025
2e5bc8a
[CI] Auto commit changes from spotless
Sep 13, 2025
4aded38
[CI] Update transport version definitions
Sep 13, 2025
6119025
[CI] Auto commit changes from spotless
Sep 13, 2025
318fa70
[CI] Update transport version definitions
Sep 13, 2025
d3672c2
[CI] Auto commit changes from spotless
Sep 13, 2025
e3ef1ee
[CI] Update transport version definitions
Sep 13, 2025
cec2d48
[CI] Auto commit changes from spotless
Sep 13, 2025
d954bc9
[CI] Update transport version definitions
Sep 13, 2025
5c8274b
[CI] Auto commit changes from spotless
Sep 13, 2025
f27b01e
[CI] Update transport version definitions
Sep 13, 2025
c82ee4a
[CI] Auto commit changes from spotless
Sep 13, 2025
6de596d
[CI] Update transport version definitions
Sep 13, 2025
68bba2c
[CI] Auto commit changes from spotless
Sep 13, 2025
9e8390b
[CI] Update transport version definitions
Sep 13, 2025
2cdc060
[CI] Auto commit changes from spotless
Sep 13, 2025
50ec511
[CI] Update transport version definitions
Sep 13, 2025
6fdec6a
[CI] Auto commit changes from spotless
Sep 13, 2025
8329819
[CI] Update transport version definitions
Sep 13, 2025
aa2c2b1
[CI] Auto commit changes from spotless
Sep 13, 2025
fad3d99
[CI] Update transport version definitions
Sep 13, 2025
86ebdd7
[CI] Auto commit changes from spotless
Sep 13, 2025
dc774a0
[CI] Update transport version definitions
Sep 13, 2025
c86680d
[CI] Auto commit changes from spotless
Sep 13, 2025
4062de1
[CI] Update transport version definitions
Sep 13, 2025
b711182
[CI] Auto commit changes from spotless
Sep 13, 2025
7cfbb19
[CI] Update transport version definitions
Sep 13, 2025
2920e41
[CI] Auto commit changes from spotless
Sep 13, 2025
14b587a
[CI] Update transport version definitions
Sep 13, 2025
05857fa
[CI] Auto commit changes from spotless
Sep 13, 2025
9b665ff
[CI] Update transport version definitions
Sep 13, 2025
0f00978
[CI] Auto commit changes from spotless
Sep 13, 2025
536fb9b
[CI] Update transport version definitions
Sep 13, 2025
9e3f05b
[CI] Auto commit changes from spotless
Sep 13, 2025
9a3f3c2
[CI] Update transport version definitions
Sep 13, 2025
0b4dc84
[CI] Auto commit changes from spotless
Sep 13, 2025
74d55aa
[CI] Update transport version definitions
Sep 13, 2025
addf3c4
[CI] Auto commit changes from spotless
Sep 13, 2025
fe5f97d
[CI] Update transport version definitions
Sep 13, 2025
f94a492
[CI] Auto commit changes from spotless
Sep 13, 2025
a7c4b67
[CI] Update transport version definitions
Sep 13, 2025
d789650
[CI] Auto commit changes from spotless
Sep 13, 2025
392a0dd
[CI] Update transport version definitions
Sep 13, 2025
cb9510a
[CI] Auto commit changes from spotless
Sep 13, 2025
2698de7
[CI] Update transport version definitions
Sep 13, 2025
5cfd23b
[CI] Auto commit changes from spotless
Sep 13, 2025
bef9a30
[CI] Update transport version definitions
Sep 13, 2025
7f8e25a
[CI] Auto commit changes from spotless
Sep 13, 2025
cd5f1b6
[CI] Update transport version definitions
Sep 13, 2025
29fe430
[CI] Auto commit changes from spotless
Sep 13, 2025
8b2c1a9
[CI] Update transport version definitions
Sep 13, 2025
ced28cc
[CI] Auto commit changes from spotless
Sep 13, 2025
b16d4aa
[CI] Update transport version definitions
Sep 13, 2025
dbffcd7
[CI] Auto commit changes from spotless
Sep 13, 2025
eebbaf8
[CI] Update transport version definitions
Sep 13, 2025
643e2d4
[CI] Auto commit changes from spotless
Sep 13, 2025
87b5611
[CI] Update transport version definitions
Sep 13, 2025
8ac85ce
[CI] Auto commit changes from spotless
Sep 13, 2025
afd5368
[CI] Update transport version definitions
Sep 13, 2025
bf134b3
[CI] Auto commit changes from spotless
Sep 13, 2025
79d47b3
[CI] Update transport version definitions
Sep 13, 2025
9349ddb
[CI] Auto commit changes from spotless
Sep 13, 2025
e434fb6
[CI] Update transport version definitions
Sep 13, 2025
7638cbc
[CI] Auto commit changes from spotless
Sep 13, 2025
36a6902
[CI] Update transport version definitions
Sep 13, 2025
f471f33
[CI] Auto commit changes from spotless
Sep 13, 2025
06b9ba3
[CI] Update transport version definitions
Sep 13, 2025
1e2a15c
[CI] Auto commit changes from spotless
Sep 13, 2025
1828bbf
[CI] Update transport version definitions
Sep 13, 2025
f6a396b
[CI] Auto commit changes from spotless
Sep 13, 2025
c4d8f31
[CI] Update transport version definitions
Sep 13, 2025
b758830
[CI] Auto commit changes from spotless
Sep 13, 2025
70930ec
[CI] Update transport version definitions
Sep 13, 2025
db641f9
[CI] Auto commit changes from spotless
Sep 13, 2025
e56db09
[CI] Update transport version definitions
Sep 13, 2025
6c37caf
[CI] Auto commit changes from spotless
Sep 13, 2025
cb8ab00
[CI] Update transport version definitions
Sep 13, 2025
2f13b31
[CI] Auto commit changes from spotless
Sep 13, 2025
350b272
[CI] Update transport version definitions
Sep 13, 2025
c2ba04d
[CI] Auto commit changes from spotless
Sep 13, 2025
3ba8f77
[CI] Update transport version definitions
Sep 13, 2025
570b69d
[CI] Auto commit changes from spotless
Sep 13, 2025
02eed9e
[CI] Update transport version definitions
Sep 13, 2025
c1e2ff4
[CI] Auto commit changes from spotless
Sep 13, 2025
5d92e38
[CI] Update transport version definitions
Sep 13, 2025
bb6d20d
[CI] Auto commit changes from spotless
Sep 13, 2025
17b961e
[CI] Update transport version definitions
Sep 13, 2025
1f75e37
[CI] Auto commit changes from spotless
Sep 13, 2025
8beacb6
[CI] Update transport version definitions
Sep 13, 2025
45e0dab
[CI] Auto commit changes from spotless
Sep 13, 2025
8372811
[CI] Update transport version definitions
Sep 13, 2025
3eb6b87
[CI] Auto commit changes from spotless
Sep 13, 2025
d601630
[CI] Update transport version definitions
Sep 13, 2025
ac54277
[CI] Auto commit changes from spotless
Sep 13, 2025
fb89526
[CI] Update transport version definitions
Sep 13, 2025
ee37fef
[CI] Auto commit changes from spotless
Sep 13, 2025
e8adf7d
[CI] Update transport version definitions
Sep 13, 2025
35b67f6
[CI] Auto commit changes from spotless
Sep 13, 2025
0814594
[CI] Update transport version definitions
Sep 13, 2025
7d6114c
[CI] Auto commit changes from spotless
Sep 13, 2025
f3b979e
[CI] Update transport version definitions
Sep 13, 2025
4ce92b6
[CI] Auto commit changes from spotless
Sep 13, 2025
094505e
[CI] Update transport version definitions
Sep 13, 2025
1e04cb9
[CI] Auto commit changes from spotless
Sep 13, 2025
6de610c
[CI] Update transport version definitions
Sep 13, 2025
da51f00
[CI] Auto commit changes from spotless
Sep 13, 2025
c408555
[CI] Update transport version definitions
Sep 13, 2025
20109c0
[CI] Auto commit changes from spotless
Sep 13, 2025
2001bd4
fixup
pabloem Sep 13, 2025
32f59e2
[CI] Auto commit changes from spotless
Sep 13, 2025
73d040f
[CI] Update transport version definitions
Sep 13, 2025
c9921bc
[CI] Auto commit changes from spotless
Sep 13, 2025
9ff2377
[CI] Update transport version definitions
Sep 13, 2025
68d2f3f
[CI] Auto commit changes from spotless
Sep 13, 2025
9ba5f28
[CI] Update transport version definitions
Sep 13, 2025
d90d37b
[CI] Auto commit changes from spotless
Sep 13, 2025
e8517e7
[CI] Update transport version definitions
Sep 13, 2025
f1e8df6
[CI] Auto commit changes from spotless
Sep 13, 2025
f62826c
[CI] Update transport version definitions
Sep 13, 2025
e92da2f
[CI] Auto commit changes from spotless
Sep 13, 2025
b0100d1
[CI] Update transport version definitions
Sep 13, 2025
bfbb46e
[CI] Auto commit changes from spotless
Sep 13, 2025
08a2916
[CI] Update transport version definitions
Sep 13, 2025
10ebe4c
[CI] Auto commit changes from spotless
Sep 13, 2025
bedd75f
[CI] Update transport version definitions
Sep 13, 2025
de334de
[CI] Auto commit changes from spotless
Sep 13, 2025
f8c04c0
[CI] Update transport version definitions
Sep 13, 2025
1e651ae
[CI] Auto commit changes from spotless
Sep 13, 2025
738dcbf
[CI] Update transport version definitions
Sep 13, 2025
a63a06f
[CI] Auto commit changes from spotless
Sep 13, 2025
7641c8a
[CI] Update transport version definitions
Sep 13, 2025
e195d59
[CI] Auto commit changes from spotless
Sep 13, 2025
c3c2ce3
[CI] Update transport version definitions
Sep 13, 2025
a4d0540
[CI] Auto commit changes from spotless
Sep 13, 2025
fab5dc2
[CI] Update transport version definitions
Sep 13, 2025
74d4287
[CI] Auto commit changes from spotless
Sep 13, 2025
cbca955
[CI] Update transport version definitions
Sep 13, 2025
b7fdec5
[CI] Auto commit changes from spotless
Sep 13, 2025
0a17e89
[CI] Update transport version definitions
Sep 13, 2025
1c7872b
[CI] Auto commit changes from spotless
Sep 13, 2025
e8e7447
[CI] Update transport version definitions
Sep 13, 2025
7f22550
[CI] Auto commit changes from spotless
Sep 13, 2025
a7e0831
[CI] Update transport version definitions
Sep 13, 2025
38e1c9e
[CI] Auto commit changes from spotless
Sep 13, 2025
cdb598e
[CI] Update transport version definitions
Sep 13, 2025
a67bb2b
[CI] Auto commit changes from spotless
Sep 13, 2025
2b98ecb
[CI] Update transport version definitions
Sep 13, 2025
66d4724
[CI] Auto commit changes from spotless
Sep 13, 2025
706e0dc
[CI] Update transport version definitions
Sep 13, 2025
7c89ca5
[CI] Auto commit changes from spotless
Sep 13, 2025
45992d0
[CI] Update transport version definitions
Sep 13, 2025
82e5589
[CI] Auto commit changes from spotless
Sep 13, 2025
718a978
[CI] Update transport version definitions
Sep 13, 2025
0020a0e
[CI] Auto commit changes from spotless
Sep 14, 2025
96a7252
[CI] Update transport version definitions
Sep 14, 2025
7df427c
[CI] Auto commit changes from spotless
Sep 14, 2025
f45f8f4
[CI] Update transport version definitions
Sep 14, 2025
72bab07
[CI] Auto commit changes from spotless
Sep 14, 2025
5664d3d
[CI] Update transport version definitions
Sep 14, 2025
9bc4b7f
[CI] Auto commit changes from spotless
Sep 14, 2025
92493c3
[CI] Update transport version definitions
Sep 14, 2025
5ba38f8
[CI] Auto commit changes from spotless
Sep 14, 2025
6dc8a34
[CI] Update transport version definitions
Sep 14, 2025
b23fa45
[CI] Auto commit changes from spotless
Sep 14, 2025
c465801
[CI] Update transport version definitions
Sep 14, 2025
a3118dd
[CI] Auto commit changes from spotless
Sep 14, 2025
d489e4d
[CI] Update transport version definitions
Sep 14, 2025
a396d86
[CI] Auto commit changes from spotless
Sep 14, 2025
06b38e1
[CI] Update transport version definitions
Sep 14, 2025
26b3975
[CI] Auto commit changes from spotless
Sep 14, 2025
a96e864
[CI] Update transport version definitions
Sep 14, 2025
c0b6c82
[CI] Auto commit changes from spotless
Sep 14, 2025
06dc49f
[CI] Update transport version definitions
Sep 14, 2025
6702ba4
[CI] Auto commit changes from spotless
Sep 14, 2025
e434ac0
[CI] Update transport version definitions
Sep 14, 2025
1d55cad
[CI] Auto commit changes from spotless
Sep 14, 2025
0a1a2dc
[CI] Update transport version definitions
Sep 14, 2025
ddcae30
[CI] Auto commit changes from spotless
Sep 14, 2025
754dc2a
[CI] Update transport version definitions
Sep 14, 2025
ff7a792
[CI] Auto commit changes from spotless
Sep 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ import java.util.List;
public final class Rate$Type$GroupingAggregatorFunction implements GroupingAggregatorFunction {

public static final class FunctionSupplier implements AggregatorFunctionSupplier {
// Overriding constructor to support isRateOverTime flag
private final boolean isRateOverTime;
public FunctionSupplier(boolean isRateOverTime) {
this.isRateOverTime = isRateOverTime;
}

@Override
public List<IntermediateStateDesc> nonGroupingIntermediateStateDesc() {
throw new UnsupportedOperationException("non-grouping aggregator is not supported");
Expand All @@ -53,7 +59,7 @@ public final class Rate$Type$GroupingAggregatorFunction implements GroupingAggre

@Override
public Rate$Type$GroupingAggregatorFunction groupingAggregator(DriverContext driverContext, List<Integer> channels) {
return new Rate$Type$GroupingAggregatorFunction(channels, driverContext);
return new Rate$Type$GroupingAggregatorFunction(channels, driverContext, isRateOverTime);
}

@Override
Expand All @@ -74,11 +80,12 @@ public final class Rate$Type$GroupingAggregatorFunction implements GroupingAggre
private final DriverContext driverContext;
private final BigArrays bigArrays;
private ObjectArray<ReducedState> reducedStates;

public Rate$Type$GroupingAggregatorFunction(List<Integer> channels, DriverContext driverContext) {
private final boolean isRateOverTime;
public Rate$Type$GroupingAggregatorFunction(List<Integer> channels, DriverContext driverContext, boolean isRateOverTime) {
this.channels = channels;
this.driverContext = driverContext;
this.bigArrays = driverContext.bigArrays();
this.isRateOverTime = isRateOverTime;
ObjectArray<Buffer> buffers = driverContext.bigArrays().newObjectArray(256);
try {
this.reducedStates = driverContext.bigArrays().newObjectArray(256);
Expand Down Expand Up @@ -550,7 +557,7 @@ public final class Rate$Type$GroupingAggregatorFunction implements GroupingAggre
}
final double rate;
if (evalContext instanceof TimeSeriesGroupingAggregatorEvaluationContext tsContext) {
rate = extrapolateRate(state, tsContext.rangeStartInMillis(group), tsContext.rangeEndInMillis(group));
rate = extrapolateRate(state, tsContext.rangeStartInMillis(group), tsContext.rangeEndInMillis(group), isRateOverTime);
} else {
rate = computeRateWithoutExtrapolate(state);
}
Expand Down Expand Up @@ -666,7 +673,7 @@ public final class Rate$Type$GroupingAggregatorFunction implements GroupingAggre
* We still extrapolate the rate in this case, but not all the way to the boundary, only by half of the average duration between
* samples (which is our guess for where the series actually starts or ends).
*/
private static double extrapolateRate(ReducedState state, long rangeStart, long rangeEnd) {
private static double extrapolateRate(ReducedState state, long rangeStart, long rangeEnd, boolean isRateOverTime) {
final int len = state.timestamps.length;
assert len >= 2 : "rate requires at least two samples; got " + len;
final long firstTS = state.timestamps[state.timestamps.length - 1];
Expand Down Expand Up @@ -696,7 +703,11 @@ public final class Rate$Type$GroupingAggregatorFunction implements GroupingAggre
}
lastValue = lastValue + endGap * slope;
}
return (lastValue - firstValue) * 1000.0 / (rangeEnd - rangeStart);
if (isRateOverTime) {
return (lastValue - firstValue) * 1000.0 / (rangeEnd - rangeStart);
} else {
return lastValue - firstValue;
}
}

// TODO: copied from old rate - simplify this or explain why we need it?
Expand Down
Loading