Class SparkSourceOffset (1.0.0)

publicfinalclass SparkSourceOffsetextendsOffset

Inheritance

java.lang.Object > org.apache.spark.sql.connector.read.streaming.Offset > SparkSourceOffset

Inherited Members

org.apache.spark.sql.connector.read.streaming.Offset.equals(java.lang.Object)
org.apache.spark.sql.connector.read.streaming.Offset.hashCode()
org.apache.spark.sql.connector.read.streaming.Offset.json()
org.apache.spark.sql.connector.read.streaming.Offset.toString()

Static Methods

fromJson(String json)

publicstaticSparkSourceOffsetfromJson(Stringjson)
Parameter
Name Description
json String
Returns
Type Description
SparkSourceOffset

merge(SparkPartitionOffset[] offsets)

publicstaticSparkSourceOffsetmerge(SparkPartitionOffset[]offsets)
Parameter
Name Description
offsets com.google.cloud.pubsublite.spark.SparkPartitionOffset[]
Returns
Type Description
SparkSourceOffset

merge(SparkSourceOffset o1, SparkSourceOffset o2)

publicstaticSparkSourceOffsetmerge(SparkSourceOffseto1,SparkSourceOffseto2)
Parameters
Name Description
o1 SparkSourceOffset
o2 SparkSourceOffset
Returns
Type Description
SparkSourceOffset

Constructors

SparkSourceOffset(Map<Partition,SparkPartitionOffset> map)

publicSparkSourceOffset(Map<Partition,SparkPartitionOffset>map)
Parameter
Name Description
map Map<com.google.cloud.pubsublite.Partition,com.google.cloud.pubsublite.spark.SparkPartitionOffset>

Methods

getPartitionOffsetMap()

publicMap<Partition,SparkPartitionOffset>getPartitionOffsetMap()
Returns
Type Description
Map<com.google.cloud.pubsublite.Partition,com.google.cloud.pubsublite.spark.SparkPartitionOffset>

json()

publicStringjson()
Returns
Type Description
String
Overrides
org.apache.spark.sql.connector.read.streaming.Offset.json()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.