Class ColumnWriter
- Namespace
- ParquetSharp
- Assembly
- ParquetSharp.dll
Writer of physical Parquet values to a single column.
public abstract class ColumnWriter : IDisposable
- Inheritance
-
ColumnWriter
- Implements
- Derived
- Inherited Members
Properties
ColumnDescriptor
Get the ColumnDescriptor for the column.
public ColumnDescriptor ColumnDescriptor { get; }
Property Value
ColumnIndex
Get the index of the column within the row group.
public int ColumnIndex { get; }
Property Value
ElementType
Get the element Type of the data being written.
public abstract Type ElementType { get; }
Property Value
Handle
protected IntPtr Handle { get; }
Property Value
LogicalTypeFactory
Get the LogicalTypeFactory for the Parquet file writer.
public LogicalTypeFactory LogicalTypeFactory { get; }
Property Value
LogicalWriteConverterFactory
Get the LogicalWriteConverterFactory for the Parquet file writer.
public LogicalWriteConverterFactory LogicalWriteConverterFactory { get; }
Property Value
RowWritten
Get the number of rows written to the column so far.
public long RowWritten { get; }
Property Value
Type
Get the physical type of the column.
public PhysicalType Type { get; }
Property Value
WriterProperties
Get the WriterProperties for the column.
public WriterProperties WriterProperties { get; }
Property Value
Methods
Apply<TReturn>(IColumnWriterVisitor<TReturn>)
Apply a visitor to the column writer.
public abstract TReturn Apply<TReturn>(IColumnWriterVisitor<TReturn> visitor)
Parameters
visitor
IColumnWriterVisitor<TReturn>The visitor instance.
Returns
- TReturn
The result of the visitor operation.
Type Parameters
TReturn
The return type of the visitor.
Close()
public long Close()
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
LogicalWriter(int)
Create a LogicalColumnWriter.
public LogicalColumnWriter LogicalWriter(int bufferLength = 4096)
Parameters
bufferLength
intThe buffer length in bytes. Default is 4KB.
Returns
- LogicalColumnWriter
A LogicalColumnWriter instance.
LogicalWriterOverride<TElement>(int)
Create a strongly-typed LogicalColumnWriter with an explicit element type override.
public LogicalColumnWriter<TElement> LogicalWriterOverride<TElement>(int bufferLength = 4096)
Parameters
bufferLength
intThe buffer length in bytes. Default is 4KB.
Returns
- LogicalColumnWriter<TElement>
A LogicalColumnWriter instance.
Type Parameters
TElement
The type of the data to write.
LogicalWriter<TElement>(int)
Create a strongly-typed LogicalColumnWriter without an explicit element type override.
public LogicalColumnWriter<TElement> LogicalWriter<TElement>(int bufferLength = 4096)
Parameters
bufferLength
intThe buffer length in bytes. Default is 4KB.
Returns
- LogicalColumnWriter<TElement>
A LogicalColumnWriter instance.
Type Parameters
TElement
The type of the data to write.