-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDataCell.cs
37 lines (32 loc) · 881 Bytes
/
DataCell.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 System;
namespace Arcane.Framework.Sinks.Parquet.Models;
/// <summary>
/// Represents a single value in a Parquet Column
/// </summary>
public sealed class DataCell
{
/// <summary>
/// Create a DataCell instance
/// </summary>
/// <param name="fieldName">Field name</param>
/// <param name="fieldType">CLR type of the field</param>
/// <param name="value">Field value</param>
public DataCell(string fieldName, Type fieldType, object value)
{
this.FieldName = fieldName;
this.FieldType = fieldType;
this.Value = value;
}
/// <summary>
/// Field name
/// </summary>
public string FieldName { get; }
/// <summary>
/// CLR type of the field
/// </summary>
public Type FieldType { get; }
/// <summary>
/// Field value
/// </summary>
public object Value { get; }
}