Class SchemaToStructTypeConverter


  • public class SchemaToStructTypeConverter
    extends Object
    Converts a Gaffer Schema to a Spark StructType. Only groups that are present in the provided View are used. Properties that can either automatically be converted into a value that can be used in a Spark Dataframe, or for which a Converter is provided, will be present in the StructType. If the same property is present in more than one group, then it must be consistent, i.e. of the same type. The converter will ignore any properties which share a name with the key property names required by a Spark Dataframe. This will result in these properties being missed if they are specified in the Gaffer Schema. I.e if Rows are converted back into Gaffer Elements it will not be possible to recreate the original Elements.