Interface RecordQueryResult


@Immutable public interface RecordQueryResult

Represents the result of a record query.

All implementations must be immutable and therefore thread-safe.

See Also: DataApi.query(String), DataApi.queryMore(RecordQueryResult)

Method Summary

Modifier and TypeMethodDescription
java.util.List<Record>getRecords()Returns the Record s in this query result.
longgetTotalSize()Returns the total amount of records returned by the query.
booleanisDone()If true, no additional records can be retrieved from the query result.

Method Details

isDone

boolean isDone()

If true, no additional records can be retrieved from the query result. If false, one or more records remain to be retrieved. Use DataApi.queryMore(RecordQueryResult) to receive the next batch of records from this query result.

Returns: If there are no more rows to be retrieved.

getTotalSize

long getTotalSize()

Returns the total amount of records returned by the query. This is not necessarily the same amount of records returned by getRecords().

Returns: The total amount of records returned by the query. See Also: isDone()

getRecords

@Nonnull java.util.List<Record> getRecords()

Returns the Records in this query result. Use isDone() to determine if there are additional records to be queried with DataApi.queryMore(RecordQueryResult).

Returns: The Records in this query result.