parquet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject parquet-cpp git commit: PARQUET-1040: Add missing writer methods
Date Mon, 03 Jul 2017 17:14:12 GMT
Repository: parquet-cpp
Updated Branches:
  refs/heads/master 2f5ef8957 -> 7c90ae7bd


PARQUET-1040: Add missing writer methods

Author: Korn, Uwe <Uwe.Korn@blue-yonder.com>

Closes #365 from xhochy/PARQUET-1040 and squashes the following commits:

ef359ef [Korn, Uwe] PARQUET-1040: Add missing writer methods


Project: http://git-wip-us.apache.org/repos/asf/parquet-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/parquet-cpp/commit/7c90ae7b
Tree: http://git-wip-us.apache.org/repos/asf/parquet-cpp/tree/7c90ae7b
Diff: http://git-wip-us.apache.org/repos/asf/parquet-cpp/diff/7c90ae7b

Branch: refs/heads/master
Commit: 7c90ae7bd958856067ac091bd23c735536f5bd34
Parents: 2f5ef89
Author: Korn, Uwe <Uwe.Korn@blue-yonder.com>
Authored: Mon Jul 3 13:14:06 2017 -0400
Committer: Wes McKinney <wes.mckinney@twosigma.com>
Committed: Mon Jul 3 13:14:06 2017 -0400

----------------------------------------------------------------------
 src/parquet/file/writer.cc | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/parquet-cpp/blob/7c90ae7b/src/parquet/file/writer.cc
----------------------------------------------------------------------
diff --git a/src/parquet/file/writer.cc b/src/parquet/file/writer.cc
index 17afa02..cafa6b8 100644
--- a/src/parquet/file/writer.cc
+++ b/src/parquet/file/writer.cc
@@ -45,6 +45,15 @@ int RowGroupWriter::current_column() {
   return contents_->current_column();
 }
 
+int RowGroupWriter::num_columns() const {
+  return contents_->num_columns();
+}
+
+int64_t RowGroupWriter::num_rows() const {
+  return contents_->num_rows();
+}
+
+
 // ----------------------------------------------------------------------
 // ParquetFileWriter public API
 
@@ -84,6 +93,18 @@ const ColumnDescriptor* ParquetFileWriter::descr(int i) const {
   return contents_->schema()->Column(i);
 }
 
+int ParquetFileWriter::num_columns() const {
+  return contents_->num_columns();
+}
+
+int64_t ParquetFileWriter::num_rows() const {
+  return contents_->num_rows();
+}
+
+int ParquetFileWriter::num_row_groups() const {
+  return contents_->num_row_groups();
+}
+
 const std::shared_ptr<const KeyValueMetadata>& ParquetFileWriter::key_value_metadata()
     const {
   return contents_->key_value_metadata();


Mime
View raw message