Class SparkSourceOffset (1.0.0)

public final class SparkSourceOffset extends Offset

Inheritance

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

Static Methods

fromJson(String json)

public static SparkSourceOffset fromJson(String json)
Parameter
NameDescription
jsonString
Returns
TypeDescription
SparkSourceOffset

merge(SparkPartitionOffset[] offsets)

public static SparkSourceOffset merge(SparkPartitionOffset[] offsets)
Parameter
NameDescription
offsetscom.google.cloud.pubsublite.spark.SparkPartitionOffset[]
Returns
TypeDescription
SparkSourceOffset

merge(SparkSourceOffset o1, SparkSourceOffset o2)

public static SparkSourceOffset merge(SparkSourceOffset o1, SparkSourceOffset o2)
Parameters
NameDescription
o1SparkSourceOffset
o2SparkSourceOffset
Returns
TypeDescription
SparkSourceOffset

Constructors

SparkSourceOffset(Map<Partition,SparkPartitionOffset> map)

public SparkSourceOffset(Map<Partition,SparkPartitionOffset> map)
Parameter
NameDescription
mapMap<com.google.cloud.pubsublite.Partition,com.google.cloud.pubsublite.spark.SparkPartitionOffset>

Methods

getPartitionOffsetMap()

public Map<Partition,SparkPartitionOffset> getPartitionOffsetMap()
Returns
TypeDescription
Map<com.google.cloud.pubsublite.Partition,com.google.cloud.pubsublite.spark.SparkPartitionOffset>

json()

public String json()
Returns
TypeDescription
String
Overrides
org.apache.spark.sql.connector.read.streaming.Offset.json()