Class PubsubMessageWithAttributesAndMessageIdAndOrderingKeyCoder
- java.lang.Object
-
- org.apache.beam.sdk.coders.Coder<T>
-
- org.apache.beam.sdk.coders.CustomCoder<PubsubMessage>
-
- org.apache.beam.sdk.io.gcp.pubsub.PubsubMessageWithAttributesAndMessageIdAndOrderingKeyCoder
-
- All Implemented Interfaces:
java.io.Serializable
public class PubsubMessageWithAttributesAndMessageIdAndOrderingKeyCoder extends org.apache.beam.sdk.coders.CustomCoder<PubsubMessage>
A coder for PubsubMessage including all fields of a PubSub message from server.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PubsubMessageWithAttributesAndMessageIdAndOrderingKeyCoder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PubsubMessage
decode(java.io.InputStream inStream)
void
encode(PubsubMessage value, java.io.OutputStream outStream)
static PubsubMessageWithAttributesAndMessageIdAndOrderingKeyCoder
of()
static org.apache.beam.sdk.coders.Coder<PubsubMessage>
of(org.apache.beam.sdk.values.TypeDescriptor<PubsubMessage> ignored)
-
Methods inherited from class org.apache.beam.sdk.coders.CustomCoder
getCoderArguments, verifyDeterministic
-
-
-
-
Method Detail
-
of
public static org.apache.beam.sdk.coders.Coder<PubsubMessage> of(org.apache.beam.sdk.values.TypeDescriptor<PubsubMessage> ignored)
-
of
public static PubsubMessageWithAttributesAndMessageIdAndOrderingKeyCoder of()
-
encode
public void encode(PubsubMessage value, java.io.OutputStream outStream) throws java.io.IOException
- Specified by:
encode
in classorg.apache.beam.sdk.coders.Coder<PubsubMessage>
- Throws:
java.io.IOException
-
decode
public PubsubMessage decode(java.io.InputStream inStream) throws java.io.IOException
- Specified by:
decode
in classorg.apache.beam.sdk.coders.Coder<PubsubMessage>
- Throws:
java.io.IOException
-
-