public class Spanner.Projects.Instances.Databases.Sessions
extends java.lang.Object
Constructor and Description |
---|
Sessions() |
Modifier and Type | Method and Description |
---|---|
Spanner.Projects.Instances.Databases.Sessions.BatchCreate |
batchCreate(java.lang.String database,
BatchCreateSessionsRequest content)
Creates multiple new sessions.
|
Spanner.Projects.Instances.Databases.Sessions.BeginTransaction |
beginTransaction(java.lang.String session,
BeginTransactionRequest content)
Begins a new transaction.
|
Spanner.Projects.Instances.Databases.Sessions.Commit |
commit(java.lang.String session,
CommitRequest content)
Commits a transaction.
|
Spanner.Projects.Instances.Databases.Sessions.Create |
create(java.lang.String database,
CreateSessionRequest content)
Creates a new session.
|
Spanner.Projects.Instances.Databases.Sessions.Delete |
delete(java.lang.String name)
Ends a session, releasing server resources associated with it.
|
Spanner.Projects.Instances.Databases.Sessions.ExecuteBatchDml |
executeBatchDml(java.lang.String session,
ExecuteBatchDmlRequest content)
Executes a batch of SQL DML statements.
|
Spanner.Projects.Instances.Databases.Sessions.ExecuteSql |
executeSql(java.lang.String session,
ExecuteSqlRequest content)
Executes an SQL statement, returning all results in a single reply.
|
Spanner.Projects.Instances.Databases.Sessions.ExecuteStreamingSql |
executeStreamingSql(java.lang.String session,
ExecuteSqlRequest content)
Like ExecuteSql, except returns the result set as a stream.
|
Spanner.Projects.Instances.Databases.Sessions.Get |
get(java.lang.String name)
Gets a session.
|
Spanner.Projects.Instances.Databases.Sessions.List |
list(java.lang.String database)
Lists all sessions in a given database.
|
Spanner.Projects.Instances.Databases.Sessions.PartitionQuery |
partitionQuery(java.lang.String session,
PartitionQueryRequest content)
Creates a set of partition tokens that can be used to execute a query operation in parallel.
|
Spanner.Projects.Instances.Databases.Sessions.PartitionRead |
partitionRead(java.lang.String session,
PartitionReadRequest content)
Creates a set of partition tokens that can be used to execute a read operation in parallel.
|
Spanner.Projects.Instances.Databases.Sessions.Read |
read(java.lang.String session,
ReadRequest content)
Reads rows from the database using key lookups and scans, as a simple key/value style alternative
to ExecuteSql.
|
Spanner.Projects.Instances.Databases.Sessions.Rollback |
rollback(java.lang.String session,
RollbackRequest content)
Rolls back a transaction, releasing any locks it holds.
|
Spanner.Projects.Instances.Databases.Sessions.StreamingRead |
streamingRead(java.lang.String session,
ReadRequest content)
Like Read, except returns the result set as a stream.
|
public Spanner.Projects.Instances.Databases.Sessions.BatchCreate batchCreate(java.lang.String database, BatchCreateSessionsRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.database
- Required. The database in which the new sessions are created.content
- the BatchCreateSessionsRequest
java.io.IOException
public Spanner.Projects.Instances.Databases.Sessions.BeginTransaction beginTransaction(java.lang.String session, BeginTransactionRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.session
- Required. The session in which the transaction runs.content
- the BeginTransactionRequest
java.io.IOException
public Spanner.Projects.Instances.Databases.Sessions.Commit commit(java.lang.String session, CommitRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.session
- Required. The session in which the transaction to be committed is running.content
- the CommitRequest
java.io.IOException
public Spanner.Projects.Instances.Databases.Sessions.Create create(java.lang.String database, CreateSessionRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.database
- Required. The database in which the new session is created.content
- the CreateSessionRequest
java.io.IOException
public Spanner.Projects.Instances.Databases.Sessions.Delete delete(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The name of the session to delete.java.io.IOException
public Spanner.Projects.Instances.Databases.Sessions.ExecuteBatchDml executeBatchDml(java.lang.String session, ExecuteBatchDmlRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.session
- Required. The session in which the DML statements should be performed.content
- the ExecuteBatchDmlRequest
java.io.IOException
public Spanner.Projects.Instances.Databases.Sessions.ExecuteSql executeSql(java.lang.String session, ExecuteSqlRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.session
- Required. The session in which the SQL query should be performed.content
- the ExecuteSqlRequest
java.io.IOException
public Spanner.Projects.Instances.Databases.Sessions.ExecuteStreamingSql executeStreamingSql(java.lang.String session, ExecuteSqlRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.session
- Required. The session in which the SQL query should be performed.content
- the ExecuteSqlRequest
java.io.IOException
public Spanner.Projects.Instances.Databases.Sessions.Get get(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The name of the session to retrieve.java.io.IOException
public Spanner.Projects.Instances.Databases.Sessions.List list(java.lang.String database) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.database
- Required. The database in which to list sessions.java.io.IOException
public Spanner.Projects.Instances.Databases.Sessions.PartitionQuery partitionQuery(java.lang.String session, PartitionQueryRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.session
- Required. The session used to create the partitions.content
- the PartitionQueryRequest
java.io.IOException
public Spanner.Projects.Instances.Databases.Sessions.PartitionRead partitionRead(java.lang.String session, PartitionReadRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.session
- Required. The session used to create the partitions.content
- the PartitionReadRequest
java.io.IOException
public Spanner.Projects.Instances.Databases.Sessions.Read read(java.lang.String session, ReadRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.session
- Required. The session in which the read should be performed.content
- the ReadRequest
java.io.IOException
public Spanner.Projects.Instances.Databases.Sessions.Rollback rollback(java.lang.String session, RollbackRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.session
- Required. The session in which the transaction to roll back is running.content
- the RollbackRequest
java.io.IOException
public Spanner.Projects.Instances.Databases.Sessions.StreamingRead streamingRead(java.lang.String session, ReadRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.session
- Required. The session in which the read should be performed.content
- the ReadRequest
java.io.IOException