Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BEAM 775] Removal of Aggregator class. Also removal from comments. #2851

Closed
wants to merge 5 commits into from

Conversation

pabloem
Copy link
Member

@pabloem pabloem commented May 3, 2017

To be merged after the worker is rebuilt.

@@ -51,7 +51,7 @@
*
* <p>Basic concepts, also in the MinimalWordCount, WordCount, and DebuggingWordCount examples:
* Reading text files; counting a PCollection; writing to GCS; executing a Pipeline both locally
* and using a selected runner; defining DoFns; creating a custom aggregator;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not replace with a Metric? Or was the aggregator never there?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -44,19 +44,6 @@
* PCollection<Long> latestValues = sessioned.apply(Latest.<Long>globally());
* }</pre>
*
* <p>Example 2: track a latest computed value in an aggregator:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drop the 1 from Example 1 above?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -26,9 +26,6 @@
/**
* Annotation to mark {@code DoFns} as an internal component of the Beam SDK.
*
* <p>Currently, the only effect of this is to mark any aggregators reported by an annotated
* {@code DoFn} as a system counter (as opposed to a user counter).
*
* <p>This is internal to the Beam SDK.
*/
@Documented
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that was the only use, should we just drop this entirely?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's used in several places to annotate DoFns. I figured there may be a reason that is not only related to aggregators.

@@ -166,12 +166,6 @@ public void testExtractOutput() {
}

@Test
public void testExtractOutputDefaultAggregator() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is testing the CombineFn -- and should just be renamed from Aggregator to Accumulator.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@pabloem
Copy link
Member Author

pabloem commented May 3, 2017

Run Dataflow ValidatesRunner

@pabloem pabloem closed this May 4, 2017
@pabloem pabloem reopened this May 4, 2017
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.08%) to 70.552% when pulling 450118b on pabloem:remove-agg-class into 57f449c on apache:master.

@asfgit asfgit closed this in 34d25f4 May 4, 2017
@pabloem pabloem deleted the remove-agg-class branch January 23, 2018 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants