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
TypeThe Type of the column.
name
stringThe name of the column.
logicalTypeOverride
LogicalTypeOptional 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
TypeThe Type of the column.
name
stringThe name of the column.
logicalTypeOverride
LogicalTypeOptional override for the logical type of the column.
length
intThe 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
LogicalSystemType
public readonly Type LogicalSystemType
Field Value
LogicalTypeOverride
public readonly LogicalType? LogicalTypeOverride
Field Value
Name
public readonly string Name
Field Value
Methods
CreateSchemaNode()
Create a schema node representing this column with its given properties.
public Node CreateSchemaNode()
Returns
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
LogicalTypeFactorynodeName
string
Returns
CreateSchemaNode(Column[], string)
Create a schema node containing all the given columns.
public static GroupNode CreateSchemaNode(Column[] columns, string nodeName = "schema")
Parameters
Returns
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