Mastering Lambdas: Java Programming in a Multicore World by Maurice Naftalin

Mastering Lambdas: Java Programming in a Multicore World by Maurice Naftalin

Author:Maurice Naftalin [Naftalin, Maurice]
Language: eng
Format: epub, mobi, pdf
Publisher: McGraw-Hill Education
Published: 2014-10-12T16:00:00+00:00


This is by no means the only solution to the problem. You may have considered one of a variety of alternatives:

• Insertion of Book elements into a sorted Map using Topic as the sort key, and retrieving an initial subset of the elements.

• Creation of a frequency map to determine the maximum value, then in a second pass accumulating the topics associated with that value.

• Defining a value object of the kind that we will see later in this chapter, and reducing directly over that.

If you can take the time to explore some of these alternatives, you will be rewarded with an appreciation of the variety of possible strategies available in this style of processing.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.