Experimenting with Scala Parallel Collections (contd.)

Amir Moulavi

In the previous post we went through Scala parallel collections and you saw how you can convert a sequential collection into a parallel one by using method par on that collection. In this post I want to show you how you can write your own parallel collection in Scala. The example I use for this [...]

Tags: , ,

Experimenting with Scala Parallel Collections

Amir Moulavi

In this short post, I want to show you how you can avail from Scala parallel collections in your application and under which conditions it makes sense to use it. Parallel Collections were introduced in Scala 2.9 release which are built on the same abstractions and provide the same interfaces as existing collection implementation. It [...]

Tags: , ,

JXPath simplifies Java queries

Ulrik Sandberg

Consider a company that contains many departments. Those departments contain employees, those employees have names, telephone numbers, and so on. To query a collection of companies and find, for example, all departments of companies in California with more than 10 employees, you could write something like this:   for (Iterator companies = database.getCompanies().iterator(); companies.hasNext();) { [...]

Tags: , , , , , ,