there's an abstraction here to do that:
https://github.com/Parquet/parquet-mr/blob/master/parquet-column/src/main/java/parquet/column/values/dictionary/IntList.java