Class SpannerSourceConfig<T>
java.lang.Object
io.github.flink.gcp.connector.spanner.source.SpannerSourceConfig<T>
- Type Parameters:
T- the record type the deserializer produces
- All Implemented Interfaces:
Serializable
Everything the batch source was built with, assembled by the builder and carried into the job
graph.
The partition hints travel as the client's own PartitionOptions, which is serializable
and whose unset fields already mean "no hint" — so the builder's two knobs fold into one value
here rather than into two longs that would have to be folded back at the call site.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the database to read.Returns the deserializer turning rows into records.longReturns the target maximum estimated bytes one fetch hands to the task thread.intReturns how many rows one fetch hands to the task thread.Returns the seam the readers read through.com.google.cloud.spanner.PartitionOptionsReturns the partition-count and partition-size hints.Returns the factory the source mints one planner per enumerator from.Returns what to read.Returns the priority Spanner schedules the reads at.Returns the service-account key-file path, ornullwhen no override is configured.com.google.cloud.spanner.TimestampBoundReturns the snapshot to read at.booleanReturns whether the read runs on Data Boost's independent compute.
-
Method Details
-
getDatabase
Returns the database to read.- Returns:
- the database
-
getReadOperation
Returns what to read.- Returns:
- the read operation
-
getDeserializer
Returns the deserializer turning rows into records.- Returns:
- the deserializer
-
getTimestampBound
public com.google.cloud.spanner.TimestampBound getTimestampBound()Returns the snapshot to read at.- Returns:
- the timestamp bound
-
getPartitionOptions
public com.google.cloud.spanner.PartitionOptions getPartitionOptions()Returns the partition-count and partition-size hints.- Returns:
- the partition options
-
isDataBoostEnabled
public boolean isDataBoostEnabled()Returns whether the read runs on Data Boost's independent compute.- Returns:
- whether Data Boost is enabled
-
getRpcPriority
Returns the priority Spanner schedules the reads at.- Returns:
- the priority, or
nullto leave it unset
-
getServiceAccountKeyFile
Returns the service-account key-file path, ornullwhen no override is configured. -
getPlannerFactory
Returns the factory the source mints one planner per enumerator from.A factory rather than a planner because the JobManager holds one source object for a job's whole life, so a planner here would be shared by every enumerator a coordinator reset builds and the first teardown would refuse every later one (
docs/adr/0128).- Returns:
- the planner factory
-
getOpener
Returns the seam the readers read through.- Returns:
- the opener
-
getMaxRowsPerFetch
public int getMaxRowsPerFetch()Returns how many rows one fetch hands to the task thread.- Returns:
- the per-fetch row cap
-
getMaxBytesPerFetch
public long getMaxBytesPerFetch()Returns the target maximum estimated bytes one fetch hands to the task thread.- Returns:
- the per-fetch byte target
-