I would like to access csv files in scala in a strongly typed manner. For example, as I read each line of the csv, it is automatically parsed and represented as a tuple with the appropriate types. I could specify the types beforehand in some sort of schema that is passed to the parser. Are there any libraries that exist for doing this? If not, how could I go about implementing this functionality on my own?
相关问题
- Unusual use of the new keyword
- sqlyog export query result as csv
- C#: How do i get 2 lists into one 2-tuple list in
- Get Runtime Type picked by implicit evidence
- What's the point of nonfinal singleton objects
相关文章
- Gatling拓展插件开发,check(bodyString.saveAs("key"))怎么实现
- RDF libraries for Scala [closed]
- Why is my Dispatching on Actors scaled down in Akk
- How to read local csv file in client side javascri
- Given a list and a bitmask, how do I return the va
- How do you run cucumber with Scala 2.11 and sbt 0.
- GRPC: make high-throughput client in Java/Scala
- Symfony : Doctrine data fixture : how to handle la
product-collections appears to be a good fit for your requirements:
product-collections uses opencsv under the hood.A
CollSeq3
is anIndexedSeq[Product3[T1,T2,T3]]
and also aProduct3[Seq[T1],Seq[T2],Seq[T3]]
with a little sugar. I am the author of product-collections.Here's a link to the io page of the scaladoc
Product3 is essentially a tuple of arity 3.