Skip to content

Releases: frictionlessdata/tableschema-java

0.6.7

09 Jan 14:10

Choose a tag to compare

Update of dependency-check plugin

0.6.6

09 Jan 13:49

Choose a tag to compare

Updated dependencies

0.6.5

20 Dec 12:08

Choose a tag to compare

Cleanup in pom.xml; enabled two tests

0.6.4

20 Dec 09:49

Choose a tag to compare

Fixed a bug introduced earlier with non-ASCII chars in a UTF-8 encoded CSV file

0.6.2

19 Dec 21:23

Choose a tag to compare

Improvements in validation. Work for the basis of better encoding support

0.6.1

09 Dec 23:23

Choose a tag to compare

  • BeanTableDataSource allows for the creation of Tables on Collection of Java Bean objects. E.g. if you get a number of DTOs from a database, you can directly use them to create a Table for a Datapackage.
  • Creating a Table on a Java class can be an easy way to create a Schema for them: just call 'getSchema()' on the table, since creating a Table on a Bean class automatically infers a Schema.

0.6.0

09 Dec 00:24

Choose a tag to compare

Breaking changes

If you are coming from an earlier version like 0.2.0, you will have to change a couple of imports as I broke the API to straighten the declared return types of the Iterator you can build on a Table by the method iterator() and it's overloaded versions.

Iterators

In earlier , most iterators declared they return Object[], which lead to ClassCastExceptions in some cases where they returned Map instances.

We now have:

  • stringArrayIterator() and overloaded version, which both return a String[] for each row
  • iterator() and not the overloaded version. It returns a Object[] for each row
  • mappingIterator() and overloaded version, which both return rows as Map<String, Object>
  • iterator(boolean keyed, boolean extended, boolean cast, boolean relations) which can return anything from String[] over Object[] to Map<String, Object>, depending on the keyed, extended, cast , relations flags. To accommodate this, it now just returns Object and you have to look at the actual type and cast your data.

Package renamed

Also renamed datasourceformat package and the classes therein to tabledatasource to make their purpose clearer as they evolved away from having the primary responsibility of defining the format of the data to being the data source holding the data for the table.

Schema validation

Fixed an omission in Schema validation to return the results of the formal validation against the frictionless meta-schema and better handle foreign key violations during schema validation.

0.5.1

08 Dec 23:14

Choose a tag to compare

Version bump for Datapackage

0.5.0

08 Dec 21:07

Choose a tag to compare

  • Work on foreign keys
  • API changes in regards to iterators (necessary b/c return types were partly wrong)
  • more robust BeanSchema/BeanIterator
  • Improved Schema validation

0.4.0

02 Dec 17:56

Choose a tag to compare

  • Fix for #72
  • Refactorings on Schema inferring, constraints.
  • allow parsing of headerless tables with a Schema