Class ProtoMessageSchema

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.beam.sdk.schemas.SchemaProvider

    public class ProtoMessageSchema
    extends org.apache.beam.sdk.schemas.GetterBasedSchemaProviderV2
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> java.util.List<org.apache.beam.sdk.schemas.FieldValueGetter<@NonNull T,​java.lang.Object>> fieldValueGetters​(org.apache.beam.sdk.values.TypeDescriptor<T> targetTypeDescriptor, org.apache.beam.sdk.schemas.Schema schema)  
      java.util.List<org.apache.beam.sdk.schemas.FieldValueTypeInformation> fieldValueTypeInformations​(org.apache.beam.sdk.values.TypeDescriptor<?> targetTypeDescriptor, org.apache.beam.sdk.schemas.Schema schema)  
      static <T> org.apache.beam.sdk.transforms.SimpleFunction<byte[],​org.apache.beam.sdk.values.Row> getProtoBytesToRowFn​(java.lang.Class<T> clazz)  
      static <T> org.apache.beam.sdk.transforms.SimpleFunction<org.apache.beam.sdk.values.Row,​byte[]> getRowToProtoBytesFn​(java.lang.Class<T> clazz)  
      <T> @Nullable org.apache.beam.sdk.schemas.Schema schemaFor​(org.apache.beam.sdk.values.TypeDescriptor<T> typeDescriptor)  
      org.apache.beam.sdk.schemas.SchemaUserTypeCreator schemaTypeCreator​(org.apache.beam.sdk.values.TypeDescriptor<?> targetTypeDescriptor, org.apache.beam.sdk.schemas.Schema schema)  
      • Methods inherited from class org.apache.beam.sdk.schemas.GetterBasedSchemaProviderV2

        fieldValueGetters, fieldValueTypeInformations, schemaTypeCreator
      • Methods inherited from class org.apache.beam.sdk.schemas.GetterBasedSchemaProvider

        equals, fromRowFunction, hashCode, toRowFunction
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProtoMessageSchema

        public ProtoMessageSchema()
    • Method Detail

      • schemaFor

        public <T> @Nullable org.apache.beam.sdk.schemas.Schema schemaFor​(org.apache.beam.sdk.values.TypeDescriptor<T> typeDescriptor)
      • fieldValueGetters

        public <T> java.util.List<org.apache.beam.sdk.schemas.FieldValueGetter<@NonNull T,​java.lang.Object>> fieldValueGetters​(org.apache.beam.sdk.values.TypeDescriptor<T> targetTypeDescriptor,
                                                                                                                                     org.apache.beam.sdk.schemas.Schema schema)
        Specified by:
        fieldValueGetters in class org.apache.beam.sdk.schemas.GetterBasedSchemaProviderV2
      • fieldValueTypeInformations

        public java.util.List<org.apache.beam.sdk.schemas.FieldValueTypeInformation> fieldValueTypeInformations​(org.apache.beam.sdk.values.TypeDescriptor<?> targetTypeDescriptor,
                                                                                                                org.apache.beam.sdk.schemas.Schema schema)
        Specified by:
        fieldValueTypeInformations in class org.apache.beam.sdk.schemas.GetterBasedSchemaProviderV2
      • schemaTypeCreator

        public org.apache.beam.sdk.schemas.SchemaUserTypeCreator schemaTypeCreator​(org.apache.beam.sdk.values.TypeDescriptor<?> targetTypeDescriptor,
                                                                                   org.apache.beam.sdk.schemas.Schema schema)
        Specified by:
        schemaTypeCreator in class org.apache.beam.sdk.schemas.GetterBasedSchemaProviderV2
      • getProtoBytesToRowFn

        public static <T> org.apache.beam.sdk.transforms.SimpleFunction<byte[],​org.apache.beam.sdk.values.Row> getProtoBytesToRowFn​(java.lang.Class<T> clazz)
      • getRowToProtoBytesFn

        public static <T> org.apache.beam.sdk.transforms.SimpleFunction<org.apache.beam.sdk.values.Row,​byte[]> getRowToProtoBytesFn​(java.lang.Class<T> clazz)