| 897 | } |
| 898 | |
| 899 | ColumnDescriptor::ColumnDescriptor(schema::NodePtr node, int16_t max_definition_level, |
| 900 | int16_t max_repetition_level, |
| 901 | const SchemaDescriptor* schema_descr) |
| 902 | : node_(std::move(node)), |
| 903 | max_definition_level_(max_definition_level), |
| 904 | max_repetition_level_(max_repetition_level) { |
| 905 | if (!node_->is_primitive()) { |
| 906 | throw ParquetException("Must be a primitive type"); |
| 907 | } |
| 908 | primitive_node_ = static_cast<const PrimitiveNode*>(node_.get()); |
| 909 | } |
| 910 | |
| 911 | bool ColumnDescriptor::Equals(const ColumnDescriptor& other) const { |
| 912 | return primitive_node_->Equals(other.primitive_node_) && |
nothing calls this directly
no test coverage detected