forked from slunyakin-zz/parquet-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWriterOptions.cs
37 lines (32 loc) · 1008 Bytes
/
WriterOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using Parquet.Data;
namespace Parquet
{
/// <summary>
/// Writer options
/// </summary>
public class WriterOptions
{
/// <summary>
/// Initializes a new instance of the <see cref="WriterOptions"/> class.
/// </summary>
public WriterOptions()
{
RowGroupsSize = 5000;
UseDictionaryEncoding = true;
ForceFixedByteArraysForDecimals = true;
}
/// <summary>
/// Gets or sets the size of the row group.
/// </summary>
public int RowGroupsSize { get; set; }
/// <summary>
/// Gets or sets the flag whether to use dictionary encoding when writing.
/// </summary>
public bool UseDictionaryEncoding { get; set; }
/// <summary>
/// Gets or sets the flag whether to force decimal type encoding as fixed bytes. Hive and Impala only
/// understands decimals when forced to true.
/// </summary>
public bool ForceFixedByteArraysForDecimals { get; set; }
}
}