Interface ResultSetMetadataOrBuilder (6.50.1)

public interface ResultSetMetadataOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getRowType()

public abstract StructType getRowType()

Indicates the field names and types for the rows in the result set. For example, a SQL query like "SELECT UserId, UserName FROM Users" could return a row_type value like:

 "fields": [
   { "name": "UserId", "type": { "code": "INT64" } },
   { "name": "UserName", "type": { "code": "STRING" } },
 ]

.google.spanner.v1.StructType row_type = 1;

Returns
TypeDescription
StructType

The rowType.

getRowTypeOrBuilder()

public abstract StructTypeOrBuilder getRowTypeOrBuilder()

Indicates the field names and types for the rows in the result set. For example, a SQL query like "SELECT UserId, UserName FROM Users" could return a row_type value like:

 "fields": [
   { "name": "UserId", "type": { "code": "INT64" } },
   { "name": "UserName", "type": { "code": "STRING" } },
 ]

.google.spanner.v1.StructType row_type = 1;

Returns
TypeDescription
StructTypeOrBuilder

getTransaction()

public abstract Transaction getTransaction()

If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.

.google.spanner.v1.Transaction transaction = 2;

Returns
TypeDescription
Transaction

The transaction.

getTransactionOrBuilder()

public abstract TransactionOrBuilder getTransactionOrBuilder()

If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.

.google.spanner.v1.Transaction transaction = 2;

Returns
TypeDescription
TransactionOrBuilder

getUndeclaredParameters()

public abstract StructType getUndeclaredParameters()

A SQL query can be parameterized. In PLAN mode, these parameters can be undeclared. This indicates the field names and types for those undeclared parameters in the SQL query. For example, a SQL query like "SELECT * FROM Users where UserId = @userId and UserName = @userName " could return a undeclared_parameters value like:

 "fields": [
   { "name": "UserId", "type": { "code": "INT64" } },
   { "name": "UserName", "type": { "code": "STRING" } },
 ]

.google.spanner.v1.StructType undeclared_parameters = 3;

Returns
TypeDescription
StructType

The undeclaredParameters.

getUndeclaredParametersOrBuilder()

public abstract StructTypeOrBuilder getUndeclaredParametersOrBuilder()

A SQL query can be parameterized. In PLAN mode, these parameters can be undeclared. This indicates the field names and types for those undeclared parameters in the SQL query. For example, a SQL query like "SELECT * FROM Users where UserId = @userId and UserName = @userName " could return a undeclared_parameters value like:

 "fields": [
   { "name": "UserId", "type": { "code": "INT64" } },
   { "name": "UserName", "type": { "code": "STRING" } },
 ]

.google.spanner.v1.StructType undeclared_parameters = 3;

Returns
TypeDescription
StructTypeOrBuilder

hasRowType()

public abstract boolean hasRowType()

Indicates the field names and types for the rows in the result set. For example, a SQL query like "SELECT UserId, UserName FROM Users" could return a row_type value like:

 "fields": [
   { "name": "UserId", "type": { "code": "INT64" } },
   { "name": "UserName", "type": { "code": "STRING" } },
 ]

.google.spanner.v1.StructType row_type = 1;

Returns
TypeDescription
boolean

Whether the rowType field is set.

hasTransaction()

public abstract boolean hasTransaction()

If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.

.google.spanner.v1.Transaction transaction = 2;

Returns
TypeDescription
boolean

Whether the transaction field is set.

hasUndeclaredParameters()

public abstract boolean hasUndeclaredParameters()

A SQL query can be parameterized. In PLAN mode, these parameters can be undeclared. This indicates the field names and types for those undeclared parameters in the SQL query. For example, a SQL query like "SELECT * FROM Users where UserId = @userId and UserName = @userName " could return a undeclared_parameters value like:

 "fields": [
   { "name": "UserId", "type": { "code": "INT64" } },
   { "name": "UserName", "type": { "code": "STRING" } },
 ]

.google.spanner.v1.StructType undeclared_parameters = 3;

Returns
TypeDescription
boolean

Whether the undeclaredParameters field is set.