Created
May 12, 2015 19:24
-
-
Save wrobstory/656ccd8ad08ebfd47c17 to your computer and use it in GitHub Desktop.
CSV read
This file contains 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
val byteBlob = s3.get(s3config.bucket, s3config.file) | |
val lines = new String(byteBlob).split("\n") | |
lines.slice(1, lines.length).map(line => { | |
line.split(",") match { | |
case Array(col1, col2, col3) => { | |
doSomethingHere(col1, col2, col3) | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment