OmniSciDB
a5dc49c757
|
Namespaces | |
anonymous_namespace{file_path_util.cpp} | |
Classes | |
struct | StringDictKey |
struct | TableKey |
struct | ColumnKey |
class | FileNotFoundException |
class | NoRegexFilterMatchException |
struct | FilePathOptions |
class | FileOrderBase |
class | FileOrderLocal |
struct | FullyQualifiedTableName |
struct | PrintContainer |
struct | is_std_container |
struct | is_std_container< std::deque< T, A > > |
struct | is_std_container< std::list< T, A > > |
struct | is_std_container< std::set< T, A > > |
struct | is_std_container< std::unordered_set< T, A > > |
struct | is_std_container< std::vector< T, A > > |
struct | FileContentsEscaper |
struct | DivUMod |
Typedefs | |
using | LocalFileComparator = std::function< bool(const std::string &, const std::string &)> |
Functions | |
std::string | decode_base64_uri (const std::string &data, bool trim_nulls) |
std::string | decode_base64 (const std::string &val, bool trim_nulls) |
std::string | decode_base64 (const std::string &val) |
static std::string | encode_base64 (const std::string &val) |
std::ostream & | operator<< (std::ostream &os, const StringDictKey &dict_key) |
std::ostream & | operator<< (std::ostream &os, const TableKey &table_key) |
size_t | hash_value (const TableKey &table_key) |
std::ostream & | operator<< (std::ostream &os, const ColumnKey &column_key) |
void | validate_sort_options (const FilePathOptions &options) |
std::vector< std::string > | local_glob_filter_sort_files (const std::string &file_path, const FilePathOptions &options, const bool recurse) |
bool | file_or_glob_path_exists (const std::string &path) |
std::set< std::string > | check_for_rolled_off_file_paths (const std::vector< std::string > &all_file_paths, std::vector< std::string > &processed_file_paths) |
bool | is_s3_uri (const std::string &file_path) |
void | throw_file_not_found (const std::string &file_path) |
void | throw_no_filter_match (const std::string &pattern) |
bool | is_compressed_mime_type (const std::string &mime_type) |
bool | is_compressed_file_extension (const std::string &location) |
std::ostream & | operator<< (std::ostream &os, const FullyQualifiedTableName &table_name) |
size_t | hash_value (const FullyQualifiedTableName &table_name) |
void | execute_over_contiguous_indices (const std::vector< size_t > &indices, std::function< void(const size_t, const size_t)> to_execute) |
bool | isPowOfTwo (unsigned n) |
unsigned | getExpOfTwo (unsigned n) |
size_t | formatDate (char *buf, size_t const max, int64_t const unixtime) |
size_t | formatDateTime (char *buf, size_t const max, int64_t const timestamp, int const dimension, bool use_iso_format) |
size_t | formatHMS (char *buf, size_t const max, int64_t const unixtime) |
std::string | convert_temporal_to_iso_format (const SQLTypeInfo &type_info, int64_t unix_time) |
size_t | compute_hash (int32_t item_1, int32_t item_2) |
std::ostream & | operator<< (std::ostream &os, FileContentsEscaper const &fce) |
template<typename K , typename V , typename comp > | |
V & | get_from_map (std::map< K, V, comp > &map, const K &key) |
template<typename K , typename V , typename comp > | |
const V & | get_from_map (const std::map< K, V, comp > &map, const K &key) |
template<typename T > | |
size_t | append_move (std::vector< T > &destination, std::vector< T > &&source) |
template<typename... Ts, typename T > | |
bool | dynamic_castable_to_any (T const *ptr) |
template<typename CONTAINER > | |
PrintContainer< CONTAINER > | printContainer (CONTAINER &container) |
template<typename OSTREAM , typename CONTAINER > | |
OSTREAM & | operator<< (OSTREAM &os, PrintContainer< CONTAINER > pc) |
DivUMod | divUMod (int64_t num, int64_t den) |
uint64_t | unsignedMod (int64_t num, int64_t den) |
template<typename T , typename U > | |
bool | contains (const T &container, const U &element) |
template<typename... COEFFICIENTS> | |
DEVICE constexpr double | horner (double const x, double const c0, COEFFICIENTS...c) |
DEVICE double | fastAtanh (double const x) |
DEVICE double | fastCos (double const x) |
DEVICE double | fastCosh (double const x) |
DEVICE double | fastSin (double const x) |
DEVICE double | fastSinh (double const x) |
template<int... values, typename T > | |
bool | is_any (T &&value) |
template<typename T , size_t N> | |
constexpr std::array< T, N > | powersOf (T const a) |
template<size_t N> | |
constexpr std::array< double, N > | inversePowersOf (double const a) |
double | power10 (unsigned const x) |
double | power10inv (unsigned const x) |
template<typename TO , typename FROM > | |
TO | reinterpret_bits (FROM const from) |
template<typename TO , typename FROM > | |
TO | bit_cast (FROM &&from) |
template<typename... STR> | |
constexpr std::array < std::string_view, sizeof...(STR)> | string_view_array (STR &&...str) |
template<typename OUTPUT , typename INPUT , typename FUNC > | |
OUTPUT | transform (INPUT const &input, FUNC const &func) |
unsigned | ceil_div (unsigned const dividend, unsigned const divisor) |
template<typename T > | |
bool | is_unordered_set_intersection_empty (std::unordered_set< T > const &r, std::unordered_set< T > const &s) |
template<typename T > | |
void | compute_unordered_set_intersection (std::unordered_set< T > *const dest, std::unordered_set< T > const &r, std::unordered_set< T > const &s) |
template<class T , std::size_t... N> | |
constexpr T | bswap_impl (T i, std::index_sequence< N...>) |
template<class T , class U = typename std::make_unsigned<T>::type> | |
constexpr U | bswap (T i) |
template<class T > | |
constexpr T | byteswap (T n) noexcept |
constexpr auto | heavyai_htons (std::uint16_t h) |
constexpr auto | heavyai_htonl (std::uint32_t h) |
constexpr auto | heavyai_htonll (std::uint64_t h) |
constexpr auto | heavyai_ntohs (std::uint16_t n) |
constexpr auto | heavyai_ntohl (std::uint32_t n) |
constexpr auto | heavyai_ntohll (std::uint64_t n) |
std::shared_ptr < apache::thrift::TConfiguration > | default_tconfig () |
Variables | |
const std::string | FILE_SORT_ORDER_BY_KEY = "FILE_SORT_ORDER_BY" |
const std::string | FILE_SORT_REGEX_KEY = "FILE_SORT_REGEX" |
const std::string | PATHNAME_ORDER_TYPE = "PATHNAME" |
const std::string | DATE_MODIFIED_ORDER_TYPE = "DATE_MODIFIED" |
const std::string | REGEX_ORDER_TYPE = "REGEX" |
const std::string | REGEX_DATE_ORDER_TYPE = "REGEX_DATE" |
const std::string | REGEX_NUMBER_ORDER_TYPE = "REGEX_NUMBER" |
const std::array< std::string, 5 > | supported_file_sort_order_types |
const std::array< std::string, 2 > | non_regex_sort_order_types |
const std::array< std::string, 3 > | regex_sort_order_types |
const std::function< bool(const std::string &, const std::string &)> | common_regex_date_comp_ |
const std::function< bool(const std::string &, const std::string &)> | common_regex_number_comp_ |
const std::string | kSystemCatalogName = "system_catalog" |
const std::string | kDefaultDbName = "heavyai" |
const std::string | kRootUsername = "admin" |
const int | kRootUserId = 0 |
const std::string | kRootUserIdStr = "0" |
const std::string | kDefaultRootPasswd = "HyperInteractive" |
const int32_t | kTempUserIdRange = 1000000000 |
const std::string | kInfoSchemaDbName = "information_schema" |
const std::string | kInfoSchemaMigrationName = "information_schema_db_created" |
const std::string | kDefaultExportDirName = "export" |
const std::string | kDefaultImportDirName = "import" |
const std::string | kDefaultDiskCacheDirName = "disk_cache" |
const std::string | kDefaultKeyFileName = "heavyai.pem" |
const std::string | kDefaultKeyStoreDirName = "key_store" |
const std::string | kDefaultLogDirName = "log" |
const std::string | kCatalogDirectoryName = "catalogs" |
const std::string | kDataDirectoryName = "data" |
const std::string | kLockfilesDirectoryName = "lockfiles" |
const std::string | kDefaultLicenseFileName = "heavyai.license" |
static constexpr size_t | kDefaultSampleRowsCount {100} |
using shared::LocalFileComparator = typedef std::function<bool(const std::string&, const std::string&)> |
Definition at line 42 of file file_path_util.h.
size_t shared::append_move | ( | std::vector< T > & | destination, |
std::vector< T > && | source | ||
) |
Definition at line 78 of file misc.h.
Referenced by RelAlgExecutor::createUnionWorkUnit().
|
inline |
Definition at line 307 of file misc.h.
Referenced by TargetExprCodegen::codegen(), GroupByAndAggregate::codegenAggColumnPtr(), CodeGenerator::codegenHoistedConstantsLoads(), GroupByAndAggregate::getAdditionalLiteral(), and ResultSet::isLessThan().
constexpr U shared::bswap | ( | T | i | ) |
Definition at line 435 of file misc.h.
Referenced by byteswap().
constexpr T shared::bswap_impl | ( | T | i, |
std::index_sequence< N...> | |||
) |
Definition at line 429 of file misc.h.
References anonymous_namespace{Utm.h}::N, and heavydb.dtypes::T.
|
noexcept |
Definition at line 439 of file misc.h.
References bswap(), and anonymous_namespace{Utm.h}::n.
Referenced by heavyai_htonl(), heavyai_htonll(), heavyai_htons(), heavyai_ntohl(), heavyai_ntohll(), and heavyai_ntohs().
|
inline |
Definition at line 338 of file misc.h.
Referenced by Executor::numBlocksPerMP().
std::set< std::string > shared::check_for_rolled_off_file_paths | ( | const std::vector< std::string > & | all_file_paths, |
std::vector< std::string > & | processed_file_paths | ||
) |
Definition at line 181 of file file_path_util.cpp.
Referenced by foreign_storage::MultiFileReader::checkForRolledOffFiles(), and foreign_storage::ParquetDataWrapper::fetchChunkMetadata().
size_t shared::compute_hash | ( | int32_t | item_1, |
int32_t | item_2 | ||
) |
Definition at line 143 of file misc.cpp.
Referenced by PhysicalInput::hash(), shared::StringDictKey::hash(), shared::TableKey::hash(), and shared::ColumnKey::hash().
void shared::compute_unordered_set_intersection | ( | std::unordered_set< T > *const | dest, |
std::unordered_set< T > const & | r, | ||
std::unordered_set< T > const & | s | ||
) |
|
inline |
Definition at line 204 of file misc.h.
Referenced by foreign_storage::LocalMultiFileReader::checkForMoreRows(), com.mapd.calcite.parser.ExtTableFunctionTypeChecker::checkOperandTypes(), RefreshForeignTablesCommand::execute(), foreign_storage::ParquetDataWrapper::fetchChunkMetadata(), Catalog_Namespace::Catalog::getForeignServersForUser(), TableOptimizer::getFragmentIndexes(), is_compressed_file_extension(), is_compressed_mime_type(), PlanState::isColumnToFetch(), PlanState::isColumnToNotFetch(), Grantee::reassignObjectOwners(), Catalog_Namespace::SysCatalog::reassignObjectOwners(), Catalog_Namespace::Catalog::reassignOwners(), foreign_storage::refresh_foreign_table(), Catalog_Namespace::Catalog::reloadForeignTableUnlocked(), Catalog_Namespace::Catalog::updateForeignTablesInMapUnlocked(), foreign_storage::ParquetDataWrapper::updateMetadataForRolledOffFiles(), foreign_storage::AbstractTextFileDataWrapper::updateRolledOffChunks(), TableOptimizer::vacuumFragments(), validate_sort_options(), foreign_storage::ForeignDataWrapperFactory::validateDataWrapperType(), and foreign_storage::AbstractFileStorageDataWrapper::validateServerOptions().
std::string shared::convert_temporal_to_iso_format | ( | const SQLTypeInfo & | type_info, |
int64_t | unix_time | ||
) |
Definition at line 111 of file misc.cpp.
References CHECK_EQ, CHECK_GT, formatDate(), formatDateTime(), formatHMS(), SQLTypeInfo::get_precision(), SQLTypeInfo::get_type(), kDATE, kTIME, kTIMESTAMP, SQLTypeInfo::toString(), and UNREACHABLE.
Referenced by import_export::QueryExporterCSV::exportResults(), anonymous_namespace{DBHandler.cpp}::get_refresh_info(), import_export::anonymous_namespace{QueryExporterGDAL.cpp}::insert_array_column(), import_export::anonymous_namespace{QueryExporterGDAL.cpp}::insert_scalar_column(), Catalog_Namespace::anonymous_namespace{Catalog.cpp}::set_common_log_system_table_options(), and import_export::anonymous_namespace{QueryExporterCSV.cpp}::target_value_to_string().
|
inline |
Definition at line 27 of file base64.h.
Referenced by decode_base64(), decode_base64_uri(), and anonymous_namespace{AbstractMLModel.h}::default_metadata().
|
inline |
Definition at line 41 of file base64.h.
References decode_base64().
std::string shared::decode_base64_uri | ( | const std::string & | data, |
bool | trim_nulls | ||
) |
Definition at line 21 of file base64.cpp.
References decode_base64(), and transform().
|
inline |
Definition at line 26 of file ThriftConfig.h.
Referenced by ThriftClientConnection::open_buffered_client_transport().
|
inline |
Definition at line 185 of file misc.h.
References shared::DivUMod::quot.
Referenced by formatDate(), and formatDateTime().
bool shared::dynamic_castable_to_any | ( | T const * | ptr | ) |
|
inlinestatic |
Definition at line 45 of file base64.h.
Referenced by Parser::CreateModelStmt::train_model().
void shared::execute_over_contiguous_indices | ( | const std::vector< size_t > & | indices, |
std::function< void(const size_t, const size_t)> | to_execute | ||
) |
Definition at line 22 of file Iteration.h.
Referenced by DateDaysEncoder< T, V >::appendEncodedDataAtIndices(), FixedLengthEncoder< T, V >::appendEncodedDataAtIndices(), and NoneEncoder< T >::appendEncodedDataAtIndices().
|
inline |
Definition at line 224 of file misc.h.
References horner().
Referenced by Transform4326ToUTM::Transform4326ToUTM().
|
inline |
Definition at line 230 of file misc.h.
References horner().
Referenced by Transform4326ToUTM::Transform4326ToUTM().
|
inline |
Definition at line 239 of file misc.h.
References horner().
Referenced by Transform4326ToUTM::calculateY(), TransformUTMTo4326::calculateY(), and TransformUTMTo4326::TransformUTMTo4326().
|
inline |
Definition at line 248 of file misc.h.
References horner().
Referenced by Transform4326ToUTM::Transform4326ToUTM().
|
inline |
Definition at line 257 of file misc.h.
References horner().
Referenced by Transform4326ToUTM::calculateX(), TransformUTMTo4326::calculateX(), and TransformUTMTo4326::TransformUTMTo4326().
bool shared::file_or_glob_path_exists | ( | const std::string & | path | ) |
Definition at line 177 of file file_path_util.cpp.
References heavyai::glob().
Referenced by DBHandler::detect_column_types(), and DBHandler::import_table().
size_t shared::formatDate | ( | char * | buf, |
size_t const | max, | ||
int64_t const | unixtime | ||
) |
Definition at line 29 of file misc.cpp.
References divUMod(), shared::DivUMod::quot, and shared::DivUMod::rem.
Referenced by convert_temporal_to_iso_format(), convert_to_string_and_encode_date(), and DatumToString().
size_t shared::formatDateTime | ( | char * | buf, |
size_t const | max, | ||
int64_t const | timestamp, | ||
int const | dimension, | ||
bool | use_iso_format | ||
) |
Definition at line 47 of file misc.cpp.
References divUMod(), shared::DivUMod::quot, and shared::DivUMod::rem.
Referenced by convert_temporal_to_iso_format(), convert_to_string_and_encode_timestamp(), and DatumToString().
size_t shared::formatHMS | ( | char * | buf, |
size_t const | max, | ||
int64_t const | unixtime | ||
) |
Definition at line 98 of file misc.cpp.
References unsignedMod().
Referenced by convert_temporal_to_iso_format(), convert_to_string_and_encode_time(), and DatumToString().
V& shared::get_from_map | ( | std::map< K, V, comp > & | map, |
const K & | key | ||
) |
Definition at line 62 of file misc.h.
References CHECK.
Referenced by foreign_storage::append_data_block_to_chunk(), anonymous_namespace{ForeignDataImporter.cpp}::create_fragment_buffers(), foreign_storage::CachingForeignStorageMgr::createDataWrapperIfNotExists(), Buffer_Namespace::TieredCpuBufferMgr::getAllocatorForSlab(), import_export::RasterImporter::import(), foreign_storage::ParquetDataWrapper::initializeChunkBuffers(), anonymous_namespace{ForeignDataImporter.cpp}::load_foreign_data_buffers(), foreign_storage::ParquetDataWrapper::loadBuffersUsingLazyParquetChunkLoader(), foreign_storage::LazyParquetChunkLoader::loadRowGroups(), foreign_storage::ParquetDataWrapper::metadataScanRowGroupIntervals(), foreign_storage::partition_data_blocks(), foreign_storage::anonymous_namespace{LazyParquetChunkLoader.cpp}::populate_encoder_map_for_import(), foreign_storage::anonymous_namespace{LazyParquetChunkLoader.cpp}::populate_encoder_map_for_metadata_scan(), foreign_storage::ParquetDataWrapper::removeMetadataForLastFile(), Catalog_Namespace::Catalog::updateInColumnMap(), foreign_storage::AbstractTextFileDataWrapper::updateMetadata(), foreign_storage::ParquetDataWrapper::updateMetadataForRolledOffFiles(), and foreign_storage::AbstractTextFileDataWrapper::updateRolledOffChunks().
const V& shared::get_from_map | ( | const std::map< K, V, comp > & | map, |
const K & | key | ||
) |
unsigned shared::getExpOfTwo | ( | unsigned | n | ) |
Definition at line 23 of file MathUtils.cpp.
size_t shared::hash_value | ( | const FullyQualifiedTableName & | table_name | ) |
Definition at line 50 of file FullyQualifiedTableName.cpp.
References shared::FullyQualifiedTableName::hash().
size_t shared::hash_value | ( | const TableKey & | table_key | ) |
Definition at line 79 of file DbObjectKeys.cpp.
References shared::TableKey::hash().
|
inline |
Definition at line 465 of file misc.h.
References byteswap().
|
inline |
Definition at line 469 of file misc.h.
References byteswap().
|
inline |
Definition at line 461 of file misc.h.
References byteswap().
|
inline |
Definition at line 477 of file misc.h.
References byteswap().
|
inline |
Definition at line 481 of file misc.h.
References byteswap().
|
inline |
Definition at line 473 of file misc.h.
References byteswap().
DEVICE constexpr double shared::horner | ( | double const | x, |
double const | c0, | ||
COEFFICIENTS... | c | ||
) |
Definition at line 214 of file misc.h.
Referenced by fastAtanh(), fastCos(), fastCosh(), fastSin(), and fastSinh().
constexpr std::array<double, N> shared::inversePowersOf | ( | double const | a | ) |
Definition at line 279 of file misc.h.
References anonymous_namespace{misc.h}::inversePowersOfImpl().
|
inline |
Definition at line 267 of file misc.h.
Referenced by anonymous_namespace{RelAlgExecutor.cpp}::is_agg(), and is_regression_model().
bool shared::is_compressed_file_extension | ( | const std::string & | location | ) |
Definition at line 49 of file file_type.cpp.
References contains().
Referenced by foreign_storage::LocalMultiFileReader::insertFile(), and foreign_storage::LocalMultiFileReader::LocalMultiFileReader().
bool shared::is_compressed_mime_type | ( | const std::string & | mime_type | ) |
Definition at line 34 of file file_type.cpp.
References contains().
bool shared::is_s3_uri | ( | const std::string & | file_path | ) |
Definition at line 204 of file file_path_util.cpp.
Referenced by foreign_storage::ForeignDataWrapperFactory::createForeignServerProxy(), foreign_storage::ForeignDataWrapperFactory::createForeignTableProxy(), import_export::ForeignDataImporter::import(), import_export::ForeignDataImporter::importGeneralS3(), and TableArchiver::restoreTable().
bool shared::is_unordered_set_intersection_empty | ( | std::unordered_set< T > const & | r, |
std::unordered_set< T > const & | s | ||
) |
bool shared::isPowOfTwo | ( | unsigned | n | ) |
Definition at line 19 of file MathUtils.cpp.
std::vector< std::string > shared::local_glob_filter_sort_files | ( | const std::string & | file_path, |
const FilePathOptions & | options, | ||
const bool | recurse | ||
) |
Definition at line 112 of file file_path_util.cpp.
References shared::FilePathOptions::filter_regex, shared::anonymous_namespace{file_path_util.cpp}::glob_local_recursive_files(), PATHNAME_ORDER_TYPE, shared::anonymous_namespace{file_path_util.cpp}::regex_file_filter(), and shared::FilePathOptions::sort_by.
Referenced by import_export::DataStreamSink::archivePlumber(), DBHandler::detect_column_types(), ddl_utils::get_expanded_file_paths(), foreign_storage::ParquetDataWrapper::getAllFilePaths(), foreign_storage::LocalMultiFileReader::getAllFilePaths(), DBHandler::importGeoTableGlobFilterSort(), and foreign_storage::LocalMultiFileReader::LocalMultiFileReader().
std::ostream& shared::operator<< | ( | std::ostream & | os, |
const FullyQualifiedTableName & | table_name | ||
) |
Definition at line 37 of file FullyQualifiedTableName.cpp.
References shared::FullyQualifiedTableName::db_name, and shared::FullyQualifiedTableName::table_name.
std::ostream& shared::operator<< | ( | std::ostream & | os, |
const StringDictKey & | dict_key | ||
) |
Definition at line 39 of file DbObjectKeys.cpp.
References shared::StringDictKey::db_id, and shared::StringDictKey::dict_id.
std::ostream& shared::operator<< | ( | std::ostream & | os, |
const TableKey & | table_key | ||
) |
Definition at line 70 of file DbObjectKeys.cpp.
References shared::TableKey::db_id, and shared::TableKey::table_id.
std::ostream& shared::operator<< | ( | std::ostream & | os, |
const ColumnKey & | column_key | ||
) |
Definition at line 102 of file DbObjectKeys.cpp.
References shared::ColumnKey::column_id, shared::ColumnKey::db_id, and shared::ColumnKey::table_id.
OSTREAM& shared::operator<< | ( | OSTREAM & | os, |
PrintContainer< CONTAINER > | pc | ||
) |
Definition at line 126 of file misc.h.
References printContainer().
std::ostream & shared::operator<< | ( | std::ostream & | os, |
FileContentsEscaper const & | fce | ||
) |
Definition at line 190 of file misc.cpp.
References shared::FileContentsEscaper::quoteAndPrint().
|
inline |
Definition at line 284 of file misc.h.
References anonymous_namespace{Utm.h}::N.
Referenced by CodeGenerator::codegenCastToFp(), Analyzer::anonymous_namespace{Analyzer.cpp}::floatFromDecimal(), and pg_shim().
|
inline |
Definition at line 291 of file misc.h.
References anonymous_namespace{Utm.h}::N.
Referenced by convert_to_string_and_encode_decimal().
constexpr std::array<T, N> shared::powersOf | ( | T const | a | ) |
PrintContainer<CONTAINER> shared::printContainer | ( | CONTAINER & | container | ) |
Definition at line 108 of file misc.h.
Referenced by QueryFragmentDescriptor::buildFragmentPerKernelMapForUnion(), RelAlgExecutor::createCompoundWorkUnit(), RelAlgExecutor::createProjectWorkUnit(), RelAlgExecutor::createUnionWorkUnit(), Executor::executePlanWithGroupBy(), Executor::fetchUnionChunks(), import_export::import_thread_delimited(), operator<<(), operator<<(), ddl_utils::set_whitelisted_paths(), anonymous_namespace{RelAlgExecutor.cpp}::target_exprs_for_union(), and TableOptimizer::vacuumFragmentsAboveMinSelectivity().
|
inline |
constexpr std::array<std::string_view, sizeof...(STR)> shared::string_view_array | ( | STR &&... | str | ) |
|
inline |
Definition at line 78 of file file_path_util.h.
Referenced by shared::anonymous_namespace{file_path_util.cpp}::glob_local_recursive_files().
|
inline |
Definition at line 88 of file file_path_util.h.
Referenced by shared::anonymous_namespace{file_path_util.cpp}::regex_file_filter(), and foreign_storage::anonymous_namespace{S3FilePathUtil.cpp}::s3_objects_regex_file_filter().
OUTPUT shared::transform | ( | INPUT const & | input, |
FUNC const & | func | ||
) |
Definition at line 329 of file misc.h.
Referenced by anonymous_namespace{ArrowResultSetConverter.cpp}::appendToColumnBuilder(), anonymous_namespace{ArrowResultSetConverter.cpp}::appendToListColumnBuilder(), anonymous_namespace{ArrowResultSetConverter.cpp}::appendToListColumnBuilder< arrow::StringDictionaryBuilder, int64_t >(), StringDictionaryProxy::buildIntersectionTranslationMapToOtherProxyUnlocked(), ResultSetReductionJIT::cacheKey(), HashJoin::collectFragmentIds(), UdfCompiler::compileFromCommandLine(), decode_base64_uri(), import_export::Detector::detect_sqltype(), TableArchiver::dumpTable(), ThriftSerializers::from_thrift(), UdfCompiler::generateAST(), Parser::LikeExpr::get(), data_conversion::anonymous_namespace{StringViewSource.h}::get_materialized_string_views(), anonymous_namespace{RelAlgExecutor.cpp}::get_raw_pointers(), anonymous_namespace{ResultSetReductionInterpreter.cpp}::get_value_types(), ShowTableDetailsCommand::getFilteredTableNames(), anonymous_namespace{ResultSetReductionCodegen.cpp}::llvm_args(), parse_stats_requests_json(), ArrowForeignStorageBase::read(), TableArchiver::restoreTable(), Catalog_Namespace::SysCatalog::syncUserWithRemoteProvider(), to_lower(), ThriftSerializers::to_thrift(), to_upper(), com.mapd.parser.extension.ddl.SqlLeadLag::transformType(), anonymous_namespace{ResultSetReductionCodegen.cpp}::translate_body(), and anonymous_namespace{ExternalExecutor.cpp}::vt_create().
|
inline |
Definition at line 195 of file misc.h.
Referenced by formatHMS().
void shared::validate_sort_options | ( | const FilePathOptions & | options | ) |
Definition at line 32 of file file_path_util.cpp.
References contains(), FILE_SORT_ORDER_BY_KEY, FILE_SORT_REGEX_KEY, join(), non_regex_sort_order_types, PATHNAME_ORDER_TYPE, regex_sort_order_types, shared::FilePathOptions::sort_by, shared::FilePathOptions::sort_regex, supported_file_sort_order_types, and to_upper().
Referenced by import_export::DataStreamSink::archivePlumber(), import_export::ForeignDataImporter::importGeneralS3(), DBHandler::importGeoTableGlobFilterSort(), and foreign_storage::AbstractFileStorageDataWrapper::validateTableOptions().
const std::function<bool(const std::string&, const std::string&)> shared::common_regex_date_comp_ |
Definition at line 112 of file file_path_util.h.
const std::function<bool(const std::string&, const std::string&)> shared::common_regex_number_comp_ |
Definition at line 128 of file file_path_util.h.
|
inline |
Definition at line 52 of file file_path_util.h.
|
inline |
Definition at line 48 of file file_path_util.h.
Referenced by validate_sort_options().
|
inline |
Definition at line 49 of file file_path_util.h.
Referenced by validate_sort_options().
|
inline |
Definition at line 41 of file SysDefinitions.h.
Referenced by Catalog_Namespace::CommonFileOperations::assembleCatalogName(), anonymous_namespace{SysCatalog.cpp}::copy_catalog_if_read_only(), Catalog_Namespace::SysCatalog::createDatabase(), Catalog_Namespace::Catalog::eraseDbMetadata(), migrations::MigrationMgr::executeRebrandMigration(), lockmgr::TableLockMgrImpl< T >::getClusterTableMutex(), Catalog_Namespace::SysCatalog::importDataFromOldMapdDB(), Catalog_Namespace::SysCatalog::init(), main(), CommandLineOptions::parse_command_line(), QueryRunner::QueryRunner::QueryRunner(), Catalog_Namespace::Catalog::reloadCatalogMetadataUnlocked(), Catalog_Namespace::anonymous_namespace{Catalog.cpp}::table_json_filepath(), and CommandLineOptions::validate().
|
inline |
Definition at line 42 of file SysDefinitions.h.
Referenced by Catalog_Namespace::Catalog::buildDictionaryMapUnlocked(), Data_Namespace::DataMgr::convertDB(), anonymous_namespace{SysCatalog.cpp}::copy_catalog_if_read_only(), Catalog_Namespace::Catalog::delDictionaryNontransactional(), migrations::MigrationMgr::executeRebrandMigration(), lockmgr::TableLockMgrImpl< T >::getClusterTableMutex(), QueryRunner::ImportDriver::importGeoTable(), DBHandler::initialize(), main(), CommandLineOptions::parse_command_line(), QueryRunner::QueryRunner::QueryRunner(), Catalog_Namespace::Catalog::reloadDictionariesFromDiskUnlocked(), Catalog_Namespace::Catalog::setColumnDictionary(), startHeavyDBServer(), Catalog_Namespace::Catalog::updateDictionaryNames(), and CommandLineOptions::validate().
|
inline |
Definition at line 27 of file SysDefinitions.h.
Referenced by Catalog_Namespace::SysCatalog::createRole_unsafe(), Catalog_Namespace::SysCatalog::getMetadataWithDefaultDB(), EmbeddedDatabase::DBEngineImpl::init(), QueryRunner::QueryRunner::init(), Catalog_Namespace::SysCatalog::initDB(), loadGeo(), and QueryRunner::QueryRunner::QueryRunner().
|
inline |
Definition at line 37 of file SysDefinitions.h.
Referenced by File_Namespace::DiskCacheConfig::getDefaultPath(), main(), QueryRunner::QueryRunner::QueryRunner(), and CommandLineOptions::validate().
|
inline |
Definition at line 35 of file SysDefinitions.h.
Referenced by anonymous_namespace{SysCatalog.cpp}::copy_catalog_if_read_only(), Parser::ExportQueryStmt::execute(), migrations::MigrationMgr::executeRebrandMigration(), ddl_utils::FilePathWhitelist::initialize(), and main().
|
inline |
Definition at line 36 of file SysDefinitions.h.
Referenced by migrations::MigrationMgr::executeRebrandMigration(), ddl_utils::FilePathWhitelist::initialize(), DBHandler::initialize(), and import_export::ForeignDataImporter::setDefaultImportPath().
|
inline |
Definition at line 38 of file SysDefinitions.h.
Referenced by migrations::MigrationMgr::executeRebrandMigration().
|
inline |
Definition at line 39 of file SysDefinitions.h.
Referenced by migrations::MigrationMgr::executeRebrandMigration().
|
inline |
Definition at line 44 of file SysDefinitions.h.
Referenced by migrations::MigrationMgr::executeRebrandMigration(), and CommandLineOptions::validate().
|
inline |
Definition at line 40 of file SysDefinitions.h.
Referenced by migrations::MigrationMgr::executeRebrandMigration(), start_calcite_server_as_daemon(), and CommandLineOptions::validate().
|
inline |
Definition at line 31 of file SysDefinitions.h.
Referenced by EmbeddedDatabase::DBEngineImpl::init(), and Catalog_Namespace::SysCatalog::initDB().
|
static |
Definition at line 45 of file SysDefinitions.h.
Referenced by DBHandler::detect_column_types().
|
inline |
Definition at line 33 of file SysDefinitions.h.
Referenced by anonymous_namespace{DBHandler.cpp}::check_in_memory_system_table_query(), dbhandler::check_not_info_schema_db(), DBHandler::checkInMemorySystemTableQuery(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_all_dashboards(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_all_tables(), Catalog_Namespace::SysCatalog::initializeInformationSchemaDb(), foreign_storage::InternalStorageStatsDataWrapper::initializeObjectsForTable(), dbhandler::is_info_schema_db(), Catalog_Namespace::Catalog::isInfoSchemaDb(), foreign_storage::InternalSystemDataWrapper::populateChunkBuffers(), foreign_storage::InternalSystemDataWrapper::populateChunkMetadata(), and anonymous_namespace{RelAlgExecutor.cpp}::prepare_for_system_table_execution().
|
inline |
Definition at line 34 of file SysDefinitions.h.
Referenced by Catalog_Namespace::SysCatalog::initializeInformationSchemaDb(), and dbhandler::is_info_schema_db().
|
inline |
Definition at line 43 of file SysDefinitions.h.
Referenced by anonymous_namespace{SysCatalog.cpp}::copy_catalog_if_read_only(), lockmgr::TableLockMgrImpl< T >::getClusterTableMutex(), Catalog_Namespace::SysCatalog::init(), main(), CommandLineOptions::parse_command_line(), and migrations::MigrationMgr::takeMigrationLock().
|
inline |
Definition at line 29 of file SysDefinitions.h.
Referenced by Catalog_Namespace::SysCatalog::createDatabase(), Catalog_Namespace::Catalog::createDefaultServersIfNotExists(), Catalog_Namespace::Catalog::createSystemTableServer(), Catalog_Namespace::SysCatalog::dropUser(), Catalog_Namespace::Catalog::getSystemTableSchema(), Catalog_Namespace::SysCatalog::initDB(), Catalog_Namespace::SysCatalog::initializeInformationSchemaDb(), Catalog_Namespace::SysCatalog::migrateDBAccessPrivileges(), Catalog_Namespace::SysCatalog::migratePrivileges(), and Catalog_Namespace::Catalog::updateTableDescriptorSchema().
|
inline |
Definition at line 30 of file SysDefinitions.h.
Referenced by Catalog_Namespace::SysCatalog::initDB().
|
inline |
Definition at line 28 of file SysDefinitions.h.
Referenced by Catalog_Namespace::SysCatalog::addAdminUserRole(), Catalog_Namespace::SysCatalog::buildUserRoleMapUnlocked(), Parser::GrantRoleStmt::execute(), Parser::RevokeRoleStmt::execute(), EmbeddedDatabase::DBEngineImpl::init(), QueryRunner::QueryRunner::init(), Catalog_Namespace::SysCatalog::initDB(), and loadGeo().
|
inline |
Definition at line 26 of file SysDefinitions.h.
Referenced by Catalog_Namespace::SysCatalog::buildMapsUnlocked(), Catalog_Namespace::SysCatalog::createDatabase(), migrations::MigrationMgr::executeRebrandMigration(), Catalog_Namespace::SysCatalog::importDataFromOldMapdDB(), Catalog_Namespace::SysCatalog::init(), Catalog_Namespace::SysCatalog::name(), Catalog_Namespace::SysCatalog::renameDatabase(), and CommandLineOptions::validate().
|
inline |
Definition at line 32 of file SysDefinitions.h.
|
inline |
Definition at line 64 of file file_path_util.h.
Referenced by validate_sort_options().
|
inline |
Definition at line 51 of file file_path_util.h.
Referenced by shared::FileOrderBase< LocalFileComparator >::getSortBy(), local_glob_filter_sort_files(), foreign_storage::s3_objects_filter_sort_files(), and validate_sort_options().
|
inline |
Definition at line 54 of file file_path_util.h.
|
inline |
Definition at line 55 of file file_path_util.h.
|
inline |
Definition at line 53 of file file_path_util.h.
|
inline |
Definition at line 68 of file file_path_util.h.
Referenced by validate_sort_options().
|
inline |
Definition at line 57 of file file_path_util.h.
Referenced by validate_sort_options().