Interface ResultSetOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ResultSet, ResultSet.Builder

public interface ResultSetOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Metadata about the result set, such as row type information.
    Metadata about the result set, such as row type information.
    com.google.protobuf.ListValue
    getRows(int index)
    Each element in `rows` is a row whose format is defined by [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type].
    int
    Each element in `rows` is a row whose format is defined by [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type].
    List<com.google.protobuf.ListValue>
    Each element in `rows` is a row whose format is defined by [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type].
    com.google.protobuf.ListValueOrBuilder
    getRowsOrBuilder(int index)
    Each element in `rows` is a row whose format is defined by [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type].
    List<? extends com.google.protobuf.ListValueOrBuilder>
    Each element in `rows` is a row whose format is defined by [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type].
    Query plan and execution statistics for the SQL statement that produced this result set.
    Query plan and execution statistics for the SQL statement that produced this result set.
    boolean
    Metadata about the result set, such as row type information.
    boolean
    Query plan and execution statistics for the SQL statement that produced this result set.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasMetadata

      boolean hasMetadata()
       Metadata about the result set, such as row type information.
       
      .google.spanner.v1.ResultSetMetadata metadata = 1;
      Returns:
      Whether the metadata field is set.
    • getMetadata

      ResultSetMetadata getMetadata()
       Metadata about the result set, such as row type information.
       
      .google.spanner.v1.ResultSetMetadata metadata = 1;
      Returns:
      The metadata.
    • getMetadataOrBuilder

      ResultSetMetadataOrBuilder getMetadataOrBuilder()
       Metadata about the result set, such as row type information.
       
      .google.spanner.v1.ResultSetMetadata metadata = 1;
    • getRowsList

      List<com.google.protobuf.ListValue> getRowsList()
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
       in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
       encoded based on type as described
       [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • getRows

      com.google.protobuf.ListValue getRows(int index)
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
       in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
       encoded based on type as described
       [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • getRowsCount

      int getRowsCount()
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
       in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
       encoded based on type as described
       [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • getRowsOrBuilderList

      List<? extends com.google.protobuf.ListValueOrBuilder> getRowsOrBuilderList()
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
       in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
       encoded based on type as described
       [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • getRowsOrBuilder

      com.google.protobuf.ListValueOrBuilder getRowsOrBuilder(int index)
       Each element in `rows` is a row whose format is defined by
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
       in each row matches the ith field in
       [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
       encoded based on type as described
       [here][google.spanner.v1.TypeCode].
       
      repeated .google.protobuf.ListValue rows = 2;
    • hasStats

      boolean hasStats()
       Query plan and execution statistics for the SQL statement that
       produced this result set. These can be requested by setting
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       DML statements always produce stats containing the number of rows
       modified, unless executed using the
       [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN] [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       Other fields may or may not be populated, based on the
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       
      .google.spanner.v1.ResultSetStats stats = 3;
      Returns:
      Whether the stats field is set.
    • getStats

      ResultSetStats getStats()
       Query plan and execution statistics for the SQL statement that
       produced this result set. These can be requested by setting
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       DML statements always produce stats containing the number of rows
       modified, unless executed using the
       [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN] [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       Other fields may or may not be populated, based on the
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       
      .google.spanner.v1.ResultSetStats stats = 3;
      Returns:
      The stats.
    • getStatsOrBuilder

      ResultSetStatsOrBuilder getStatsOrBuilder()
       Query plan and execution statistics for the SQL statement that
       produced this result set. These can be requested by setting
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       DML statements always produce stats containing the number of rows
       modified, unless executed using the
       [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN] [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       Other fields may or may not be populated, based on the
       [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
       
      .google.spanner.v1.ResultSetStats stats = 3;