Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

red-data-tools/parquet-glib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parquet GLib

This project has been donated to Apache Arrow: https://github.com/apache/arrow/tree/master/c_glib/parquet-glib

Parquet GLib is a wrapper library for Parquet C++. Parquet GLib provides C API.

Parquet GLib supports GObject Introspection. It means that you can create language bindings at runtime or compile time.

For example, you can use Apache Parquet from Ruby by Parquet GLib and gobject-introspection gem with the following code:

# Generate bindings at runtime
require "gi"
Parquet = GI.load("Parquet")

# TODO

Install

You can use packages or build by yourself to install Parquet GLib. It's recommended that you use packages.

Package

You can install packages from https://packages.red-data-tools.org/ . See https://github.com/red-data-tools/packages.red-data-tools.org#readme for details.

How to build by users

Parquet GLib users should use released source archive to build Parquet GLib:

% wget https://github.com/red-data-tools/parquet-glib/releases/download/1.0.0/parquet-glib-1.0.0.tar.gz
% tar xf parquet-glib-1.0.0.tar.gz
% cd parquet-glib-1.0.0

You need to install Parquet C++, Arrow C++ and Arrow GLib before you install Parquet GLib. See documents about how to install them.

You can build and install Parquet GLib after you install them:

% ./configure
% make
% sudo make install

How to build by developers

You need to install Parquet C++, Arrow C++ and Arrow GLib before you install Parquet GLib. See documents about how to install them.

You need GTK-Doc and GObject Introspection to build Parquet GLib. You can install them by the followings:

On Debian GNU/Linux or Ubuntu:

% sudo apt install -y -V gtk-doc-tools autoconf-archive libgirepository1.0-dev

On CentOS 7 or later:

% sudo yum install -y gtk-doc gobject-introspection-devel

On macOS with Homebrew:

% brew install -y gtk-doc gobject-introspection

Now, you can build Arrow GLib:

% ./autogen.sh
% ./configure --enable-gtk-doc
% make
% sudo make install

Usage

You can use Parquet GLib with C or other languages. If you use Parquet GLib with C, you use C API. If you use Parquet GLib with other languages, you use GObject Introspection based bindings.

C

You can find API reference in the /usr/local/share/gtk-doc/html/parquet-glib/ directory. If you specify --prefix to configure, the directory will be different.

TODO: Examples

Language bindings

TODO