Being a purely object oriented language each and every value in Scala world is an object. Even all of the primitive data types of Scala are the objects. And as I also has mentioned in my earlier post related to Scala Methods, there is no native operator available in Scala. Instead, Scala uses a corresponding method which look like an operator. Continue reading “Scala Data Types by Code Example”
If we talk about Scala control structures, Scala also has similar control structures as Java like while, do while and for loop. The concept is also same, so if we want write any iterative code than loops are very useful in any programming language. Continue reading “Scala while, do while and for loop (Syntax and example code)”
Scala If Else control structure has used syntax and usage as Java if else. If Else in Scala is used as an expression rather than a control structure because if..else in Scala returns a value. Here I have tried to give you more details and code examples of Scala If Else Expression. Continue reading “Scala If Else Expression with Example Code”
Previously we have learned about Scala Programming Language, Variable Declaration and Method Declaration. Now we’ll have a closer look at the Scala classes and Objects. We’ll also learn about creating Singleton objects in Scala.
Similar to Java, classes in Scala describes the objects. Classes may contain reference variables, methods as well as constructors. Continue reading “Scala Classes, Objects & Singleton Objects”
Now we know how to declare variables in Scala, Some of you now probably want try writing some methods. By default all variables passed in a method are mutable in Scala. Here are some rules for writing methods. Continue reading “Scala Function / Method Declaration”
Scala variables are same as Java variables. Only syntax is slightly different.
Rules for Scala variable declaration
- Type declaration and semicolon are optional.
- Keyword var is used to declare the variables. Values can be reassigned.
- Keyword val is used to define the values. Values cannot be reassigned (Same as Java’s final type)
The word “Scala” is a short form of the term “Scalable Language”. Technically, Scala programming is a combination of the two style of programming approaches and those are “Object Oriented Programming” and “Functional Programming”. The Object Oriented approach makes language very easy to build large applications with big structures and architecture and Functional approach keeps design very modular and pluggable. This is how Scala language is empowered by fusion of both of these approaches. Continue reading “Scala Programming Language : Introduction”
Before this post we have discussed about what is Hadoop and what kind of issues are solved by Hadoop. Now Let’s deep dive in to various components of Hadoop. Hadoop as a whole distribution provides only two core components and HDFS (which is Hadoop Distributed File System) and MapReduce (which is a distributed batch processing framework). And a complete bunch of machines which are running HDFS and MapReduce are known as Hadoop Cluster.
As you add more nodes in Hadoop Cluster the performance of your cluster will increase which means that Hadoop is Horizontally Scalable. Continue reading “Simple explanation of Hadoop Core Components : HDFS and MapReduce”
In my earlier post about Brief Introduction of Hadoop, we have understood “What is Hadoop and What kind of problems it solves”. The next step is to understand Hadoop Core Concepts which talks more about,
- Distributed system design
- How data is distributed across multiple systems
- What are the different components involved and how they communicate with each others
Apache Hadoop solves very different kind of problems in Big Data world. So before we get an introduction of Hadoop it becomes necessary to understand the core problems in large scale computation. Than after we’ll try to understand how Hadoop solves these problems.
So let’s discuss the pain points first….. Continue reading “Brief Introduction of Hadoop : The Bazics”