Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Commits
2860ae73
Commit
2860ae73
authored
3 years ago
by
Lorenz Boguhn
Browse files
Options
Downloads
Patches
Plain Diff
Remove SupressWarring by add correct Type uc2 hzj
parent
06d2816d
No related branches found
No related tags found
1 merge request
!208
Add benchmark implementations for Hazelcast Jet
Pipeline
#6981
passed
3 years ago
Stage: build
Stage: test
Stage: check
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theodolite-benchmarks/uc2-hazelcastjet/src/main/java/theodolite/uc2/application/Uc2PipelineBuilder.java
+8
-10
8 additions, 10 deletions
...n/java/theodolite/uc2/application/Uc2PipelineBuilder.java
with
8 additions
and
10 deletions
theodolite-benchmarks/uc2-hazelcastjet/src/main/java/theodolite/uc2/application/Uc2PipelineBuilder.java
+
8
−
10
View file @
2860ae73
...
@@ -108,19 +108,16 @@ public class Uc2PipelineBuilder {
...
@@ -108,19 +108,16 @@ public class Uc2PipelineBuilder {
* @return An AggregateOperation used by Hazelcast Jet in a streaming stage which aggregates
* @return An AggregateOperation used by Hazelcast Jet in a streaming stage which aggregates
* ActivePowerRecord Objects into Stats Objects.
* ActivePowerRecord Objects into Stats Objects.
*/
*/
@SuppressWarnings
(
"unchecked"
)
public
AggregateOperation1
<
Entry
<
String
,
ActivePowerRecord
>,
public
AggregateOperation1
<
Object
,
StatsAccumulator
,
Stats
>
uc2AggregateOperation
()
{
StatsAccumulator
,
Stats
>
uc2AggregateOperation
()
{
// Aggregate Operation to Create a Stats Object from Entry<String,ActivePowerRecord> items using
// Aggregate Operation to Create a Stats Object from Entry<String,ActivePowerRecord> items using
// the Statsaccumulator.
// the Statsaccumulator.
return
AggregateOperation
return
AggregateOperation
// Creates the accumulator
// Creates the accumulator
.
withCreate
(
new
StatsAccumulatorSupplier
())
.
withCreate
(
new
StatsAccumulatorSupplier
())
// Defines the accumulation
// Defines the accumulation
.
andAccumulate
((
accumulator
,
item
)
->
{
.<
Entry
<
String
,
ActivePowerRecord
>>
andAccumulate
((
accumulator
,
item
)
->
{
final
Entry
<
String
,
ActivePowerRecord
>
castedEntry
=
accumulator
.
add
(
item
.
getValue
().
getValueInW
());
(
Entry
<
String
,
ActivePowerRecord
>)
item
;
accumulator
.
add
(
castedEntry
.
getValue
().
getValueInW
());
})
})
// Defines the combination of spread out instances
// Defines the combination of spread out instances
.
andCombine
((
left
,
right
)
->
{
.
andCombine
((
left
,
right
)
->
{
...
@@ -129,9 +126,10 @@ public class Uc2PipelineBuilder {
...
@@ -129,9 +126,10 @@ public class Uc2PipelineBuilder {
})
})
// Finishes the aggregation
// Finishes the aggregation
.
andExportFinish
((
accumulator
)
->
{
.
andExportFinish
(
return
accumulator
.
snapshot
();
(
accumulator
)
->
{
});
return
accumulator
.
snapshot
();
});
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment