Apache Arrow (C++)
A columnar in-memory analytics layer designed to accelerate big data.
Namespaces | Macros | Typedefs
json-internal.h File Reference
#include <memory>
#include <sstream>
#include <string>
#include "rapidjson/document.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/writer.h"
#include "arrow/type_fwd.h"
#include "arrow/util/visibility.h"

Go to the source code of this file.

Namespaces

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

Macros

#define RAPIDJSON_HAS_STDSTRING   1
 
#define RAPIDJSON_HAS_CXX11_RVALUE_REFS   1
 
#define RAPIDJSON_HAS_CXX11_RANGE_FOR   1
 
#define RETURN_NOT_FOUND(TOK, NAME, PARENT)
 
#define RETURN_NOT_STRING(TOK, NAME, PARENT)
 
#define RETURN_NOT_BOOL(TOK, NAME, PARENT)
 
#define RETURN_NOT_INT(TOK, NAME, PARENT)
 
#define RETURN_NOT_ARRAY(TOK, NAME, PARENT)
 
#define RETURN_NOT_OBJECT(TOK, NAME, PARENT)
 

Typedefs

using RjWriter = rj::Writer< rj::StringBuffer >
 
using RjArray = rj::Value::ConstArray
 
using RjObject = rj::Value::ConstObject
 

Macro Definition Documentation

◆ RAPIDJSON_HAS_CXX11_RANGE_FOR

#define RAPIDJSON_HAS_CXX11_RANGE_FOR   1

◆ RAPIDJSON_HAS_CXX11_RVALUE_REFS

#define RAPIDJSON_HAS_CXX11_RVALUE_REFS   1

◆ RAPIDJSON_HAS_STDSTRING

#define RAPIDJSON_HAS_STDSTRING   1

◆ RETURN_NOT_ARRAY

#define RETURN_NOT_ARRAY (   TOK,
  NAME,
  PARENT 
)
Value:
RETURN_NOT_FOUND(TOK, NAME, PARENT); \
if (!NAME->value.IsArray()) { \
std::stringstream ss; \
ss << "field was not an array" \
<< " line " << __LINE__; \
return Status::Invalid(ss.str()); \
}
#define RETURN_NOT_FOUND(TOK, NAME, PARENT)
Definition: json-internal.h:41

◆ RETURN_NOT_BOOL

#define RETURN_NOT_BOOL (   TOK,
  NAME,
  PARENT 
)
Value:
RETURN_NOT_FOUND(TOK, NAME, PARENT); \
if (!NAME->value.IsBool()) { \
std::stringstream ss; \
ss << "field was not a boolean" \
<< " line " << __LINE__; \
return Status::Invalid(ss.str()); \
}
#define RETURN_NOT_FOUND(TOK, NAME, PARENT)
Definition: json-internal.h:41

◆ RETURN_NOT_FOUND

#define RETURN_NOT_FOUND (   TOK,
  NAME,
  PARENT 
)
Value:
if (NAME == (PARENT).MemberEnd()) { \
std::stringstream ss; \
ss << "field " << TOK << " not found"; \
return Status::Invalid(ss.str()); \
}

◆ RETURN_NOT_INT

#define RETURN_NOT_INT (   TOK,
  NAME,
  PARENT 
)
Value:
RETURN_NOT_FOUND(TOK, NAME, PARENT); \
if (!NAME->value.IsInt()) { \
std::stringstream ss; \
ss << "field was not an int" \
<< " line " << __LINE__; \
return Status::Invalid(ss.str()); \
}
#define RETURN_NOT_FOUND(TOK, NAME, PARENT)
Definition: json-internal.h:41

◆ RETURN_NOT_OBJECT

#define RETURN_NOT_OBJECT (   TOK,
  NAME,
  PARENT 
)
Value:
RETURN_NOT_FOUND(TOK, NAME, PARENT); \
if (!NAME->value.IsObject()) { \
std::stringstream ss; \
ss << "field was not an object" \
<< " line " << __LINE__; \
return Status::Invalid(ss.str()); \
}
#define RETURN_NOT_FOUND(TOK, NAME, PARENT)
Definition: json-internal.h:41

◆ RETURN_NOT_STRING

#define RETURN_NOT_STRING (   TOK,
  NAME,
  PARENT 
)
Value:
RETURN_NOT_FOUND(TOK, NAME, PARENT); \
if (!NAME->value.IsString()) { \
std::stringstream ss; \
ss << "field was not a string" \
<< " line " << __LINE__; \
return Status::Invalid(ss.str()); \
}
#define RETURN_NOT_FOUND(TOK, NAME, PARENT)
Definition: json-internal.h:41

Typedef Documentation

◆ RjArray

using RjArray = rj::Value::ConstArray

◆ RjObject

using RjObject = rj::Value::ConstObject

◆ RjWriter

using RjWriter = rj::Writer<rj::StringBuffer>