Apache Arrow (C++)
A columnar in-memory analytics layer designed to accelerate big data.
Namespaces | Macros
type_traits.h File Reference
#include "arrow/python/platform.h"
#include <cstdint>
#include <limits>
#include "arrow/python/numpy_interop.h"
#include <numpy/halffloat.h>
#include "arrow/builder.h"
#include "arrow/type.h"
#include "arrow/util/logging.h"

Go to the source code of this file.

Namespaces

 arrow
 Top-level namespace for Apache Arrow C++ API.
 
 arrow::py
 

Macros

#define NPY_INT_DECL(TYPE, CapType, T)
 
#define INT_DECL(TYPE)
 

Macro Definition Documentation

◆ INT_DECL

#define INT_DECL (   TYPE)
Value:
template <> \
struct arrow_traits<Type::TYPE> { \
static constexpr int npy_type = NPY_##TYPE; \
static constexpr bool supports_nulls = false; \
static constexpr double na_value = NAN; \
typedef typename npy_traits<NPY_##TYPE>::value_type T; \
};

◆ NPY_INT_DECL

#define NPY_INT_DECL (   TYPE,
  CapType,
 
)
Value:
template <> \
struct npy_traits<NPY_##TYPE> { \
typedef T value_type; \
using TypeClass = CapType##Type; \
using BuilderClass = CapType##Builder; \
\
static constexpr bool supports_nulls = false; \
static inline bool isnull(T v) { return false; } \
};