Skip to content

Commit

Permalink
change defaultFetchSize to fetchSize in configuration.h
Browse files Browse the repository at this point in the history
  • Loading branch information
alinaliBQ committed Jan 19, 2022
1 parent c06275e commit f311e3b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions src/odbc/include/ignite/odbc/config/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ namespace ignite
// static const ProtocolVersion& protocolVersion;

/** Default value for fetch results page size attribute. */
static const int32_t defaultFetchSize;
static const int32_t fetchSize;

/** Default value for nestedTxMode attribute. */
static const NestedTxMode::Type nestedTxMode;
Expand Down Expand Up @@ -703,21 +703,21 @@ namespace ignite
*
* @return Fetch results page size.
*/
int32_t GetDefaultFetchSize() const;
int32_t GetFetchSize() const;

/**
* Set fetch results page size.
*
* @param size Fetch results page size.
*/
void SetDefaultFetchSize(int32_t size);
void SetFetchSize(int32_t size);

/**
* Check if the value set.
*
* @return @true if the value set.
*/
bool IsDefaultFetchSizeSet() const;
bool IsFetchSizeSet() const;

/**
* Get argument map.
Expand Down Expand Up @@ -816,7 +816,7 @@ namespace ignite
SettableValue<bool> refreshSchema;

/** Request and response page size. */
SettableValue<int32_t> defaultFetchSize;
SettableValue<int32_t> fetchSize;
};

template<>
Expand Down
18 changes: 9 additions & 9 deletions src/odbc/src/config/configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace ignite
const std::string Configuration::DefaultValue::readPreference = "";
const std::string Configuration::DefaultValue::replicaSet = "";
const bool Configuration::DefaultValue::retryReads = true;
const int32_t Configuration::DefaultValue::defaultFetchSize = 2000;
const int32_t Configuration::DefaultValue::fetchSize = 2000;

const NestedTxMode::Type Configuration::DefaultValue::nestedTxMode = NestedTxMode::AI_ERROR; // remove

Expand Down Expand Up @@ -96,7 +96,7 @@ namespace ignite
scanLimit(DefaultValue::scanLimit),
schemaName(DefaultValue::schemaName),
refreshSchema(DefaultValue::refreshSchema),
defaultFetchSize(DefaultValue::defaultFetchSize)
fetchSize(DefaultValue::fetchSize)
{
// No-op.
}
Expand Down Expand Up @@ -519,19 +519,19 @@ namespace ignite
return password.IsSet();
}

int32_t Configuration::GetDefaultFetchSize() const
int32_t Configuration::GetFetchSize() const
{
return defaultFetchSize.GetValue();
return fetchSize.GetValue();
}

void Configuration::SetDefaultFetchSize(int32_t size)
void Configuration::SetFetchSize(int32_t size)
{
this->defaultFetchSize.SetValue(size);
this->fetchSize.SetValue(size);
}

bool Configuration::IsDefaultFetchSizeSet() const
bool Configuration::IsFetchSizeSet() const
{
return defaultFetchSize.IsSet();
return fetchSize.IsSet();
}

void Configuration::ToMap(ArgumentMap& res) const
Expand Down Expand Up @@ -563,7 +563,7 @@ namespace ignite
AddToMap(res, ConnectionStringParser::Key::scanLimit, scanLimit);
AddToMap(res, ConnectionStringParser::Key::schemaName, schemaName);
AddToMap(res, ConnectionStringParser::Key::refreshSchema, refreshSchema);
AddToMap(res, ConnectionStringParser::Key::defaultFetchSize, defaultFetchSize);
AddToMap(res, ConnectionStringParser::Key::fetchSize, fetchSize);
}

template<>
Expand Down

0 comments on commit f311e3b

Please sign in to comment.