Table of Contents

Class Column

Namespace
ParquetSharp
Assembly
ParquetSharp.dll

Column properties for constructing schema nodes from C# types. This is a higher-level API not part of apache-parquet-cpp.

public class Column
Inheritance
Column
Derived
Inherited Members

Constructors

Column(Type, string, LogicalType?)

Create a column with the given properties.

public Column(Type logicalSystemType, string name, LogicalType? logicalTypeOverride = null)

Parameters

logicalSystemType Type

The Type of the column.

name string

The name of the column.

logicalTypeOverride LogicalType

Optional override for the logical type of the column.

Exceptions

ArgumentNullException

Thrown if any of the arguments are null.

Column(Type, string, LogicalType?, int)

Create a column with the given properties.

public Column(Type logicalSystemType, string name, LogicalType? logicalTypeOverride, int length)

Parameters

logicalSystemType Type

The Type of the column.

name string

The name of the column.

logicalTypeOverride LogicalType

Optional override for the logical type of the column.

length int

The length of the column for decimal, Guid or Half types.

Exceptions

ArgumentNullException

Thrown if any of the required arguments are null.

ArgumentException

Thrown if the length is set with an incompatible type.

Fields

Length

public readonly int Length

Field Value

int

LogicalSystemType

public readonly Type LogicalSystemType

Field Value

Type

LogicalTypeOverride

public readonly LogicalType? LogicalTypeOverride

Field Value

LogicalType

Name

public readonly string Name

Field Value

string

Methods

CreateSchemaNode()

Create a schema node representing this column with its given properties.

public Node CreateSchemaNode()

Returns

Node

CreateSchemaNode(Column[], LogicalTypeFactory, string)

Create a schema node containing all the given columns, using the given logical-type factory.

public static GroupNode CreateSchemaNode(Column[] columns, LogicalTypeFactory logicalTypeFactory, string nodeName = "schema")

Parameters

columns Column[]
logicalTypeFactory LogicalTypeFactory
nodeName string

Returns

GroupNode

CreateSchemaNode(Column[], string)

Create a schema node containing all the given columns.

public static GroupNode CreateSchemaNode(Column[] columns, string nodeName = "schema")

Parameters

columns Column[]
nodeName string

Returns

GroupNode

CreateSchemaNode(LogicalTypeFactory)

Create a schema node representing this column with its given properties, using the given logical-type factory.

public Node CreateSchemaNode(LogicalTypeFactory typeFactory)

Parameters

typeFactory LogicalTypeFactory

Returns

Node