Merge pull request #32110 from bharatnc/ncb/h3-func-looping

make looping in H3 funcs uniform
This commit is contained in:
Maksim Kita 2021-12-02 13:15:36 +03:00 committed by GitHub
commit 2d359a5e79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 11 additions and 11 deletions

View File

@ -76,7 +76,7 @@ public:
auto & dst_data = dst->getData();
dst_data.resize(input_rows_count);
for (const auto row : collections::range(0, input_rows_count))
for (size_t row = 0; row < input_rows_count; row++)
{
const double lon = col_lon->getFloat64(row);
const double lat = col_lat->getFloat64(row);

View File

@ -58,7 +58,7 @@ public:
auto & dst_data = dst->getData();
dst_data.resize(input_rows_count);
for (const auto row : collections::range(0, input_rows_count))
for (size_t row = 0; row < input_rows_count; row++)
{
const int resolution = col_hindex->getUInt(row);
if (resolution > MAX_H3_RES)

View File

@ -63,7 +63,7 @@ public:
auto & dst_data = dst->getData();
dst_data.resize(input_rows_count);
for (const auto row : collections::range(0, input_rows_count))
for (size_t row = 0; row < input_rows_count; row++)
{
const UInt64 resolution = col_hindex->getUInt(row);
if (resolution > MAX_H3_RES)

View File

@ -55,7 +55,7 @@ public:
auto & dst_data = dst->getData();
dst_data.resize(input_rows_count);
for (const auto row : collections::range(0, input_rows_count))
for (size_t row = 0; row < input_rows_count; row++)
{
const UInt64 hindex = col_hindex->getUInt(row);

View File

@ -55,7 +55,7 @@ public:
auto & dst_data = dst->getData();
dst_data.resize(input_rows_count);
for (const auto row : collections::range(0, input_rows_count))
for (size_t row = 0; row < input_rows_count; row++)
{
const UInt64 hindex = col_hindex->getUInt(row);

View File

@ -58,7 +58,7 @@ public:
auto & dst_data = dst->getData();
dst_data.resize(input_rows_count);
for (const auto row : collections::range(0, input_rows_count))
for (size_t row = 0; row < input_rows_count; row++)
{
const UInt64 resolution = col_hindex->getUInt(row);
if (resolution > MAX_H3_RES)

View File

@ -63,7 +63,7 @@ public:
auto & dst_data = dst->getData();
dst_data.resize(input_rows_count);
for (const auto row : collections::range(0, input_rows_count))
for (size_t row = 0; row < input_rows_count; row++)
{
const UInt64 hindex_origin = col_hindex_origin->getUInt(row);
const UInt64 hindex_dest = col_hindex_dest->getUInt(row);

View File

@ -55,7 +55,7 @@ public:
auto & dst_data = dst->getData();
dst_data.resize(input_rows_count);
for (const auto row : collections::range(0, input_rows_count))
for (size_t row = 0; row < input_rows_count; row++)
{
const UInt64 hindex = col_hindex->getUInt(row);

View File

@ -76,7 +76,7 @@ public:
std::vector<H3Index> hindex_vec;
for (const auto row : collections::range(0, input_rows_count))
for (size_t row = 0; row < input_rows_count; row++)
{
const UInt64 parent_hindex = col_hindex->getUInt(row);
const UInt8 child_resolution = col_resolution->getUInt(row);

View File

@ -66,7 +66,7 @@ public:
auto & dst_data = dst->getData();
dst_data.resize(input_rows_count);
for (const auto row : collections::range(0, input_rows_count))
for (size_t row = 0; row < input_rows_count; row++)
{
const UInt64 hindex = col_hindex->getUInt(row);
const UInt8 resolution = col_resolution->getUInt(row);

View File

@ -73,7 +73,7 @@ public:
std::vector<H3Index> hindex_vec;
for (const auto row : collections::range(0, input_rows_count))
for (size_t row = 0; row < input_rows_count; row++)
{
const H3Index origin_hindex = col_hindex->getUInt(row);
const int k = col_k->getInt(row);