Class FileSchema.ElementBuilder

java.lang.Object
dev.hardwood.schema.FileSchema.ElementBuilder
Enclosing class:
FileSchema

public static final class FileSchema.ElementBuilder extends Object

Declares the element of a LIST, or the value of a MAP: a primitive, a nested struct, a nested LIST, or a nested MAP. The declared node is named element inside a list and value inside a map.

The field id of the element or value is set where it is declared: in the FileSchema.PrimitiveBuilder of a primitive, with FileSchema.StructBuilder.fieldId(int) for a struct, and in the FileSchema.GroupBuilder of a FILE, LIST or MAP. The field id of the enclosing LIST or MAP is set in its own FileSchema.GroupBuilder.