There are Lua example codes in this directory.
All example codes use LGI to use Arrow GLib based bindings.
Here are command lines to install LGI on Debian GNU/Linux and Ubuntu:
% sudo apt install -y luarocks
% sudo luarocks install lgi
Here are example codes in this directory:
-
write-batch.lua
: It shows how to write Arrow array to file in batch mode. -
read-batch.lua
: It shows how to read Arrow array from file in batch mode. -
write-stream.lua
: It shows how to write Arrow array to file in stream mode. -
read-stream.lua
: It shows how to read Arrow array from file in stream mode. -
stream-to-torch-tensor.lua
: It shows how to read Arrow array from file in stream mode and convert it to Torch'sTensor
object.