Class BigQuerySourceConfig<T>
- Type Parameters:
T- type of the records produced by the source
- All Implemented Interfaces:
Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns what this source reads, as it reads mid-sentence, for the enumerator's log lines and failure messages.Returns the deserializer converting rows into records.longReturns the target serialized Avro bytes one fetch hands to the task thread.intReturns the most rows one fetch hands to the task thread.intReturns the upper bound on read streams, or0to let BigQuery decide.Returns the project the read session belongs to and is billed to.intReturns the preferred lower bound on read streams, or0for none.getQuery()Returns the query whose result is read, ornullwhen a table is named directly.Returns the location the query job runs in, ornullto let BigQuery infer it.Returns the dataset the query's result is written to, ornullfor BigQuery's own anonymous dataset.Returns the seam running the query, ornullwhen a table is named directly.Returns how long a re-planned job may reuse a previous attempt's query job, ornullfor the default: a random job id, under which nothing is ever reused.Returns the server-side row filter, ornullfor no filter.Returns the seam opening read streams.Returns the columns read, or an empty list for every column.Returns the factory the source mints one session creator per enumerator from.Returns the instant the table is read as of, ornullfor its current contents.getTable()Returns the table being read, ornullwhen a query decides it.booleanReturns whethermaterializeViews()was asked for.
-
Method Details
-
getTable
Returns the table being read, ornullwhen a query decides it.Exactly one of this and
getQuery()is set; which one is what the builder enforced. -
getQuery
Returns the query whose result is read, ornullwhen a table is named directly. -
getQueryLocation
Returns the location the query job runs in, ornullto let BigQuery infer it. -
getQueryResultDataset
Returns the dataset the query's result is written to, ornullfor BigQuery's own anonymous dataset. -
getReuseQueryResultWithin
Returns how long a re-planned job may reuse a previous attempt's query job, ornullfor the default: a random job id, under which nothing is ever reused. -
isMaterializeViewsEnabled
public boolean isMaterializeViewsEnabled()Returns whethermaterializeViews()was asked for.Named
...Enabledrather than after the field alone, which every other boolean getter here is:isMaterializeViews()reads as a question about a materialized view — a real BigQuery noun, and one this very class decides about — rather than as "the option is on". A reader misread it that way, which is the whole argument.Off unless asked for, because deciding it costs a metadata call the read path otherwise never makes.
-
getQueryRunner
Returns the seam running the query, ornullwhen a table is named directly. -
describeInput
Returns what this source reads, as it reads mid-sentence, for the enumerator's log lines and failure messages.The query is not quoted in full: it can be arbitrarily long, and a message that buries its own point under a page of SQL is worse than one that names the job to look up.
-
getParentProject
Returns the project the read session belongs to and is billed to. -
getDeserializer
Returns the deserializer converting rows into records. -
getSelectedFields
Returns the columns read, or an empty list for every column. -
getRowRestriction
Returns the server-side row filter, ornullfor no filter. -
getSnapshotTime
Returns the instant the table is read as of, ornullfor its current contents. -
getMaxStreamCount
public int getMaxStreamCount()Returns the upper bound on read streams, or0to let BigQuery decide. -
getPreferredMinStreamCount
public int getPreferredMinStreamCount()Returns the preferred lower bound on read streams, or0for none. -
getMaxRecordsPerFetch
public int getMaxRecordsPerFetch()Returns the most rows one fetch hands to the task thread. -
getMaxBytesPerFetch
public long getMaxBytesPerFetch()Returns the target serialized Avro bytes one fetch hands to the task thread. -
getSessionCreatorFactory
Returns the factory the source mints one session creator per enumerator from.A factory rather than a creator because the JobManager holds one source object for a job's whole life, so a creator here would be shared by every enumerator a coordinator reset builds and the first teardown would refuse every later one (
docs/adr/0128). -
getRowStreamOpener
Returns the seam opening read streams.
-