Communication with Datastore and cloud Storage from google Compute engine in Java

£可爱£侵袭症+ 提交于 2019-12-01 22:21:49

You can connect to the Datastore from Compute Engine using Google Cloud Datastore API (currently in Preview)

Currently there is no support for App Engine Java client library like Objectify, only a low level Java API based on protobuf: see the Getting Started Guide for Java.

I created an issue on the public issue tracker as this is something the engineering team is interested to support in the future.

This opensource API (using Json API ) is simpler than protocol buffer api

https://github.com/JavaMonday/gcd-json-java

example usage :

List<Foo> list = ds.gqlQuery(Foo.class).queryString("SELECT * FROM Foo").list();
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!