frictionlessdata/datapackage-java

Streaming and reading of resources through a table schema with cast on iteration.

georgeslabreche opened this issue · 3 comments

Streaming and reading of resources through a table schema with cast on iteration.

  • Iterate over data in CSV String format.
  • Iterate over data in local CSV file.
  • Iterate over data in remote CSV file (URL).
  • Iterate over data in JSON Array format.
  • Cast on iteration.
  • Update README.

@roll So we only attempt to cast the data if the schema is provided as part of the Resource object?

roll commented

@georgeslabreche
Yes - https://github.com/frictionlessdata/tableschema-js/blob/master/src/table.js#L55-L143.

In Python/JavaScript a Resource class just re-uses tableschema.Table for all this operations. Hopefully it's possible to do also in Java.

Pending tableschema-java refactoring:
frictionlessdata/tableschema-java#18