Class PubsubLiteReadSchemaTransformProvider

    • Field Detail

      • VALID_FORMATS_STR

        public static final java.lang.String VALID_FORMATS_STR
        See Also:
        Constant Field Values
      • VALID_DATA_FORMATS

        public static final java.util.Set<java.lang.String> VALID_DATA_FORMATS
      • OUTPUT_TAG

        public static final org.apache.beam.sdk.values.TupleTag<org.apache.beam.sdk.values.Row> OUTPUT_TAG
      • ERROR_TAG

        public static final org.apache.beam.sdk.values.TupleTag<org.apache.beam.sdk.values.Row> ERROR_TAG
    • Constructor Detail

      • PubsubLiteReadSchemaTransformProvider

        public PubsubLiteReadSchemaTransformProvider()
    • Method Detail

      • description

        public java.lang.String description()
      • buildSchemaWithAttributes

        public static org.apache.beam.sdk.schemas.Schema buildSchemaWithAttributes​(org.apache.beam.sdk.schemas.Schema schema,
                                                                                   java.util.List<java.lang.String> attributes,
                                                                                   java.lang.String attributesMap)
        Builds a new Schema by adding additional optional attributes and map field to the provided schema.
        Parameters:
        schema - The base schema to which additional attributes and map field will be added.
        attributes - A list of optional attribute names to be added as STRING fields to the schema.
        attributesMap - The name of the optional map field to be added to the schema. If empty, no map field will be added.
        Returns:
        A new Schema with the specified attributes and an optional map field.
        Throws:
        java.lang.IllegalArgumentException - if the schema is null or if any attribute name in the attributes list is null or empty.
      • getRawBytesToRowFunction

        public static org.apache.beam.sdk.transforms.SerializableFunction<byte[],​org.apache.beam.sdk.values.Row> getRawBytesToRowFunction​(org.apache.beam.sdk.schemas.Schema rawSchema)
      • getUuidFromMessage

        public static org.apache.beam.sdk.transforms.SerializableFunction<com.google.cloud.pubsublite.proto.SequencedMessage,​Uuid> getUuidFromMessage​(java.lang.String attributeId)
      • identifier

        public java.lang.String identifier()
      • inputCollectionNames

        public java.util.List<java.lang.String> inputCollectionNames()
      • outputCollectionNames

        public java.util.List<java.lang.String> outputCollectionNames()