#ajn3.lt.marblejenka

736 views
674 views

Published on

lightning talk at appengine java night, in japan

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
736
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

#ajn3.lt.marblejenka

  1. 1. • query com.google.apphosting.api.DatastorePb.Query query = new Query(); query.setApp(APPID); query.setKind(KIND_NAME); Integer64Proto countproto = DatastoreOperations.COUNT.call(query);
  2. 2. GetIndices • composite index StringProto request = new StringProto(); request.setValue(APPID); CompositeIndices response = DatastoreOperations.GET_INDICES.call(request); ---------------------------- state:2 entity_type: "TEST" ancestor: false Property { name: "hoge" direction: 1 } Property { name: "hige" direction: 1 }
  3. 3. • production GetSchemaRequest getSchemaRequest = new GetSchemaRequest(); getSchemaRequest.setApp(appid); Schema schema = DatastoreOperations.GET_SCHEMA.call(getSchemaRequest);
  4. 4. kind < property < key < name: "name" app: "balmysundaycandy" value < path < stringValue: "none" Element { > type: "TEST" multiple: false } > > > > more_results: false entity_group < > ※ entity_group more low level property < get name: "age" value < stringValue: "none" > multiple: false >
  5. 5. • DatastoreOperations.ADD_ACTION • DatastoreOperations.NEXT • DatastoreOperations.EXPLAIN • DatastoreOperations.DELETE_CURSOR
  6. 6. • • appengine 43 api • low level api • api • datastore • rollback commit
  7. 7. Future<QueryResult> future = DatastoreOperations.RUN_QUERY. callAsync(query, apiConfig); long asyncCallEnd = System.currentTimeMillis(); int notDoneCount = 0; while (!future.isDone()) { ++notDoneCount; } long callEnd = System.currentTimeMillis();

×