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
object
System.Attribute
ParquetColumn
Inherited Members
System.Attribute.Equals(object)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, bool)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, bool)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, bool)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, bool)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, bool)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, bool)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, bool)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, bool)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, bool)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, bool)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, bool)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, bool)
System.Attribute.GetHashCode()
System.Attribute.IsDefaultAttribute()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, bool)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, bool)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, bool)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, bool)
System.Attribute.Match(object)
System.Attribute.TypeId
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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()
Examples

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

ParquetColumn(int)

Declaration
    public ParquetColumn(int writeOrder)
Parameters
TypeNameDescription
intwriteOrder
Examples

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

ParquetColumn(string, int)

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

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

ParquetColumn(string)

Declaration
    public ParquetColumn(string columnName)
Parameters
TypeNameDescription
stringcolumnName
Examples

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

Properties

ColumnName

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

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

PropertyName

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

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

WriteOrder

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

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