Interface ReadResultOrBuilder (6.58.0)

public interface ReadResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getIndex()

public abstract String getIndex()

Index name, if read from an index.

optional string index = 2;

Returns
TypeDescription
String

The index.

getIndexBytes()

public abstract ByteString getIndexBytes()

Index name, if read from an index.

optional string index = 2;

Returns
TypeDescription
ByteString

The bytes for index.

getRequestIndex()

public abstract int getRequestIndex()

Request index (multiread only).

optional int32 request_index = 3;

Returns
TypeDescription
int

The requestIndex.

getRow(int index)

public abstract ValueList getRow(int index)

Rows read. Each row is a struct with multiple fields, one for each column in read result. All rows have the same type.

repeated .google.spanner.executor.v1.ValueList row = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
ValueList

getRowCount()

public abstract int getRowCount()

Rows read. Each row is a struct with multiple fields, one for each column in read result. All rows have the same type.

repeated .google.spanner.executor.v1.ValueList row = 4;

Returns
TypeDescription
int

getRowList()

public abstract List<ValueList> getRowList()

Rows read. Each row is a struct with multiple fields, one for each column in read result. All rows have the same type.

repeated .google.spanner.executor.v1.ValueList row = 4;

Returns
TypeDescription
List<ValueList>

getRowOrBuilder(int index)

public abstract ValueListOrBuilder getRowOrBuilder(int index)

Rows read. Each row is a struct with multiple fields, one for each column in read result. All rows have the same type.

repeated .google.spanner.executor.v1.ValueList row = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
ValueListOrBuilder

getRowOrBuilderList()

public abstract List<? extends ValueListOrBuilder> getRowOrBuilderList()

Rows read. Each row is a struct with multiple fields, one for each column in read result. All rows have the same type.

repeated .google.spanner.executor.v1.ValueList row = 4;

Returns
TypeDescription
List<? extends com.google.spanner.executor.v1.ValueListOrBuilder>

getRowType()

public abstract StructType getRowType()

The type of rows read. It must be set if at least one row was read.

optional .google.spanner.v1.StructType row_type = 5;

Returns
TypeDescription
StructType

The rowType.

getRowTypeOrBuilder()

public abstract StructTypeOrBuilder getRowTypeOrBuilder()

The type of rows read. It must be set if at least one row was read.

optional .google.spanner.v1.StructType row_type = 5;

Returns
TypeDescription
StructTypeOrBuilder

getTable()

public abstract String getTable()

Table name.

string table = 1;

Returns
TypeDescription
String

The table.

getTableBytes()

public abstract ByteString getTableBytes()

Table name.

string table = 1;

Returns
TypeDescription
ByteString

The bytes for table.

hasIndex()

public abstract boolean hasIndex()

Index name, if read from an index.

optional string index = 2;

Returns
TypeDescription
boolean

Whether the index field is set.

hasRequestIndex()

public abstract boolean hasRequestIndex()

Request index (multiread only).

optional int32 request_index = 3;

Returns
TypeDescription
boolean

Whether the requestIndex field is set.

hasRowType()

public abstract boolean hasRowType()

The type of rows read. It must be set if at least one row was read.

optional .google.spanner.v1.StructType row_type = 5;

Returns
TypeDescription
boolean

Whether the rowType field is set.