OmniSciDB  471d68cefb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{Importer.cpp} Namespace Reference

Classes

struct  OGRDataSourceDeleter
 
struct  OGRFeatureDeleter
 
struct  OGRSpatialReferenceDeleter
 

Typedefs

using OGRDataSourceUqPtr = std::unique_ptr< OGRDataSource, OGRDataSourceDeleter >
 
using OGRFeatureUqPtr = std::unique_ptr< OGRFeature, OGRFeatureDeleter >
 
using OGRSpatialReferenceUqPtr = std::unique_ptr< OGRSpatialReference, OGRSpatialReferenceDeleter >
 

Functions

bool check_session_interrupted (const QuerySessionId &query_session, Executor *executor)
 

Typedef Documentation

using anonymous_namespace{Importer.cpp}::OGRDataSourceUqPtr = typedef std::unique_ptr<OGRDataSource, OGRDataSourceDeleter>

Definition at line 114 of file Importer.cpp.

using anonymous_namespace{Importer.cpp}::OGRFeatureUqPtr = typedef std::unique_ptr<OGRFeature, OGRFeatureDeleter>

Definition at line 123 of file Importer.cpp.

using anonymous_namespace{Importer.cpp}::OGRSpatialReferenceUqPtr = typedef std::unique_ptr<OGRSpatialReference, OGRSpatialReferenceDeleter>

Definition at line 133 of file Importer.cpp.

Function Documentation

bool anonymous_namespace{Importer.cpp}::check_session_interrupted ( const QuerySessionId query_session,
Executor executor 
)

Definition at line 99 of file Importer.cpp.

References g_enable_non_kernel_time_query_interrupt.

Referenced by import_export::import_thread_delimited(), import_export::import_thread_shapefile(), and Parser::InsertIntoTableAsSelectStmt::populateData().

99  {
100  if (g_enable_non_kernel_time_query_interrupt && !query_session.empty()) {
101  mapd_shared_lock<mapd_shared_mutex> session_read_lock(executor->getSessionLock());
102  return executor->checkIsQuerySessionInterrupted(query_session, session_read_lock);
103  }
104  return false;
105 }
bool g_enable_non_kernel_time_query_interrupt
Definition: Execute.cpp:119

+ Here is the caller graph for this function: