github.com/sid226/arrow/go/arrow

Package arrow provides an implementation of Apache Arrow. Apache Arrow is a cross-language development platform for in-memory data. It specifies a standardized language-independent columnar memory format for flat and hierarchical data, organized for efficient analytic operations on modern hardware. It also provides computational libraries and zero-copy streaming messaging and inter-process communication. The fundamental data structure in Arrow is an Array, which holds a sequence of values of the same type. An array consists of memory holding the data and an additional validity bitmap that indicates if the corresponding entry in the array is valid (not null). If the array has no null entries, it is possible to omit this bitmap. This example shows how to create a FixedSizeList array. The resulting array should be: This example shows how one can slice an array. The initial (float64) array is: and the sub-slice is: This example demonstrates creating an array, sourcing the values and null bitmaps directly from byte slices. The null count is set to UnknownNullCount, instructing the array to calculate the null count from the bitmap when NullN is called. This example shows how to create a List array. The resulting array should be: This example demonstrates how to build an array of int64 values using a builder and Append. Whilst convenient for small arrays, This example shows how to create a Struct array. The resulting array should be:


Licenses
Apache-2.0/BSD-2-Clause/BSD-3-Clause
Install
go get github.com/sid226/arrow/go/arrow