Skip to content

Releases: frictionlessdata/tableschema-java

0.6.8

Choose a tag to compare

@iSnow iSnow released this 09 Jan 15:30

Just to make jitpack happy...

0.6.7

Choose a tag to compare

@iSnow iSnow released this 09 Jan 14:10

Update of dependency-check plugin

0.6.6

Choose a tag to compare

@iSnow iSnow released this 09 Jan 13:49

Updated dependencies

0.6.5

Choose a tag to compare

@iSnow iSnow released this 20 Dec 12:08

Cleanup in pom.xml; enabled two tests

0.6.4

Choose a tag to compare

@iSnow iSnow released this 20 Dec 09:49

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

0.6.2

Choose a tag to compare

@iSnow iSnow released this 19 Dec 21:23

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

0.6.1

Choose a tag to compare

@iSnow iSnow released this 09 Dec 23:23
  • 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

Choose a tag to compare

@iSnow iSnow released this 09 Dec 00:24

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

Choose a tag to compare

@iSnow iSnow released this 08 Dec 23:14

Version bump for Datapackage

0.5.0

Choose a tag to compare

@iSnow iSnow released this 08 Dec 21:07
  • 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