Class PslContinuousInputPartition (0.3.4)

public class PslContinuousInputPartition implements ContinuousInputPartition<InternalRow>, Serializable

Inheritance

java.lang.Object > PslContinuousInputPartition

Implements

org.apache.spark.sql.sources.v2.reader.ContinuousInputPartition<org.apache.spark.sql.catalyst.InternalRow>, Serializable

Constructors

PslContinuousInputPartition(PartitionSubscriberFactory subscriberFactory, SparkPartitionOffset startOffset, SubscriptionPath subscriptionPath, FlowControlSettings flowControlSettings)

public PslContinuousInputPartition(PartitionSubscriberFactory subscriberFactory, SparkPartitionOffset startOffset, SubscriptionPath subscriptionPath, FlowControlSettings flowControlSettings)
Parameters
NameDescription
subscriberFactoryPartitionSubscriberFactory
startOffsetcom.google.cloud.pubsublite.spark.SparkPartitionOffset
subscriptionPathcom.google.cloud.pubsublite.SubscriptionPath
flowControlSettingscom.google.cloud.pubsublite.cloudpubsub.FlowControlSettings

Methods

createContinuousReader(PartitionOffset offset)

public InputPartitionReader<InternalRow> createContinuousReader(PartitionOffset offset)
Parameter
NameDescription
offsetorg.apache.spark.sql.sources.v2.reader.streaming.PartitionOffset
Returns
TypeDescription
org.apache.spark.sql.sources.v2.reader.InputPartitionReader<org.apache.spark.sql.catalyst.InternalRow>

createPartitionReader()

public InputPartitionReader<InternalRow> createPartitionReader()
Returns
TypeDescription
org.apache.spark.sql.sources.v2.reader.InputPartitionReader<org.apache.spark.sql.catalyst.InternalRow>