tag : scala

Scala Apply Method

The apply methods in scala has a nice syntactic sugar. It allows us to define semantics like java array access for an arbitrary class. For example, we create a class of RiceCooker and its method cook

Develop Spark WordCount

It is quite often to setup Apache Spark development environment through IDE. Since I do not cover much setup IDE details in my Spark course, I am here to give detail steps for developing the well know

Partially Applied Functions and Curry

Partially Applied FunctionsWhen you invoke a scala function, you need to apply the arguments to the function. If you pass all the expected arguments, you say the function is fully applied. If you only

Scala Call by Value vs. Name

From today, I start working on series of articles about how Scala is special and powerful than regular programming languages, such as Java, under tag scalatips. If you have any confused topic, please

Use UDF in Spark DataFrame

It is very convenient to create, register, and use user define functions with data. In addition, the recent release of Apache Spark also supports writing user-defined aggregation functions UDAF. Belo

Scala Programming Books Reviews

Begining Scala 2nd ed Level Ent. Level Mid. Read complete this book@Oct. 2014. This book has very quick style of explaining scala with many detail examples. Even some examples has code defect a