Top-Level | Data Types | Schema | Table | Column |
A schema describes the contents of a table, including all column names and types as well as any associated metadata. A schema is represented as a standard JavaScript object with the following properties:
number
): A number indicating the Arrow version of the data, corresponding to the properties of the top-level Version
object. When creating new tables, Flechette uses Version.V5
.number
): The binary endianness (byte order) of the Arrow data. Be default, Flechette assumes the value Endianness.Little
.Field[]
): An array of field specifications. See the field documentation for more details.Map<string, string>
): Custom schema-level metadata annotations.A field describes the name, data type, and metadata for a collection of data values. A field may correspond to either a top-level column or nested data such as the content of a list, struct, or union type. A field is represented as a standard JavaScript object with the following properties:
string
): The field name.DataType
): The field data type. See the Data Types documentation for more.boolean
): Metadata flag indicating if the field values may be set to null
.Map<string, string>
): Custom field-level metadata annotations.# field(name, type[, nullable, metadata])
Create a new field instance for use in a schema or type definition. A field represents a field name, data type, and additional metadata. Fields are used to represent child types within nested types like List, Struct, and Union.
string
): The field name.DataType
): The field data type.boolean
): Flag indicating if the field is nullable (default true
).Map<string,string>
): Custom field metadata annotations (default null
).