How to Exclude Fields using Gson
There are a lot of great Java libraries for working with JSON. One of these is Google’s Gson, which has the goal of providing simple toJson() and fromJson() methods to…
There are a lot of great Java libraries for working with JSON. One of these is Google’s Gson, which has the goal of providing simple toJson() and fromJson() methods to…
There are a lot of great Java libraries for working with JSON. One of these is Google’s Gson, which has the goal of providing simple toJson() and fromJson() methods to…
The Binary Search Tree is commonly used data structure in Computer Science. Below is a complete binary search tree implementation, including the standard methods used to find, insert, and delete…
Unix time (AKA POSIX time or Epoch time) is defined as the number of seconds that have elapsed since January 1st 1970. Having time in a numerical format can be…
Apache Avro is a popular data serialization system that relies on schemas. The official Avro documentation can be found here: http://avro.apache.org/docs/current/. This post walks through an example of serializing and…
In Java, we can break/exit from the current loop with the break statement. But what if we want to break an outer loop from a nested loop? In Java we…
Loading text files in Spark is a very common task, and luckily it is easy to do. Below are a few examples of loading a text file (located on the…