Apache Arrow (C++)
A columnar in-memory analytics layer designed to accelerate big data.
Classes | Namespaces | Macros | Enumerations
status.h File Reference
#include <cstring>
#include <iosfwd>
#include <string>
#include "arrow/util/macros.h"
#include "arrow/util/visibility.h"

Go to the source code of this file.

Classes

class  arrow::Status
 

Namespaces

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

Macros

#define ARROW_RETURN_NOT_OK(s)
 
#define ARROW_CHECK_OK_PREPEND(to_call, msg)
 
#define ARROW_CHECK_OK(s)   ARROW_CHECK_OK_PREPEND(s, "Bad status")
 
#define RETURN_NOT_OK(s)
 
#define RETURN_NOT_OK_ELSE(s, else_)
 

Enumerations

enum  arrow::StatusCode : char {
  arrow::StatusCode::OK = 0, arrow::StatusCode::OutOfMemory = 1, arrow::StatusCode::KeyError = 2, arrow::StatusCode::TypeError = 3,
  arrow::StatusCode::Invalid = 4, arrow::StatusCode::IOError = 5, arrow::StatusCode::UnknownError = 9, arrow::StatusCode::NotImplemented = 10,
  arrow::StatusCode::SerializationError = 11, arrow::StatusCode::PythonError = 12, arrow::StatusCode::PlasmaObjectExists = 20, arrow::StatusCode::PlasmaObjectNonexistent = 21,
  arrow::StatusCode::PlasmaStoreFull = 22
}
 

Macro Definition Documentation

◆ ARROW_CHECK_OK

#define ARROW_CHECK_OK (   s)    ARROW_CHECK_OK_PREPEND(s, "Bad status")

◆ ARROW_CHECK_OK_PREPEND

#define ARROW_CHECK_OK_PREPEND (   to_call,
  msg 
)
Value:
do { \
::arrow::Status _s = (to_call); \
ARROW_CHECK(_s.ok()) << (msg) << ": " << _s.ToString(); \
} while (false)
Definition: status.h:106
bool ok() const
Definition: status.h:167
std::string ToString() const

◆ ARROW_RETURN_NOT_OK

#define ARROW_RETURN_NOT_OK (   s)
Value:
do { \
::arrow::Status _s = (s); \
if (ARROW_PREDICT_FALSE(!_s.ok())) { \
return _s; \
} \
} while (false)
#define ARROW_PREDICT_FALSE(x)
Definition: macros.h:48
Definition: status.h:106
bool ok() const
Definition: status.h:167

◆ RETURN_NOT_OK

#define RETURN_NOT_OK (   s)
Value:
do { \
Status _s = (s); \
if (ARROW_PREDICT_FALSE(!_s.ok())) { \
return _s; \
} \
} while (false)
#define ARROW_PREDICT_FALSE(x)
Definition: macros.h:48

◆ RETURN_NOT_OK_ELSE

#define RETURN_NOT_OK_ELSE (   s,
  else_ 
)
Value:
do { \
Status _s = (s); \
if (!_s.ok()) { \
else_; \
return _s; \
} \
} while (false)