public interface ResultSetMetadataOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
TransactionOrBuilder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the transaction field is set. |