Interface SchemaProvider

    • Method Detail

      • schemaFor

        <T> @Nullable Schema schemaFor​(TypeDescriptor<T> typeDescriptor)
        Lookup a schema for the given type. If no schema exists, returns null.
      • toRowFunction

        <T> @Nullable SerializableFunction<T,​Row> toRowFunction​(TypeDescriptor<T> typeDescriptor)
        Given a type, return a function that converts that type to a Row object If no schema exists, returns null.
      • fromRowFunction

        <T> @Nullable SerializableFunction<Row,​T> fromRowFunction​(TypeDescriptor<T> typeDescriptor)
        Given a type, returns a function that converts from a Row object to that type. If no schema exists, returns null.