OmniSciDB
a5dc49c757
|
Classes | |
struct | DataBufferBase |
struct | DataBuffer |
struct | ArrowValueBase |
struct | ArrowValue |
struct | ArrowValue< void * > |
struct | ArrowValue< bool > |
struct | ArrowValue< float > |
struct | ArrowValue< double > |
struct | ArrowValue< int64_t > |
struct | ArrowValue< std::string > |
struct | ArrowValue< arrow::Decimal128 > |
Typedefs | |
using | VarValue = boost::variant< bool, float, double, int64_t, std::string, void *, arrow::Decimal128 > |
template<typename T > | |
using | enable_if_integral = typename std::enable_if_t< std::is_integral< T >::value, T > |
template<typename T > | |
using | enable_if_integral_not_bool = typename std::enable_if_t< std::is_integral< T >::value &&!std::is_same< T, bool >::value, T > |
template<typename T > | |
using | enable_if_floating = typename std::enable_if_t< std::is_floating_point< T >::value, T > |
Functions | |
std::string | error_context (const ColumnDescriptor *cd, import_export::BadRowsTracker *const bad_rows_tracker) |
template<typename SrcType , typename DstType > | |
VarValue | get_numeric_value (const arrow::Array &array, const int64_t idx) |
template<typename SrcType > | |
VarValue | get_string_value (const arrow::Array &array, const int64_t idx) |
auto | value_getter (const arrow::Array &array, const ColumnDescriptor *cd, import_export::BadRowsTracker *const bad_rows_tracker) |
void | type_conversion_error (const std::string pt, const ColumnDescriptor *cd, import_export::BadRowsTracker *const bad_rows_tracker) |
template<typename DATA_TYPE , typename VALUE_TYPE > | |
void | data_conversion_error (const VALUE_TYPE v, const ColumnDescriptor *cd, import_export::BadRowsTracker *const bad_rows_tracker) |
void | data_conversion_error (const std::string &v, const ColumnDescriptor *cd, import_export::BadRowsTracker *const bad_rows_tracker) |
template<typename DATA_TYPE > | |
auto & | operator<< (DataBuffer< DATA_TYPE > &data, const VarValue &var) |
Variables | |
constexpr int64_t | kMillisecondsInSecond = 1000LL |
constexpr int64_t | kMicrosecondsInSecond = 1000LL * 1000LL |
constexpr int64_t | kNanosecondsinSecond = 1000LL * 1000LL * 1000LL |
constexpr int32_t | kSecondsInDay = 86400 |
static const std::map < std::pair< int32_t, arrow::TimeUnit::type > , std::pair< SQLOps, int64_t > > | _precision_scale_lookup |
using anonymous_namespace{ArrowImporter.h}::enable_if_floating = typedef typename std::enable_if_t<std::is_floating_point<T>::value, T> |
Definition at line 73 of file ArrowImporter.h.
using anonymous_namespace{ArrowImporter.h}::enable_if_integral = typedef typename std::enable_if_t<std::is_integral<T>::value, T> |
Definition at line 67 of file ArrowImporter.h.
using anonymous_namespace{ArrowImporter.h}::enable_if_integral_not_bool = typedef typename std::enable_if_t<std::is_integral<T>::value && !std::is_same<T, bool>::value, T> |
Definition at line 71 of file ArrowImporter.h.
using anonymous_namespace{ArrowImporter.h}::VarValue = typedef boost::variant<bool, float, double, int64_t, std::string, void*, arrow::Decimal128> |
Definition at line 64 of file ArrowImporter.h.
|
inline |
Definition at line 145 of file ArrowImporter.h.
References arrow_throw_if(), error_context(), and to_string().
Referenced by anonymous_namespace{ArrowImporter.h}::ArrowValue< std::string >::operator DATA_TYPE().
|
inline |
Definition at line 154 of file ArrowImporter.h.
References arrow_throw_if(), ColumnDescriptor::columnType, error_context(), and SQLTypeInfo::get_type_name().
|
inline |
Definition at line 77 of file ArrowImporter.h.
References ColumnDescriptor::columnName, import_export::BadRowsTracker::file_name, import_export::BadRowsTracker::row_group, and to_string().
Referenced by anonymous_namespace{ArrowImporter.h}::ArrowValue< arrow::Decimal128 >::ArrowValue(), import_export::TypedImportBuffer::convert_arrow_val_to_import_buffer(), data_conversion_error(), type_conversion_error(), and value_getter().
|
inline |
Definition at line 86 of file ArrowImporter.h.
|
inline |
Definition at line 92 of file ArrowImporter.h.
|
inline |
|
inline |
Definition at line 135 of file ArrowImporter.h.
References arrow_throw_if(), ColumnDescriptor::columnType, error_context(), and SQLTypeInfo::get_type_name().
Referenced by anonymous_namespace{ArrowImporter.h}::ArrowValue< bool >::operator DATA_TYPE().
|
inline |
Definition at line 104 of file ArrowImporter.h.
References arrow_throw_if(), error_context(), NUMERIC_CASE, heavydb.dtypes::STRING, and STRING_CASE.
Referenced by import_export::TypedImportBuffer::convert_arrow_val_to_import_buffer().
|
static |
Definition at line 212 of file ArrowImporter.h.
Referenced by anonymous_namespace{ArrowImporter.h}::ArrowValue< int64_t >::operator DATA_TYPE(), and anonymous_namespace{ArrowImporter.h}::ArrowValueBase< bool >::resolve_time().
constexpr int64_t anonymous_namespace{ArrowImporter.h}::kMicrosecondsInSecond = 1000LL * 1000LL |
Definition at line 206 of file ArrowImporter.h.
constexpr int64_t anonymous_namespace{ArrowImporter.h}::kMillisecondsInSecond = 1000LL |
Definition at line 205 of file ArrowImporter.h.
Referenced by anonymous_namespace{ArrowImporter.h}::ArrowValueBase< bool >::resolve_time().
constexpr int64_t anonymous_namespace{ArrowImporter.h}::kNanosecondsinSecond = 1000LL * 1000LL * 1000LL |
Definition at line 207 of file ArrowImporter.h.
constexpr int32_t anonymous_namespace{ArrowImporter.h}::kSecondsInDay = 86400 |
Definition at line 208 of file ArrowImporter.h.
Referenced by anonymous_namespace{ArrowImporter.h}::ArrowValueBase< bool >::resolve_time().