OmniSciDB
a5dc49c757
|
#include <ParquetMetadataValidator.h>
Static Public Member Functions | |
template<typename D > | |
static void | validateValue (const D &data_value, const SQLTypeInfo &column_type) |
Static Private Member Functions | |
static bool | valueWithinBounds (const T &value, const SQLTypeInfo &column_type) |
static std::pair< std::string, std::string > | getMinMaxBoundsAsStrings (const SQLTypeInfo &column_type) |
template<typename D , typename TT = T, std::enable_if_t< std::is_signed< TT >::value, int > = 0> | |
static bool | checkBounds (const T &value) |
Check bounds for value in signed case. More... | |
template<typename D , typename TT = T, std::enable_if_t<!std::is_signed< TT >::value, int > = 0> | |
static bool | checkBounds (const T &value) |
Check bounds for value in unsigned case. More... | |
template<typename D > | |
static std::pair< std::string, std::string > | getMinMaxBoundsAsStrings () |
Definition at line 114 of file ParquetMetadataValidator.h.
|
inlinestaticprivate |
Check bounds for value in signed case.
value | - value to check |
Definition at line 181 of file ParquetMetadataValidator.h.
|
inlinestaticprivate |
Check bounds for value in unsigned case.
value | - value to check |
Definition at line 195 of file ParquetMetadataValidator.h.
|
inlinestaticprivate |
Definition at line 153 of file ParquetMetadataValidator.h.
References CHECK, SQLTypeInfo::get_size(), SQLTypeInfo::is_integer(), and UNREACHABLE.
|
inlinestaticprivate |
Definition at line 202 of file ParquetMetadataValidator.h.
References to_string().
Referenced by foreign_storage::IntegralFixedLengthBoundsValidator< T >::validateValue().
|
inlinestatic |
Definition at line 120 of file ParquetMetadataValidator.h.
References foreign_storage::IntegralFixedLengthBoundsValidator< T >::getMinMaxBoundsAsStrings(), foreign_storage::throw_parquet_metadata_out_of_bounds_error(), to_string(), and foreign_storage::IntegralFixedLengthBoundsValidator< T >::valueWithinBounds().
Referenced by foreign_storage::ParquetUnsignedFixedLengthEncoder< V, T, U, NullType >::validate(), and foreign_storage::ParquetFixedLengthEncoder< V, T, NullType >::validateIntegralOrFloatingPointValue().
|
inlinestaticprivate |
Definition at line 136 of file ParquetMetadataValidator.h.
References CHECK, SQLTypeInfo::get_size(), SQLTypeInfo::is_integer(), and UNREACHABLE.
Referenced by foreign_storage::IntegralFixedLengthBoundsValidator< T >::validateValue().