View Source arrow_ipc_field (arrow v0.1.0)
Provides a record and functions to deal with individual fields in a Schema
A Field[1] represents a single column in a table (which is represented by a Schema[2]). This module provides a record and a function to manage all the metadata required to represent a column. Metadata such as:
name: The Name of the column. This can either be a string or null.nullable: A boolean representing whether a column can have null values. Generally true.type: The Type of the column, and is of typearrow_ipc_type:ipc_type()dictionary: A boolean representing if the column is dictionary encodedchildren: The child fields of a nested datatypecustom_metadata: A list of custom metadata in key-value format
Currently, dictionary encoding and custom metadata are not supported, but they have been added for forwards comapatibility.
[2]: https://github.com/apache/arrow/blob/3456131ab7350bee5d9569ffd63d3f0ee713991c/format/Schema.fbs#L514-L530Link to this section Summary
Functions
Creates a field given the type of the column. Assigns the name as
undefined.Creates a field given the type and name of the column.
Creates a field given the type, name and children of the column.
Link to this section Functions
-spec from_erlang(Type :: arrow_ipc_type:ipc_type()) -> Field :: #field{}.
undefined.
-spec from_erlang(Type :: arrow_ipc_type:ipc_type(), Name :: string() | undefined) -> Field :: #field{}.
-spec from_erlang(Type :: arrow_ipc_type:ipc_type(), Name :: string() | undefined, Children :: [#field{}]) -> Field :: #field{}.