Class BigtableSourceConfig<T>
- Type Parameters:
T- the record type the deserializer produces
- All Implemented Interfaces:
Serializable
No Query field, and none may be added. A Query is the client's request
object, and holding one here would be wrong in three ways that a serialization round-trip does
not reveal: it cannot be read back, since its target-id accessor is internal, it exposes no row
set and its bound is only the minimal range enclosing what it holds — so nothing could log it,
truncate it at a resume point, or compare two of them; its payload is the ReadRowsRequest
wire form, which would pin a vendor format into the connector's own state; and it is mutable with
a transient builder, so identity across a restore is not a property anyone should have to
reason about. The ranges and the filter are held instead, and the query is built per read.
Ranges are copied in and copied out. The client's ByteStringRange is mutable and its
mutators return the receiver, so a shared reference would let a caller change a running job's
plan.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the application profile to route through, ornullfor the default.Returns the deserializer turning rows into records.com.google.cloud.bigtable.data.v2.models.Filters.FilterReturns the server-side filter to apply, ornullwhen none was configured.longReturns the target maximum estimated bytes one fetch hands to the task thread.intReturns the most rows one fetch hands to the task thread.Returns the opener the readers read through; a reader owns and closes it.List<com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange>Returns the ranges to read, normalised and coalesced, in key order and never empty.Returns the factory the source mints one sampler per enumerator from.Returns the service-account key-file path, ornullto use ADC.getTable()Returns the table being read.
-
Method Details
-
getTable
Returns the table being read. -
getDeserializer
Returns the deserializer turning rows into records. -
getRanges
Returns the ranges to read, normalised and coalesced, in key order and never empty.Fresh copies, because the ranges are mutable and this configuration is shared by every component of the source.
-
getFilter
@Nullable public com.google.cloud.bigtable.data.v2.models.Filters.Filter getFilter()Returns the server-side filter to apply, ornullwhen none was configured. -
getAppProfileId
Returns the application profile to route through, ornullfor the default. -
getServiceAccountKeyFile
Returns the service-account key-file path, ornullto use ADC. -
getSamplerFactory
Returns the factory the source mints one sampler per enumerator from.A factory rather than a sampler because the JobManager holds one source object for a job's whole life, so a sampler here would be shared by every enumerator a coordinator reset builds and the first teardown would refuse every later one (
docs/adr/0128). -
getOpener
Returns the opener the readers read through; a reader owns and closes it. -
getMaxRowsPerFetch
public int getMaxRowsPerFetch()Returns the most rows one fetch hands to the task thread. -
getMaxBytesPerFetch
public long getMaxBytesPerFetch()Returns the target maximum estimated bytes one fetch hands to the task thread.
-