Package com.google.cloud.bigquery
Class TableResult
java.lang.Object
com.google.cloud.bigquery.TableResult
- All Implemented Interfaces:
Page<FieldValueList>,Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanabstract @Nullable JobCreationReasonabstract @Nullable JobIdgetJobId()abstract @Nullable LongReturns the number of rows affected by a DML statement (INSERT, UPDATE, DELETE, MERGE).abstract Page<FieldValueList>abstract @Nullable Stringabstract @Nullable LongReturns the number of rows in the current page of results.abstract @Nullable SchemaReturns the schema of the results.abstract @Nullable JobStatistics.SessionInfoReturns information about the BigQuery session if this query was executed within or created a session.abstract @Nullable JobStatistics.QueryStatistics.StatementTypeReturns the statement type of the query (e.g.abstract @Nullable LongReturns the total number of bytes billed for the query.abstract @Nullable LongReturns the total number of bytes processed by the query.abstract longReturns the total number of rows in the complete result set, which can be more than the number of rows in the first page of results.abstract @Nullable LongReturns the total slot milliseconds consumed by the query.final inthashCode()booleanstatic TableResult.Builderabstract TableResult.BuildertoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.api.gax.paging.Page
streamAll, streamValues
-
Constructor Details
-
TableResult
public TableResult()
-
-
Method Details
-
toBuilder
-
newBuilder
-
getSchema
Returns the schema of the results. Null if the schema is not supplied. -
getTotalRows
public abstract long getTotalRows()Returns the total number of rows in the complete result set, which can be more than the number of rows in the first page of results. If no rows are returned, this value can still be greater than 0 if any rows were affected by the query, such as INSERT, UPDATE, or DELETE queries. -
getPageNoSchema
-
getJobId
-
getQueryId
-
getJobCreationReason
-
getRowsInPage
Returns the number of rows in the current page of results. -
getStatementType
Returns the statement type of the query (e.g. SELECT, INSERT, UPDATE, DDL, SCRIPT).- Returns:
- statement type, or
nullif not populated by the service
-
getTotalBytesBilled
Returns the total number of bytes billed for the query.- Returns:
- total bytes billed, or
nullif not populated by the service
-
getTotalBytesProcessed
Returns the total number of bytes processed by the query.- Returns:
- total bytes processed, or
nullif not populated by the service
-
getTotalSlotMs
Returns the total slot milliseconds consumed by the query.- Returns:
- total slot milliseconds, or
nullif not populated by the service
-
getNumDmlAffectedRows
Returns the number of rows affected by a DML statement (INSERT, UPDATE, DELETE, MERGE).- Returns:
- number of affected rows for DML queries, or
nullif not populated by the service
-
getSessionInfo
Returns information about the BigQuery session if this query was executed within or created a session.- Returns:
- session information, or
nullif not populated by the service
-
hasNextPage
public boolean hasNextPage()- Specified by:
hasNextPagein interfacePage<FieldValueList>
-
getNextPageToken
- Specified by:
getNextPageTokenin interfacePage<FieldValueList>
-
getNextPage
- Specified by:
getNextPagein interfacePage<FieldValueList>
-
iterateAll
- Specified by:
iterateAllin interfacePage<FieldValueList>
-
getValues
- Specified by:
getValuesin interfacePage<FieldValueList>
-
toString
-
hashCode
public final int hashCode() -
equals
-