Class ComplexFieldSpec

  • All Implemented Interfaces:
    Serializable, Comparable<FieldSpec>

    public final class ComplexFieldSpec
    extends FieldSpec
    FieldSpec for complex fields. The FieldSpec.FieldType is COMPLEX and the inner data type represents the root data type of the field. It could be STRUCT, MAP or LIST. A complex field is composable with a single root type and a number of child types. Although we have multi-value primitive columns, LIST is for representing lists of both complex and primitives inside a complex field. Consider a person json where the root type is STRUCT and composes of inner members: STRUCT( name: STRING age: INT salary: INT addresses: LIST (STRUCT apt: INT street: STRING city: STRING zip: INT ) ) The fieldspec would be COMPLEX with type as STRUCT and 4 inner members to model the hierarchy
    See Also:
    Serialized Form