Skip to content

Commit

Permalink
Addressed more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
revans2 committed Jul 18, 2022
1 parent 8d5c443 commit 955abaa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/cpp/src/NativeParquetJni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class column_pruner {
/**
* Given a schema from a parquet file create a set of pruning maps to prune columns from the rest of the footer
*/
column_pruning_maps filter_schema(std::vector<parquet::format::SchemaElement> & schema, bool const ignore_case) const {
column_pruning_maps filter_schema(std::vector<parquet::format::SchemaElement> const & schema, bool const ignore_case) const {
CUDF_FUNC_RANGE();

// These are the outputs of the computation.
Expand Down Expand Up @@ -182,7 +182,7 @@ class column_pruner {
/**
* filter_schema, but specific to Tag::STRUCT.
*/
void filter_schema_struct(std::vector<parquet::format::SchemaElement> & schema, bool const ignore_case,
void filter_schema_struct(std::vector<parquet::format::SchemaElement> const & schema, bool const ignore_case,
std::size_t & current_input_schema_index, std::size_t & next_input_chunk_index,
std::vector<int> & chunk_map, std::vector<int> & schema_map, std::vector<int> & schema_num_children) const {
// First verify that we found a struct, like we expected to find.
Expand Down Expand Up @@ -221,7 +221,7 @@ class column_pruner {
/**
* filter_schema, but specific to Tag::VALUE.
*/
void filter_schema_value(std::vector<parquet::format::SchemaElement> & schema,
void filter_schema_value(std::vector<parquet::format::SchemaElement> const & schema,
std::size_t & current_input_schema_index, std::size_t & next_input_chunk_index,
std::vector<int> & chunk_map, std::vector<int> & schema_map, std::vector<int> & schema_num_children) const {
auto schema_item = schema.at(current_input_schema_index);
Expand All @@ -242,7 +242,7 @@ class column_pruner {
/**
* filter_schema, but specific to Tag::LIST.
*/
void filter_schema_list(std::vector<parquet::format::SchemaElement> & schema, bool const ignore_case,
void filter_schema_list(std::vector<parquet::format::SchemaElement> const & schema, bool const ignore_case,
std::size_t & current_input_schema_index, std::size_t & next_input_chunk_index,
std::vector<int> & chunk_map, std::vector<int> & schema_map, std::vector<int> & schema_num_children) const {
// By convention with the java code the child is always called "element"...
Expand Down Expand Up @@ -301,7 +301,7 @@ class column_pruner {
/**
* filter_schema, but specific to Tag::MAP.
*/
void filter_schema_map(std::vector<parquet::format::SchemaElement> & schema, bool const ignore_case,
void filter_schema_map(std::vector<parquet::format::SchemaElement> const & schema, bool const ignore_case,
std::size_t & current_input_schema_index, std::size_t & next_input_chunk_index,
std::vector<int> & chunk_map, std::vector<int> & schema_map, std::vector<int> & schema_num_children) const {
// By convention with the java code the children are always called "key" and "value"...
Expand Down Expand Up @@ -361,7 +361,7 @@ class column_pruner {
* current_input_schema_index and next_input_chunk_index are also outputs but are state that is
* passed to each child and returned when it comsumes comething.
*/
void filter_schema(std::vector<parquet::format::SchemaElement> & schema, bool const ignore_case,
void filter_schema(std::vector<parquet::format::SchemaElement> const & schema, bool const ignore_case,
std::size_t & current_input_schema_index, std::size_t & next_input_chunk_index,
std::vector<int> & chunk_map, std::vector<int> & schema_map, std::vector<int> & schema_num_children) const {
switch(tag) {
Expand All @@ -383,7 +383,7 @@ class column_pruner {
}

/**
* Do a depth first traversal to build up this.
* Do a depth first traversal to build up column_pruner into a tree that matches the schema we want to filter using.
*/
void add_depth_first(std::vector<std::string> const& names,
std::vector<int> const& num_children,
Expand Down

0 comments on commit 955abaa

Please sign in to comment.