23 namespace foreign_storage {
30 const std::string& options_str,
31 const int64_t last_refresh,
32 const int64_t next_refresh)
130 void validateSchema(
const std::list<ColumnDescriptor>& columns)
const;
int64_t next_refresh_time
void validateDataWrapperOptions() const
static constexpr const char * BUFFER_SIZE_KEY
static const std::set< const char * > supported_options
int64_t last_refresh_time
void validateAlterOptions(const OptionsMap &options_map) const
Verifies that the given options map only contains options that can be legally altered.
void initializeOptions()
Creates an empty option map for the table. Verifies that the required option keys are present and tha...
static constexpr const char * MAX_CHUNK_SIZE_KEY
void validateOptionValues() const
Verifies the values for mapped options are valid.
void validateSupportedOptionKeys(const OptionsMap &options_map) const
Verifies that the options_map contains the keys required by a foreign table; including those specifie...
static constexpr const char * MANUAL_REFRESH_TIMING_TYPE
static constexpr const char * PARTITIONS_KEY
static OptionsMap createOptionsMap(const rapidjson::Value &json_options)
Creates an options map from given options. Converts options that must be upper case appropriately...
static constexpr const char * REFRESH_START_DATE_TIME_KEY
static constexpr const char * REFRESH_UPDATE_TYPE_KEY
static constexpr const char * REFRESH_INTERVAL_KEY
void validateRefreshOptionValues() const
ForeignTable(const int32_t id, const ForeignServer *server, const std::string &options_str, const int64_t last_refresh, const int64_t next_refresh)
bool isAppendMode() const
Checks if the table is in append mode.
void validateSchema(const std::list< ColumnDescriptor > &columns) const
Verifies the schema is supported by this foreign table.
static constexpr const char * GEO_VALIDATE_GEOMETRY_KEY
static const std::set< const char * > alterable_options
static constexpr const char * ALL_REFRESH_UPDATE_TYPE
static constexpr const char * FRAGMENT_SIZE_KEY
static constexpr const char * APPEND_REFRESH_UPDATE_TYPE
const ForeignServer * foreign_server
static constexpr const char * REFRESH_TIMING_TYPE_KEY
std::map< std::string, std::string, std::less<>> OptionsMap
static constexpr int NULL_REFRESH_TIME
static constexpr const char * SCHEDULE_REFRESH_TIMING_TYPE
static const std::set< const char * > upper_case_options