Created
March 29, 2017 06:20
-
-
Save ruseel/b16f191587f4278480d239dc71c5a0a1 to your computer and use it in GitHub Desktop.
parquet clojure without mr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; writer | |
(ParquetWriter. path (ThriftWriteSupport. clazz)) | |
;; reader | |
(ParquetReader. (Configuration.) path (ThriftReadSupport. clazz)) | |
;; reader with filter | |
(ParquetReader. (doto (Configuration.) | |
(.set ThriftReadSupport/THRIFT_COLUMN_FILTER_KEY "eventId;eventName;actType;clientId;ifa;dt")) | |
path | |
(ThriftReadSupport. clazz)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment