Category Archives: java

Writing an ORC File Using Java

So, I saw this question sometime ago on Stack Overflow and I’ve been meaning to answer this for sometime.  The question: How to convert .txt / .csv file to ORC format. Below is a code sample of how to do it … Continue reading

Posted in code example, coding, github, hadoop, java, programming | Tagged , , , | 10 Comments

Embedded List of Records Using Avro Generic Record

I’m posting this here, because I know someone out there will be Googling how to do this like I was. I didn’t find much and ended up spending a lot of time reading through the Avro API and using my … Continue reading

Posted in code example, coding, java | Tagged , , | Leave a comment

Technologies I’ve worked with in 2013

These are the big things I can think of. Hadoop Ecosystem Hadoop HBase Writing Map/Reduce jobs in Pig Writing Map/Reduce jobs in Java Writing Map/Reduce jobs in Python using Hadoop Streaming Apache Flume Writing a custom Flume Sink Apache Avro More … Continue reading

Posted in career, coding, java, programming | Tagged , , | Leave a comment

Java: Converting a List to an Array

For some reason, I always keep forgetting how to do this, without using a for-loop. import java.util.ArrayList;  import java.util.List; public class ConvertListToArray { public static void main(String[] args) { ArrayList list = new ArrayList(); list.add(“test1”); list.add(“test2”); list.add(“test3”); String[] arrayOfStrings = … Continue reading

Posted in code example, java | Leave a comment

Ruby On Rails

At work, I mostly work on java related projects, but occasionally I get thrown some ruby on rails work.  I’ve always seen myself as a java coder with some ruby experience. Just recently, Dave Hover, author of my favorite book … Continue reading

Posted in java, ruby | Tagged | 1 Comment

Dependency Injection with Spring

I was recently made aware that being a java developer in this day and age that I should have working familiarity with the Spring Framework. Some of you already know that I have devoted November as Spring month and have … Continue reading

Posted in java | Leave a comment

Note to Myself: String Concatenation

In the effort of trying to make my java code NOT look like it was written 10 years ago, here’s another note to myself. Use String.format for concatenating strings, especially when concatenating strings within strings. In other words… Do less … Continue reading

Posted in it makes your code look old, java | Leave a comment