Package org.apache.beam.sdk.io.aws2.sqs
Class SqsIO.Read
java.lang.Object
org.apache.beam.sdk.transforms.PTransform<PBegin,PCollection<SqsMessage>>
org.apache.beam.sdk.io.aws2.sqs.SqsIO.Read
- All Implemented Interfaces:
Serializable,HasDisplayData
- Enclosing class:
SqsIO
A
PTransform to read/receive messages from SQS. See SqsIO for more information
on usage and configuration.- See Also:
-
Field Summary
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOverride this method to specify how thisPTransformshould be expanded on the givenInputT.Configuration of SQS client.withMaxNumRecords(long maxNumRecords) Define the max number of records received by theSqsIO.Read.withMaxReadTime(Duration maxReadTime) Define the max read time (duration) while theSqsIO.Readwill receive messages.withQueueUrl(String queueUrl) Define the queueUrl used by theSqsIO.Readto receive messages from SQS.Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setDisplayData, setResourceHints, toString, validate, validate
-
Constructor Details
-
Read
public Read()
-
-
Method Details
-
withMaxNumRecords
Define the max number of records received by theSqsIO.Read. When the max number of records is lower thanLong.MAX_VALUE, theSqsIO.Readwill provide a boundedPCollection. -
withMaxReadTime
Define the max read time (duration) while theSqsIO.Readwill receive messages. When this max read time is not null, theSqsIO.Readwill provide a boundedPCollection. -
withQueueUrl
Define the queueUrl used by theSqsIO.Readto receive messages from SQS. -
withClientConfiguration
Configuration of SQS client. -
expand
Description copied from class:PTransformOverride this method to specify how thisPTransformshould be expanded on the givenInputT.NOTE: This method should not be called directly. Instead apply the
PTransformshould be applied to theInputTusing theapplymethod.Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
- Specified by:
expandin classPTransform<PBegin,PCollection<SqsMessage>>
-