Skip to content

Commit

Permalink
- expose raw thirft metadata about row group
Browse files Browse the repository at this point in the history
- add absolute image links in readme, so they are visible outside of github.com as well
  • Loading branch information
aloneguid committed Apr 18, 2023
1 parent f5b6ad2 commit c0df32d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Apache Parquet for .NET [![NuGet](https://img.shields.io/nuget/v/Parquet.Net.svg)](https://www.nuget.org/packages/Parquet.Net) [![Nuget](https://img.shields.io/nuget/dt/Parquet.Net)](https://www.nuget.org/packages/Parquet.Net)


![Icon](img/banner.png)
![Icon](https://www.aloneguid.uk/parquet/banner.png)

**Fully managed, safe, extremely fast** .NET library to 📖read and ✍️write [Apache Parquet](https://parquet.apache.org/) files designed for .NET world (not a wrapper). Targets `.NET 7`, `.NET 6.0`, `.NET Core 3.1`, `.NET Standard 2.1` and `.NET Standard 2.0`.

Expand All @@ -21,7 +20,7 @@ Whether you want to build apps for Linux, MacOS, Windows, iOS, Android, Tizen, X

Make sure to check out [Apache Parquet Viewer](https://aloneguid.github.io/parquet-online/) built with this library:

[![](img/pv.png)](https://aloneguid.github.io/parquet-online/)
[![](https://www.aloneguid.uk/parquet/pv.png)](https://aloneguid.github.io/parquet-online/)

## Why

Expand Down Expand Up @@ -183,7 +182,7 @@ IList<Record> data = await ParquetSerializer.DeserializeAsync<Record>("/mnt/stor

This will give us an array with one million class instances similar to this:

![](img/read-classes.png)
![](https://www.aloneguid.uk/parquet/read-classes.png)

Of course [class serialisation](serialisation.md) has more to it, and you can customise it further than that.

Expand All @@ -197,7 +196,7 @@ Table tbl = await Table.ReadAsync("/mnt/storage/data.parquet");

This will do the magic behind the scenes, give you table schema and rows, similar to this:

![](img/read-rows.png)
![](https://www.aloneguid.uk/parquet/read-rows.png)

As always, there's [more to it](rows.md).

Expand Down
5 changes: 5 additions & 0 deletions src/Parquet/ParquetRowGroupReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ internal ParquetRowGroupReader(
}
}

/// <summary>
/// Exposes raw thrift metadata about this row group
/// </summary>
public Thrift.RowGroup ThriftRowGroup => _rowGroup;

/// <summary>
/// Gets the number of rows in this row group
/// </summary>
Expand Down

0 comments on commit c0df32d

Please sign in to comment.