It would be great if the dataflow sdk would work with a newer version of Google Datastore than v1
Whenever I want to use Dataflow together with Google Datastore, I have to use the old Datastore.v1 version. In this version it seems like I have to encode and decode entities of different kinds manually by extracting the Values (and knowing the type of value) and setting them on a new Object. When I compare this with newer Versions of Datastore or the NodeJs implementation, the handling of datastore-Objects is a dream (i.e. nodeJs just gives you the json-representation). Would it be possible to retrieve Entities either by "selecting" a class type like:
MyObject mObj = entity.to(MyObject.class)
or what would be even better, as you don't need to know which Type the entity is going to be, returning the Json-Representation, for example:
JsonObject jsonEntity = entity.getAsJsonObject()
The current way of handling the entities in dataflow seems not dynamic at all.