Class LocalDatastoreV3Service
java.lang.Object
com.google.appengine.api.datastore.dev.LocalDatastoreService
com.google.appengine.api.datastore.dev.LocalDatastoreV3Service
- All Implemented Interfaces:
LocalRpcService
@AutoService(LocalRpcService.class)
public final class LocalDatastoreV3Service
extends LocalDatastoreService
implements LocalRpcService
Provides an implementation of
LocalDatastoreService that is compatible with API Proxy.
While this method uses a delegation pattern, it must extend LocalDatastoreService to
maintain backwards compatibility for users who request the Datastore stub from the APIProxy and
expect the LocalDatastoreService type.
Many of the public API methods are overridden to provide latency annotations for APIProxy. Other Datastore API methods are overridden for consistency.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.appengine.api.datastore.dev.LocalDatastoreService
LocalDatastoreService.AutoIdAllocationPolicyNested classes/interfaces inherited from interface com.google.appengine.tools.development.LocalRpcService
LocalRpcService.Status -
Field Summary
Fields inherited from class com.google.appengine.api.datastore.dev.LocalDatastoreService
AUTO_ID_ALLOCATION_POLICY_PROPERTY, BACKING_STORE_PROPERTY, EMULATE_VNEXT_FEATURES, FORCE_IS_HIGH_REP_PROPERTY, HIGH_REP_JOB_POLICY_CLASS_PROPERTY, INDEX_CONFIGURATION_FORMAT_PROPERTY, MAX_EG_PER_TXN, MAX_QUERY_LIFETIME_PROPERTY, MAX_QUERY_RESULTS, MAX_TRANSACTION_LIFETIME_PROPERTY, NO_INDEX_AUTO_GEN_PROP, NO_STORAGE_PROPERTY, PACKAGE, STORE_DELAY_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.apphosting.base.protos.api.ApiBasePb.VoidProtoaddActions(LocalRpcService.Status status, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest request) com.google.apphosting.datastore.DatastoreV3Pb.AllocateIdsResponseallocateIds(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.AllocateIdsRequest req) com.google.apphosting.datastore.DatastoreV3Pb.TransactionbeginTransaction(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.BeginTransactionRequest req) com.google.apphosting.datastore.DatastoreV3Pb.CommitResponsecommit(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.Transaction req) com.google.apphosting.base.protos.api.ApiBasePb.Integer64ProtocreateIndex(LocalRpcService.Status status, com.google.storage.onestore.v3.OnestoreEntity.CompositeIndex req) com.google.apphosting.datastore.DatastoreV3Pb.DeleteResponsedelete(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.DeleteRequest request) com.google.apphosting.base.protos.api.ApiBasePb.VoidProtodeleteCursor(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.Cursor request) com.google.apphosting.base.protos.api.ApiBasePb.VoidProtodeleteIndex(LocalRpcService.Status status, com.google.storage.onestore.v3.OnestoreEntity.CompositeIndex req) com.google.apphosting.datastore.DatastoreV3Pb.GetResponseget(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.GetRequest request) com.google.apphosting.datastore.DatastoreV3Pb.CompositeIndicesgetIndices(LocalRpcService.Status status, com.google.apphosting.base.protos.api.ApiBasePb.StringProto req) Returns the maximum size of an encoded API request in bytes, ornullfor the default size.com.google.apphosting.datastore.DatastoreV3Pb.QueryResultnext(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.NextRequest request) com.google.apphosting.datastore.DatastoreV3Pb.PutResponseput(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.PutRequest request) com.google.apphosting.base.protos.api.ApiBasePb.VoidProtorollback(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.Transaction req) com.google.apphosting.datastore.DatastoreV3Pb.QueryResultrunQuery(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.Query query) com.google.apphosting.base.protos.api.ApiBasePb.VoidProtoupdateIndex(LocalRpcService.Status status, com.google.storage.onestore.v3.OnestoreEntity.CompositeIndex req) Methods inherited from class com.google.appengine.api.datastore.dev.LocalDatastoreService
clearProfiles, clearQueryHistory, deleteImpl, enableScatterProperty, getDefaultDeadline, getMaximumDeadline, getPackage, init, init, putImpl, setBackingStore, setMaxQueryLifetime, setMaxTransactionLifetime, setNoStorage, setStoreDelay, start, stopMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.appengine.tools.development.LocalRpcService
getDefaultDeadline, getMaximumDeadline, getPackage, init, start, stop
-
Constructor Details
-
LocalDatastoreV3Service
public LocalDatastoreV3Service()
-
-
Method Details
-
get
public com.google.apphosting.datastore.DatastoreV3Pb.GetResponse get(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.GetRequest request) - Overrides:
getin classLocalDatastoreService
-
put
public com.google.apphosting.datastore.DatastoreV3Pb.PutResponse put(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.PutRequest request) - Overrides:
putin classLocalDatastoreService
-
delete
public com.google.apphosting.datastore.DatastoreV3Pb.DeleteResponse delete(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.DeleteRequest request) - Overrides:
deletein classLocalDatastoreService
-
addActions
public com.google.apphosting.base.protos.api.ApiBasePb.VoidProto addActions(LocalRpcService.Status status, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest request) - Overrides:
addActionsin classLocalDatastoreService
-
runQuery
public com.google.apphosting.datastore.DatastoreV3Pb.QueryResult runQuery(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.Query query) - Overrides:
runQueryin classLocalDatastoreService
-
next
public com.google.apphosting.datastore.DatastoreV3Pb.QueryResult next(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.NextRequest request) - Overrides:
nextin classLocalDatastoreService
-
deleteCursor
public com.google.apphosting.base.protos.api.ApiBasePb.VoidProto deleteCursor(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.Cursor request) - Overrides:
deleteCursorin classLocalDatastoreService
-
beginTransaction
public com.google.apphosting.datastore.DatastoreV3Pb.Transaction beginTransaction(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.BeginTransactionRequest req) - Overrides:
beginTransactionin classLocalDatastoreService
-
commit
public com.google.apphosting.datastore.DatastoreV3Pb.CommitResponse commit(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.Transaction req) - Overrides:
commitin classLocalDatastoreService
-
rollback
public com.google.apphosting.base.protos.api.ApiBasePb.VoidProto rollback(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.Transaction req) - Overrides:
rollbackin classLocalDatastoreService
-
createIndex
public com.google.apphosting.base.protos.api.ApiBasePb.Integer64Proto createIndex(LocalRpcService.Status status, com.google.storage.onestore.v3.OnestoreEntity.CompositeIndex req) - Overrides:
createIndexin classLocalDatastoreService
-
updateIndex
public com.google.apphosting.base.protos.api.ApiBasePb.VoidProto updateIndex(LocalRpcService.Status status, com.google.storage.onestore.v3.OnestoreEntity.CompositeIndex req) - Overrides:
updateIndexin classLocalDatastoreService
-
getIndices
public com.google.apphosting.datastore.DatastoreV3Pb.CompositeIndices getIndices(LocalRpcService.Status status, com.google.apphosting.base.protos.api.ApiBasePb.StringProto req) - Overrides:
getIndicesin classLocalDatastoreService
-
deleteIndex
public com.google.apphosting.base.protos.api.ApiBasePb.VoidProto deleteIndex(LocalRpcService.Status status, com.google.storage.onestore.v3.OnestoreEntity.CompositeIndex req) - Overrides:
deleteIndexin classLocalDatastoreService
-
allocateIds
public com.google.apphosting.datastore.DatastoreV3Pb.AllocateIdsResponse allocateIds(LocalRpcService.Status status, com.google.apphosting.datastore.DatastoreV3Pb.AllocateIdsRequest req) - Overrides:
allocateIdsin classLocalDatastoreService
-
getMaxApiRequestSize
Description copied from interface:LocalRpcServiceReturns the maximum size of an encoded API request in bytes, ornullfor the default size.- Specified by:
getMaxApiRequestSizein interfaceLocalRpcService
-