ParquetColumn

Class ParquetColumn

This attribute defines the mapping between a property name and the name of a column in a parquet file. When using the ParquetDestination, the WriteOrder defines the order of the columns in the file.

Inheritance
ParquetColumn
Inherited Members
Namespace: ETLBox.Parquet
Assembly: ETLBox.Parquet.dll
Syntax
    [AttributeUsage(AttributeTargets.Property)]
public class ParquetColumn : Attribute
Examples

public class MyPoco { [ParquetColumn("NameInParquet", WriteOrder: 1)] public string SomeProperty { get; set; } [ParquetColumn(WriterOrder: 2)] public string AnotherProperty { get; set; } }

Constructors

ParquetColumn()

Declaration
    public ParquetColumn()

ParquetColumn(int)

Declaration
    public ParquetColumn(int writeOrder)
Parameters
TypeNameDescription
intwriteOrder

ParquetColumn(string)

Declaration
    public ParquetColumn(string columnName)
Parameters
TypeNameDescription
stringcolumnName

ParquetColumn(string, int)

Declaration
    public ParquetColumn(string columnName, int writeOrder)
Parameters
TypeNameDescription
stringcolumnName
intwriteOrder

Properties

ColumnName

Declaration
    public string ColumnName { get; set; }
Property Value
TypeDescription
string

PropertyName

Declaration
    public string PropertyName { get; set; }
Property Value
TypeDescription
string

WriteOrder

Declaration
    public int WriteOrder { get; set; }
Property Value
TypeDescription
int