Your SlideShare is downloading. ×
#ajn3.lt.marblejenka
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

#ajn3.lt.marblejenka

586
views

Published on

lightning talk at appengine java night, in japan

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
586
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 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. 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. • production GetSchemaRequest getSchemaRequest = new GetSchemaRequest(); getSchemaRequest.setApp(appid); Schema schema = DatastoreOperations.GET_SCHEMA.call(getSchemaRequest);
  • 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. • DatastoreOperations.ADD_ACTION • DatastoreOperations.NEXT • DatastoreOperations.EXPLAIN • DatastoreOperations.DELETE_CURSOR
  • 6. • • appengine 43 api • low level api • api • datastore • rollback commit
  • 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();