Apache GraphAr C++ Library
The C++ Library for Apache GraphAr
|
This directory contains the code and build system for the GraphAr C++ library.
GraphAr C++ uses CMake as a build configuration system. We recommend building out-of-source. If you are not familiar with this terminology:
cmake
is invoked directly from the cpp
directory. This can be inflexible when you wish to maintain multiple build environments (e.g. one for debug builds and another for release builds)cmake
is invoked from another directory, creating an isolated build environment that does not interact with any other build environment. For example, you could create cpp/build-debug
and invoke cmake $CMAKE_ARGS ..
from this directoryBuilding requires:
make
build utilitiesarrow-dev
, arrow-dataset
, arrow-acero
and parquet
modules) for Arrow filesystem support and can use BUILD_ARROW_FROM_SOURCE
option to build with GraphAr automatically. You can refer to Apache Arrow Installation to install Arrow directly too.Dependencies for optional features:
Extra dependencies are required by examples:
All the instructions below assume that you have cloned the GraphAr git repository and navigated to the cpp
subdirectory:
Release build:
Debug build with unit tests:
Build with examples, you should build the project with BUILD_EXAMPLES
option, then run:
Build with benchmarks, you should build the project with BUILD_BENCHMARKS
option, then run:
After the building, you can install the GraphAr C++ library with:
You should build the project with ENABLE_DOCS
option. Then run:
The API document is generated in the directory docs_doxygen
.
Please refer to our GraphAr C++ API Reference.