diff --git a/java/grpc-google-cloud-spanner-v1/0.1.21/apidocs/allclasses-frame.html b/java/grpc-google-cloud-spanner-v1/0.1.21/apidocs/allclasses-frame.html new file mode 100644 index 0000000000..f98f9a7fa7 --- /dev/null +++ b/java/grpc-google-cloud-spanner-v1/0.1.21/apidocs/allclasses-frame.html @@ -0,0 +1,23 @@ + + + +
+ +public static final class SpannerGrpc.SpannerBlockingStub +extends io.grpc.stub.AbstractStub<SpannerGrpc.SpannerBlockingStub>+
+ Cloud Spanner API + The Cloud Spanner API can be used to manage sessions and execute + transactions on data stored in Cloud Spanner databases. +
| Modifier and Type | +Method and Description | +
|---|---|
com.google.spanner.v1.Transaction |
+beginTransaction(com.google.spanner.v1.BeginTransactionRequest request)
+
+ Begins a new transaction.
+ |
+
protected SpannerGrpc.SpannerBlockingStub |
+build(io.grpc.Channel channel,
+ io.grpc.CallOptions callOptions) |
+
com.google.spanner.v1.CommitResponse |
+commit(com.google.spanner.v1.CommitRequest request)
+
+ Commits a transaction.
+ |
+
com.google.spanner.v1.Session |
+createSession(com.google.spanner.v1.CreateSessionRequest request)
+
+ Creates a new session.
+ |
+
com.google.protobuf.Empty |
+deleteSession(com.google.spanner.v1.DeleteSessionRequest request)
+
+ Ends a session, releasing server resources associated with it.
+ |
+
com.google.spanner.v1.ResultSet |
+executeSql(com.google.spanner.v1.ExecuteSqlRequest request)
+
+ Executes an SQL query, returning all rows in a single reply.
+ |
+
java.util.Iterator<com.google.spanner.v1.PartialResultSet> |
+executeStreamingSql(com.google.spanner.v1.ExecuteSqlRequest request)
+
+ Like [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], except returns the result
+ set as a stream.
+ |
+
com.google.spanner.v1.Session |
+getSession(com.google.spanner.v1.GetSessionRequest request)
+
+ Gets a session.
+ |
+
com.google.spanner.v1.ResultSet |
+read(com.google.spanner.v1.ReadRequest request)
+
+ Reads rows from the database using key lookups and scans, as a
+ simple key/value style alternative to
+ [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
+ |
+
com.google.protobuf.Empty |
+rollback(com.google.spanner.v1.RollbackRequest request)
+
+ Rolls back a transaction, releasing any locks it holds.
+ |
+
java.util.Iterator<com.google.spanner.v1.PartialResultSet> |
+streamingRead(com.google.spanner.v1.ReadRequest request)
+
+ Like [Read][google.spanner.v1.Spanner.Read], except returns the result set as a
+ stream.
+ |
+
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReadyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected SpannerGrpc.SpannerBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions)+
build in class io.grpc.stub.AbstractStub<SpannerGrpc.SpannerBlockingStub>public com.google.spanner.v1.Session createSession(com.google.spanner.v1.CreateSessionRequest request)+
+ Creates a new session. A session can be used to perform + transactions that read and/or modify data in a Cloud Spanner database. + Sessions are meant to be reused for many consecutive + transactions. + Sessions can only execute one transaction at a time. To execute + multiple concurrent read-write/write-only transactions, create + multiple sessions. Note that standalone reads and queries use a + transaction internally, and count toward the one transaction + limit. + Cloud Spanner limits the number of sessions that can exist at any given + time; thus, it is a good idea to delete idle and/or unneeded sessions. + Aside from explicit deletes, Cloud Spanner can delete sessions for which no + operations are sent for more than an hour. If a session is deleted, + requests to it return `NOT_FOUND`. + Idle sessions can be kept alive by sending a trivial SQL query + periodically, e.g., `"SELECT 1"`. +
public com.google.spanner.v1.Session getSession(com.google.spanner.v1.GetSessionRequest request)+
+ Gets a session. Returns `NOT_FOUND` if the session does not exist. + This is mainly useful for determining whether a session is still + alive. +
public com.google.protobuf.Empty deleteSession(com.google.spanner.v1.DeleteSessionRequest request)+
+ Ends a session, releasing server resources associated with it. +
public com.google.spanner.v1.ResultSet executeSql(com.google.spanner.v1.ExecuteSqlRequest request)+
+ Executes an SQL query, returning all rows in a single reply. This + method cannot be used to return a result set larger than 10 MiB; + if the query yields more data than that, the query fails with + a `FAILED_PRECONDITION` error. + Queries inside read-write transactions might return `ABORTED`. If + this occurs, the application should restart the transaction from + the beginning. See [Transaction][google.spanner.v1.Transaction] for more details. + Larger result sets can be fetched in streaming fashion by calling + [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] instead. +
public java.util.Iterator<com.google.spanner.v1.PartialResultSet> executeStreamingSql(com.google.spanner.v1.ExecuteSqlRequest request)+
+ Like [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], except returns the result + set as a stream. Unlike [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], there + is no limit on the size of the returned result set. However, no + individual row in the result set can exceed 100 MiB, and no + column value can exceed 10 MiB. +
public com.google.spanner.v1.ResultSet read(com.google.spanner.v1.ReadRequest request)+
+ Reads rows from the database using key lookups and scans, as a + simple key/value style alternative to + [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. This method cannot be used to + return a result set larger than 10 MiB; if the read matches more + data than that, the read fails with a `FAILED_PRECONDITION` + error. + Reads inside read-write transactions might return `ABORTED`. If + this occurs, the application should restart the transaction from + the beginning. See [Transaction][google.spanner.v1.Transaction] for more details. + Larger result sets can be yielded in streaming fashion by calling + [StreamingRead][google.spanner.v1.Spanner.StreamingRead] instead. +
public java.util.Iterator<com.google.spanner.v1.PartialResultSet> streamingRead(com.google.spanner.v1.ReadRequest request)+
+ Like [Read][google.spanner.v1.Spanner.Read], except returns the result set as a + stream. Unlike [Read][google.spanner.v1.Spanner.Read], there is no limit on the + size of the returned result set. However, no individual row in + the result set can exceed 100 MiB, and no column value can exceed + 10 MiB. +
public com.google.spanner.v1.Transaction beginTransaction(com.google.spanner.v1.BeginTransactionRequest request)+
+ Begins a new transaction. This step can often be skipped: + [Read][google.spanner.v1.Spanner.Read], [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and + [Commit][google.spanner.v1.Spanner.Commit] can begin a new transaction as a + side-effect. +
public com.google.spanner.v1.CommitResponse commit(com.google.spanner.v1.CommitRequest request)+
+ Commits a transaction. The request includes the mutations to be + applied to rows in the database. + `Commit` might return an `ABORTED` error. This can occur at any time; + commonly, the cause is conflicts with concurrent + transactions. However, it can also happen for a variety of other + reasons. If `Commit` returns `ABORTED`, the caller should re-attempt + the transaction from the beginning, re-using the same session. +
public com.google.protobuf.Empty rollback(com.google.spanner.v1.RollbackRequest request)+
+ Rolls back a transaction, releasing any locks it holds. It is a good + idea to call this for any transaction that includes one or more + [Read][google.spanner.v1.Spanner.Read] or [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] requests and + ultimately decides not to commit. + `Rollback` returns `OK` if it successfully aborts the transaction, the + transaction was already aborted, or the transaction is not + found. `Rollback` never returns `ABORTED`. +
public static final class SpannerGrpc.SpannerFutureStub +extends io.grpc.stub.AbstractStub<SpannerGrpc.SpannerFutureStub>+
+ Cloud Spanner API + The Cloud Spanner API can be used to manage sessions and execute + transactions on data stored in Cloud Spanner databases. +
| Modifier and Type | +Method and Description | +
|---|---|
com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.Transaction> |
+beginTransaction(com.google.spanner.v1.BeginTransactionRequest request)
+
+ Begins a new transaction.
+ |
+
protected SpannerGrpc.SpannerFutureStub |
+build(io.grpc.Channel channel,
+ io.grpc.CallOptions callOptions) |
+
com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.CommitResponse> |
+commit(com.google.spanner.v1.CommitRequest request)
+
+ Commits a transaction.
+ |
+
com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.Session> |
+createSession(com.google.spanner.v1.CreateSessionRequest request)
+
+ Creates a new session.
+ |
+
com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> |
+deleteSession(com.google.spanner.v1.DeleteSessionRequest request)
+
+ Ends a session, releasing server resources associated with it.
+ |
+
com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.ResultSet> |
+executeSql(com.google.spanner.v1.ExecuteSqlRequest request)
+
+ Executes an SQL query, returning all rows in a single reply.
+ |
+
com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.Session> |
+getSession(com.google.spanner.v1.GetSessionRequest request)
+
+ Gets a session.
+ |
+
com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.ResultSet> |
+read(com.google.spanner.v1.ReadRequest request)
+
+ Reads rows from the database using key lookups and scans, as a
+ simple key/value style alternative to
+ [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
+ |
+
com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> |
+rollback(com.google.spanner.v1.RollbackRequest request)
+
+ Rolls back a transaction, releasing any locks it holds.
+ |
+
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReadyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected SpannerGrpc.SpannerFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions)+
build in class io.grpc.stub.AbstractStub<SpannerGrpc.SpannerFutureStub>public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.Session> createSession(com.google.spanner.v1.CreateSessionRequest request)+
+ Creates a new session. A session can be used to perform + transactions that read and/or modify data in a Cloud Spanner database. + Sessions are meant to be reused for many consecutive + transactions. + Sessions can only execute one transaction at a time. To execute + multiple concurrent read-write/write-only transactions, create + multiple sessions. Note that standalone reads and queries use a + transaction internally, and count toward the one transaction + limit. + Cloud Spanner limits the number of sessions that can exist at any given + time; thus, it is a good idea to delete idle and/or unneeded sessions. + Aside from explicit deletes, Cloud Spanner can delete sessions for which no + operations are sent for more than an hour. If a session is deleted, + requests to it return `NOT_FOUND`. + Idle sessions can be kept alive by sending a trivial SQL query + periodically, e.g., `"SELECT 1"`. +
public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.Session> getSession(com.google.spanner.v1.GetSessionRequest request)+
+ Gets a session. Returns `NOT_FOUND` if the session does not exist. + This is mainly useful for determining whether a session is still + alive. +
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteSession(com.google.spanner.v1.DeleteSessionRequest request)+
+ Ends a session, releasing server resources associated with it. +
public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.ResultSet> executeSql(com.google.spanner.v1.ExecuteSqlRequest request)+
+ Executes an SQL query, returning all rows in a single reply. This + method cannot be used to return a result set larger than 10 MiB; + if the query yields more data than that, the query fails with + a `FAILED_PRECONDITION` error. + Queries inside read-write transactions might return `ABORTED`. If + this occurs, the application should restart the transaction from + the beginning. See [Transaction][google.spanner.v1.Transaction] for more details. + Larger result sets can be fetched in streaming fashion by calling + [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] instead. +
public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.ResultSet> read(com.google.spanner.v1.ReadRequest request)+
+ Reads rows from the database using key lookups and scans, as a + simple key/value style alternative to + [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. This method cannot be used to + return a result set larger than 10 MiB; if the read matches more + data than that, the read fails with a `FAILED_PRECONDITION` + error. + Reads inside read-write transactions might return `ABORTED`. If + this occurs, the application should restart the transaction from + the beginning. See [Transaction][google.spanner.v1.Transaction] for more details. + Larger result sets can be yielded in streaming fashion by calling + [StreamingRead][google.spanner.v1.Spanner.StreamingRead] instead. +
public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.Transaction> beginTransaction(com.google.spanner.v1.BeginTransactionRequest request)+
+ Begins a new transaction. This step can often be skipped: + [Read][google.spanner.v1.Spanner.Read], [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and + [Commit][google.spanner.v1.Spanner.Commit] can begin a new transaction as a + side-effect. +
public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.CommitResponse> commit(com.google.spanner.v1.CommitRequest request)+
+ Commits a transaction. The request includes the mutations to be + applied to rows in the database. + `Commit` might return an `ABORTED` error. This can occur at any time; + commonly, the cause is conflicts with concurrent + transactions. However, it can also happen for a variety of other + reasons. If `Commit` returns `ABORTED`, the caller should re-attempt + the transaction from the beginning, re-using the same session. +
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> rollback(com.google.spanner.v1.RollbackRequest request)+
+ Rolls back a transaction, releasing any locks it holds. It is a good + idea to call this for any transaction that includes one or more + [Read][google.spanner.v1.Spanner.Read] or [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] requests and + ultimately decides not to commit. + `Rollback` returns `OK` if it successfully aborts the transaction, the + transaction was already aborted, or the transaction is not + found. `Rollback` never returns `ABORTED`. +
public abstract static class SpannerGrpc.SpannerImplBase
+extends java.lang.Object
+implements io.grpc.BindableService
++ Cloud Spanner API + The Cloud Spanner API can be used to manage sessions and execute + transactions on data stored in Cloud Spanner databases. +
| Constructor and Description | +
|---|
SpannerImplBase() |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+beginTransaction(com.google.spanner.v1.BeginTransactionRequest request,
+ io.grpc.stub.StreamObserver<com.google.spanner.v1.Transaction> responseObserver)
+
+ Begins a new transaction.
+ |
+
io.grpc.ServerServiceDefinition |
+bindService() |
+
void |
+commit(com.google.spanner.v1.CommitRequest request,
+ io.grpc.stub.StreamObserver<com.google.spanner.v1.CommitResponse> responseObserver)
+
+ Commits a transaction.
+ |
+
void |
+createSession(com.google.spanner.v1.CreateSessionRequest request,
+ io.grpc.stub.StreamObserver<com.google.spanner.v1.Session> responseObserver)
+
+ Creates a new session.
+ |
+
void |
+deleteSession(com.google.spanner.v1.DeleteSessionRequest request,
+ io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
+
+ Ends a session, releasing server resources associated with it.
+ |
+
void |
+executeSql(com.google.spanner.v1.ExecuteSqlRequest request,
+ io.grpc.stub.StreamObserver<com.google.spanner.v1.ResultSet> responseObserver)
+
+ Executes an SQL query, returning all rows in a single reply.
+ |
+
void |
+executeStreamingSql(com.google.spanner.v1.ExecuteSqlRequest request,
+ io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet> responseObserver)
+
+ Like [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], except returns the result
+ set as a stream.
+ |
+
void |
+getSession(com.google.spanner.v1.GetSessionRequest request,
+ io.grpc.stub.StreamObserver<com.google.spanner.v1.Session> responseObserver)
+
+ Gets a session.
+ |
+
void |
+read(com.google.spanner.v1.ReadRequest request,
+ io.grpc.stub.StreamObserver<com.google.spanner.v1.ResultSet> responseObserver)
+
+ Reads rows from the database using key lookups and scans, as a
+ simple key/value style alternative to
+ [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
+ |
+
void |
+rollback(com.google.spanner.v1.RollbackRequest request,
+ io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
+
+ Rolls back a transaction, releasing any locks it holds.
+ |
+
void |
+streamingRead(com.google.spanner.v1.ReadRequest request,
+ io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet> responseObserver)
+
+ Like [Read][google.spanner.v1.Spanner.Read], except returns the result set as a
+ stream.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void createSession(com.google.spanner.v1.CreateSessionRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.Session> responseObserver)+
+ Creates a new session. A session can be used to perform + transactions that read and/or modify data in a Cloud Spanner database. + Sessions are meant to be reused for many consecutive + transactions. + Sessions can only execute one transaction at a time. To execute + multiple concurrent read-write/write-only transactions, create + multiple sessions. Note that standalone reads and queries use a + transaction internally, and count toward the one transaction + limit. + Cloud Spanner limits the number of sessions that can exist at any given + time; thus, it is a good idea to delete idle and/or unneeded sessions. + Aside from explicit deletes, Cloud Spanner can delete sessions for which no + operations are sent for more than an hour. If a session is deleted, + requests to it return `NOT_FOUND`. + Idle sessions can be kept alive by sending a trivial SQL query + periodically, e.g., `"SELECT 1"`. +
public void getSession(com.google.spanner.v1.GetSessionRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.Session> responseObserver)+
+ Gets a session. Returns `NOT_FOUND` if the session does not exist. + This is mainly useful for determining whether a session is still + alive. +
public void deleteSession(com.google.spanner.v1.DeleteSessionRequest request, + io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)+
+ Ends a session, releasing server resources associated with it. +
public void executeSql(com.google.spanner.v1.ExecuteSqlRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.ResultSet> responseObserver)+
+ Executes an SQL query, returning all rows in a single reply. This + method cannot be used to return a result set larger than 10 MiB; + if the query yields more data than that, the query fails with + a `FAILED_PRECONDITION` error. + Queries inside read-write transactions might return `ABORTED`. If + this occurs, the application should restart the transaction from + the beginning. See [Transaction][google.spanner.v1.Transaction] for more details. + Larger result sets can be fetched in streaming fashion by calling + [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] instead. +
public void executeStreamingSql(com.google.spanner.v1.ExecuteSqlRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet> responseObserver)+
+ Like [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], except returns the result + set as a stream. Unlike [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], there + is no limit on the size of the returned result set. However, no + individual row in the result set can exceed 100 MiB, and no + column value can exceed 10 MiB. +
public void read(com.google.spanner.v1.ReadRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.ResultSet> responseObserver)+
+ Reads rows from the database using key lookups and scans, as a + simple key/value style alternative to + [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. This method cannot be used to + return a result set larger than 10 MiB; if the read matches more + data than that, the read fails with a `FAILED_PRECONDITION` + error. + Reads inside read-write transactions might return `ABORTED`. If + this occurs, the application should restart the transaction from + the beginning. See [Transaction][google.spanner.v1.Transaction] for more details. + Larger result sets can be yielded in streaming fashion by calling + [StreamingRead][google.spanner.v1.Spanner.StreamingRead] instead. +
public void streamingRead(com.google.spanner.v1.ReadRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet> responseObserver)+
+ Like [Read][google.spanner.v1.Spanner.Read], except returns the result set as a + stream. Unlike [Read][google.spanner.v1.Spanner.Read], there is no limit on the + size of the returned result set. However, no individual row in + the result set can exceed 100 MiB, and no column value can exceed + 10 MiB. +
public void beginTransaction(com.google.spanner.v1.BeginTransactionRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.Transaction> responseObserver)+
+ Begins a new transaction. This step can often be skipped: + [Read][google.spanner.v1.Spanner.Read], [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and + [Commit][google.spanner.v1.Spanner.Commit] can begin a new transaction as a + side-effect. +
public void commit(com.google.spanner.v1.CommitRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.CommitResponse> responseObserver)+
+ Commits a transaction. The request includes the mutations to be + applied to rows in the database. + `Commit` might return an `ABORTED` error. This can occur at any time; + commonly, the cause is conflicts with concurrent + transactions. However, it can also happen for a variety of other + reasons. If `Commit` returns `ABORTED`, the caller should re-attempt + the transaction from the beginning, re-using the same session. +
public void rollback(com.google.spanner.v1.RollbackRequest request, + io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)+
+ Rolls back a transaction, releasing any locks it holds. It is a good + idea to call this for any transaction that includes one or more + [Read][google.spanner.v1.Spanner.Read] or [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] requests and + ultimately decides not to commit. + `Rollback` returns `OK` if it successfully aborts the transaction, the + transaction was already aborted, or the transaction is not + found. `Rollback` never returns `ABORTED`. +
public final io.grpc.ServerServiceDefinition bindService()+
bindService in interface io.grpc.BindableServicepublic static final class SpannerGrpc.SpannerStub +extends io.grpc.stub.AbstractStub<SpannerGrpc.SpannerStub>+
+ Cloud Spanner API + The Cloud Spanner API can be used to manage sessions and execute + transactions on data stored in Cloud Spanner databases. +
| Modifier and Type | +Method and Description | +
|---|---|
void |
+beginTransaction(com.google.spanner.v1.BeginTransactionRequest request,
+ io.grpc.stub.StreamObserver<com.google.spanner.v1.Transaction> responseObserver)
+
+ Begins a new transaction.
+ |
+
protected SpannerGrpc.SpannerStub |
+build(io.grpc.Channel channel,
+ io.grpc.CallOptions callOptions) |
+
void |
+commit(com.google.spanner.v1.CommitRequest request,
+ io.grpc.stub.StreamObserver<com.google.spanner.v1.CommitResponse> responseObserver)
+
+ Commits a transaction.
+ |
+
void |
+createSession(com.google.spanner.v1.CreateSessionRequest request,
+ io.grpc.stub.StreamObserver<com.google.spanner.v1.Session> responseObserver)
+
+ Creates a new session.
+ |
+
void |
+deleteSession(com.google.spanner.v1.DeleteSessionRequest request,
+ io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
+
+ Ends a session, releasing server resources associated with it.
+ |
+
void |
+executeSql(com.google.spanner.v1.ExecuteSqlRequest request,
+ io.grpc.stub.StreamObserver<com.google.spanner.v1.ResultSet> responseObserver)
+
+ Executes an SQL query, returning all rows in a single reply.
+ |
+
void |
+executeStreamingSql(com.google.spanner.v1.ExecuteSqlRequest request,
+ io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet> responseObserver)
+
+ Like [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], except returns the result
+ set as a stream.
+ |
+
void |
+getSession(com.google.spanner.v1.GetSessionRequest request,
+ io.grpc.stub.StreamObserver<com.google.spanner.v1.Session> responseObserver)
+
+ Gets a session.
+ |
+
void |
+read(com.google.spanner.v1.ReadRequest request,
+ io.grpc.stub.StreamObserver<com.google.spanner.v1.ResultSet> responseObserver)
+
+ Reads rows from the database using key lookups and scans, as a
+ simple key/value style alternative to
+ [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
+ |
+
void |
+rollback(com.google.spanner.v1.RollbackRequest request,
+ io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
+
+ Rolls back a transaction, releasing any locks it holds.
+ |
+
void |
+streamingRead(com.google.spanner.v1.ReadRequest request,
+ io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet> responseObserver)
+
+ Like [Read][google.spanner.v1.Spanner.Read], except returns the result set as a
+ stream.
+ |
+
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReadyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected SpannerGrpc.SpannerStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions)+
build in class io.grpc.stub.AbstractStub<SpannerGrpc.SpannerStub>public void createSession(com.google.spanner.v1.CreateSessionRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.Session> responseObserver)+
+ Creates a new session. A session can be used to perform + transactions that read and/or modify data in a Cloud Spanner database. + Sessions are meant to be reused for many consecutive + transactions. + Sessions can only execute one transaction at a time. To execute + multiple concurrent read-write/write-only transactions, create + multiple sessions. Note that standalone reads and queries use a + transaction internally, and count toward the one transaction + limit. + Cloud Spanner limits the number of sessions that can exist at any given + time; thus, it is a good idea to delete idle and/or unneeded sessions. + Aside from explicit deletes, Cloud Spanner can delete sessions for which no + operations are sent for more than an hour. If a session is deleted, + requests to it return `NOT_FOUND`. + Idle sessions can be kept alive by sending a trivial SQL query + periodically, e.g., `"SELECT 1"`. +
public void getSession(com.google.spanner.v1.GetSessionRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.Session> responseObserver)+
+ Gets a session. Returns `NOT_FOUND` if the session does not exist. + This is mainly useful for determining whether a session is still + alive. +
public void deleteSession(com.google.spanner.v1.DeleteSessionRequest request, + io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)+
+ Ends a session, releasing server resources associated with it. +
public void executeSql(com.google.spanner.v1.ExecuteSqlRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.ResultSet> responseObserver)+
+ Executes an SQL query, returning all rows in a single reply. This + method cannot be used to return a result set larger than 10 MiB; + if the query yields more data than that, the query fails with + a `FAILED_PRECONDITION` error. + Queries inside read-write transactions might return `ABORTED`. If + this occurs, the application should restart the transaction from + the beginning. See [Transaction][google.spanner.v1.Transaction] for more details. + Larger result sets can be fetched in streaming fashion by calling + [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] instead. +
public void executeStreamingSql(com.google.spanner.v1.ExecuteSqlRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet> responseObserver)+
+ Like [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], except returns the result + set as a stream. Unlike [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], there + is no limit on the size of the returned result set. However, no + individual row in the result set can exceed 100 MiB, and no + column value can exceed 10 MiB. +
public void read(com.google.spanner.v1.ReadRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.ResultSet> responseObserver)+
+ Reads rows from the database using key lookups and scans, as a + simple key/value style alternative to + [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. This method cannot be used to + return a result set larger than 10 MiB; if the read matches more + data than that, the read fails with a `FAILED_PRECONDITION` + error. + Reads inside read-write transactions might return `ABORTED`. If + this occurs, the application should restart the transaction from + the beginning. See [Transaction][google.spanner.v1.Transaction] for more details. + Larger result sets can be yielded in streaming fashion by calling + [StreamingRead][google.spanner.v1.Spanner.StreamingRead] instead. +
public void streamingRead(com.google.spanner.v1.ReadRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet> responseObserver)+
+ Like [Read][google.spanner.v1.Spanner.Read], except returns the result set as a + stream. Unlike [Read][google.spanner.v1.Spanner.Read], there is no limit on the + size of the returned result set. However, no individual row in + the result set can exceed 100 MiB, and no column value can exceed + 10 MiB. +
public void beginTransaction(com.google.spanner.v1.BeginTransactionRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.Transaction> responseObserver)+
+ Begins a new transaction. This step can often be skipped: + [Read][google.spanner.v1.Spanner.Read], [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and + [Commit][google.spanner.v1.Spanner.Commit] can begin a new transaction as a + side-effect. +
public void commit(com.google.spanner.v1.CommitRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.CommitResponse> responseObserver)+
+ Commits a transaction. The request includes the mutations to be + applied to rows in the database. + `Commit` might return an `ABORTED` error. This can occur at any time; + commonly, the cause is conflicts with concurrent + transactions. However, it can also happen for a variety of other + reasons. If `Commit` returns `ABORTED`, the caller should re-attempt + the transaction from the beginning, re-using the same session. +
public void rollback(com.google.spanner.v1.RollbackRequest request, + io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)+
+ Rolls back a transaction, releasing any locks it holds. It is a good + idea to call this for any transaction that includes one or more + [Read][google.spanner.v1.Spanner.Read] or [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] requests and + ultimately decides not to commit. + `Rollback` returns `OK` if it successfully aborts the transaction, the + transaction was already aborted, or the transaction is not + found. `Rollback` never returns `ABORTED`. +
@Generated(value="by gRPC proto compiler (version 1.2.0)",
+ comments="Source: google/spanner/v1/spanner.proto")
+public final class SpannerGrpc
+extends java.lang.Object
++ Cloud Spanner API + The Cloud Spanner API can be used to manage sessions and execute + transactions on data stored in Cloud Spanner databases. +
| Modifier and Type | +Class and Description | +
|---|---|
static class |
+SpannerGrpc.SpannerBlockingStub
+
+ Cloud Spanner API
+ The Cloud Spanner API can be used to manage sessions and execute
+ transactions on data stored in Cloud Spanner databases.
+ |
+
static class |
+SpannerGrpc.SpannerFutureStub
+
+ Cloud Spanner API
+ The Cloud Spanner API can be used to manage sessions and execute
+ transactions on data stored in Cloud Spanner databases.
+ |
+
static class |
+SpannerGrpc.SpannerImplBase
+
+ Cloud Spanner API
+ The Cloud Spanner API can be used to manage sessions and execute
+ transactions on data stored in Cloud Spanner databases.
+ |
+
static class |
+SpannerGrpc.SpannerStub
+
+ Cloud Spanner API
+ The Cloud Spanner API can be used to manage sessions and execute
+ transactions on data stored in Cloud Spanner databases.
+ |
+
| Modifier and Type | +Field and Description | +
|---|---|
static io.grpc.MethodDescriptor<com.google.spanner.v1.BeginTransactionRequest,com.google.spanner.v1.Transaction> |
+METHOD_BEGIN_TRANSACTION |
+
static io.grpc.MethodDescriptor<com.google.spanner.v1.CommitRequest,com.google.spanner.v1.CommitResponse> |
+METHOD_COMMIT |
+
static io.grpc.MethodDescriptor<com.google.spanner.v1.CreateSessionRequest,com.google.spanner.v1.Session> |
+METHOD_CREATE_SESSION |
+
static io.grpc.MethodDescriptor<com.google.spanner.v1.DeleteSessionRequest,com.google.protobuf.Empty> |
+METHOD_DELETE_SESSION |
+
static io.grpc.MethodDescriptor<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.ResultSet> |
+METHOD_EXECUTE_SQL |
+
static io.grpc.MethodDescriptor<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.PartialResultSet> |
+METHOD_EXECUTE_STREAMING_SQL |
+
static io.grpc.MethodDescriptor<com.google.spanner.v1.GetSessionRequest,com.google.spanner.v1.Session> |
+METHOD_GET_SESSION |
+
static io.grpc.MethodDescriptor<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.ResultSet> |
+METHOD_READ |
+
static io.grpc.MethodDescriptor<com.google.spanner.v1.RollbackRequest,com.google.protobuf.Empty> |
+METHOD_ROLLBACK |
+
static io.grpc.MethodDescriptor<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.PartialResultSet> |
+METHOD_STREAMING_READ |
+
static java.lang.String |
+SERVICE_NAME |
+
| Modifier and Type | +Method and Description | +
|---|---|
static io.grpc.ServiceDescriptor |
+getServiceDescriptor() |
+
static SpannerGrpc.SpannerBlockingStub |
+newBlockingStub(io.grpc.Channel channel)
+Creates a new blocking-style stub that supports unary and streaming output calls on the service
+ |
+
static SpannerGrpc.SpannerFutureStub |
+newFutureStub(io.grpc.Channel channel)
+Creates a new ListenableFuture-style stub that supports unary and streaming output calls on the service
+ |
+
static SpannerGrpc.SpannerStub |
+newStub(io.grpc.Channel channel)
+Creates a new async stub that supports all call types for the service
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final java.lang.String SERVICE_NAME+
@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1901") +public static final io.grpc.MethodDescriptor<com.google.spanner.v1.CreateSessionRequest,com.google.spanner.v1.Session> METHOD_CREATE_SESSION+
@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1901") +public static final io.grpc.MethodDescriptor<com.google.spanner.v1.GetSessionRequest,com.google.spanner.v1.Session> METHOD_GET_SESSION+
@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1901") +public static final io.grpc.MethodDescriptor<com.google.spanner.v1.DeleteSessionRequest,com.google.protobuf.Empty> METHOD_DELETE_SESSION+
@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1901") +public static final io.grpc.MethodDescriptor<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.ResultSet> METHOD_EXECUTE_SQL+
@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1901") +public static final io.grpc.MethodDescriptor<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.PartialResultSet> METHOD_EXECUTE_STREAMING_SQL+
@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1901") +public static final io.grpc.MethodDescriptor<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.ResultSet> METHOD_READ+
@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1901") +public static final io.grpc.MethodDescriptor<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.PartialResultSet> METHOD_STREAMING_READ+
@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1901") +public static final io.grpc.MethodDescriptor<com.google.spanner.v1.BeginTransactionRequest,com.google.spanner.v1.Transaction> METHOD_BEGIN_TRANSACTION+
@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1901") +public static final io.grpc.MethodDescriptor<com.google.spanner.v1.CommitRequest,com.google.spanner.v1.CommitResponse> METHOD_COMMIT+
@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1901") +public static final io.grpc.MethodDescriptor<com.google.spanner.v1.RollbackRequest,com.google.protobuf.Empty> METHOD_ROLLBACK+
public static SpannerGrpc.SpannerStub newStub(io.grpc.Channel channel)+
public static SpannerGrpc.SpannerBlockingStub newBlockingStub(io.grpc.Channel channel)+
public static SpannerGrpc.SpannerFutureStub newFutureStub(io.grpc.Channel channel)+
public static io.grpc.ServiceDescriptor getServiceDescriptor()+
| Class | +Description | +
|---|---|
| SpannerGrpc | +
+
+ Cloud Spanner API
+ The Cloud Spanner API can be used to manage sessions and execute
+ transactions on data stored in Cloud Spanner databases.
+ |
+
| SpannerGrpc.SpannerBlockingStub | +
+
+ Cloud Spanner API
+ The Cloud Spanner API can be used to manage sessions and execute
+ transactions on data stored in Cloud Spanner databases.
+ |
+
| SpannerGrpc.SpannerFutureStub | +
+
+ Cloud Spanner API
+ The Cloud Spanner API can be used to manage sessions and execute
+ transactions on data stored in Cloud Spanner databases.
+ |
+
| SpannerGrpc.SpannerImplBase | +
+
+ Cloud Spanner API
+ The Cloud Spanner API can be used to manage sessions and execute
+ transactions on data stored in Cloud Spanner databases.
+ |
+
| SpannerGrpc.SpannerStub | +
+
+ Cloud Spanner API
+ The Cloud Spanner API can be used to manage sessions and execute
+ transactions on data stored in Cloud Spanner databases.
+ |
+
| Modifier and Type | +Constant Field | +Value | +
|---|---|---|
+
+public static final java.lang.String |
+SERVICE_NAME |
+"google.spanner.v1.Spanner" |
+
Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+