Table of Contents

Class LogicalType

Namespace
ParquetSharp
Assembly
ParquetSharp.dll
public abstract class LogicalType : IDisposable, IEquatable<LogicalType>
Inheritance
LogicalType
Implements
Derived
Inherited Members

Constructors

LogicalType(IntPtr)

protected LogicalType(IntPtr handle)

Parameters

handle IntPtr

Properties

Type

public LogicalTypeEnum Type { get; }

Property Value

LogicalTypeEnum

Methods

Bson()

public static LogicalType Bson()

Returns

LogicalType

Date()

public static LogicalType Date()

Returns

LogicalType

Decimal(int, int)

public static LogicalType Decimal(int precision, int scale = 0)

Parameters

precision int
scale int

Returns

LogicalType

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Enum()

public static LogicalType Enum()

Returns

LogicalType

Equals(LogicalType?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(LogicalType? other)

Parameters

other LogicalType

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Float16()

Create a Float16 LogicalType

This can be used to annotate a 2-byte fixed-length byte array

public static LogicalType Float16()

Returns

LogicalType

New Float16 LogicalType

Int(int, bool)

public static LogicalType Int(int bitWidth, bool isSigned)

Parameters

bitWidth int
isSigned bool

Returns

LogicalType

Interval()

public static LogicalType Interval()

Returns

LogicalType

Json()

public static LogicalType Json()

Returns

LogicalType

List()

public static LogicalType List()

Returns

LogicalType

Map()

public static LogicalType Map()

Returns

LogicalType

None()

public static LogicalType None()

Returns

LogicalType

Null()

public static LogicalType Null()

Returns

LogicalType

String()

public static LogicalType String()

Returns

LogicalType

Time(bool, TimeUnit)

public static LogicalType Time(bool isAdjustedToUtc, TimeUnit timeUnit)

Parameters

isAdjustedToUtc bool
timeUnit TimeUnit

Returns

LogicalType

Timestamp(bool, TimeUnit)

public static LogicalType Timestamp(bool isAdjustedToUtc, TimeUnit timeUnit)

Parameters

isAdjustedToUtc bool
timeUnit TimeUnit

Returns

LogicalType

Timestamp(bool, TimeUnit, bool)

public static LogicalType Timestamp(bool isAdjustedToUtc, TimeUnit timeUnit, bool forceSetConvertedType)

Parameters

isAdjustedToUtc bool
timeUnit TimeUnit
forceSetConvertedType bool

Returns

LogicalType

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Uuid()

public static LogicalType Uuid()

Returns

LogicalType