Skip to content

0.1.4

Compare
Choose a tag to compare
@ajkannan ajkannan released this 19 Feb 16:36

Features

BigQuery

  • The JobInfo and TableInfo class hierarchies are flattened (#584, #600). Instead, JobInfo contains a field JobConfiguration, which is subclassed to provide configurations for different types of jobs. Likewise, TableInfo contains a new field TableDefinition, which is subclassed to provide table settings depending on the table type.
  • Functional classes (Job, Table, Dataset) now extend their associated metadata classes (JobInfo, TableInfo, DatasetInfo) (#530, #609). The BigQuery service methods now return functional objects instead of the metadata objects.

Datastore

  • Setting list properties containing values of a single type is more concise (#640, #648).

    For example, to set a list of string values as a property on an entity, you'd previously have to type:

    someEntity.set("someStringListProperty", StringValue.of("a"), StringValue.of("b"),
        StringValue.of("c"));

    Now you can set the property using:

    someEntity.set("someStringListProperty", "a", "b", "c");
  • There is now a more concise way to get the parent of an entity key (#640, #648).

    Key parentOfCompleteKey = someKey.parent();
  • The consistency setting (defaults to 0.9 both before and after this change) can be set in LocalGcdHelper (#639, #648).

  • You no longer have to cast or use the unknown type when getting a ListValue from an entity (#648). Now you can use something like the following to get a list of double values:

    List<DoubleValue> doublesList = someEntity.get("myDoublesList");

ResourceManager

  • Paging for the ResourceManager list method is now supported. (#651)
  • Project is now a subclass of ProjectInfo (#530). The ResourceManager service methods now return Project instead of ProjectInfo.

Storage

  • Functional classes (Bucket, Blob) now extend their associated metadata classes (BucketInfo, BlobInfo) (#530, #603, #614). The Storage service methods now return functional objects instead of metadata objects.

Fixes

BigQuery

  • The potential NPE in metadata objects equals methods is fixed (#632).
  • Methods in Table that were meant to be public but kept package scope are now fixed (#621).