Class LogicalWrite
- Namespace
- ParquetSharp
- Assembly
- ParquetSharp.dll
C# types to Parquet physical types write conversion logic. Separate class for per-element conversion logic.
public static class LogicalWrite
- Inheritance
-
LogicalWrite
- Inherited Members
Fields
DateTimeOffset
public const long DateTimeOffset = 621355968000000000
Field Value
Methods
ConvertByteArray(ReadOnlySpan<byte[]>, Span<short>, Span<ByteArray>, short, ByteBuffer)
public static void ConvertByteArray(ReadOnlySpan<byte[]> source, Span<short> defLevels, Span<ByteArray> destination, short nullLevel, ByteBuffer byteBuffer)
Parameters
sourceReadOnlySpan<byte[]>defLevelsSpan<short>destinationSpan<ByteArray>nullLevelshortbyteBufferByteBuffer
ConvertDateOnly(ReadOnlySpan<DateOnly>, Span<int>)
public static void ConvertDateOnly(ReadOnlySpan<DateOnly> source, Span<int> destination)
Parameters
sourceReadOnlySpan<DateOnly>destinationSpan<int>
ConvertDateOnly(ReadOnlySpan<DateOnly?>, Span<short>, Span<int>, short)
public static void ConvertDateOnly(ReadOnlySpan<DateOnly?> source, Span<short> defLevels, Span<int> destination, short nullLevel)
Parameters
ConvertDateTimeMicros(ReadOnlySpan<DateTime>, Span<long>)
public static void ConvertDateTimeMicros(ReadOnlySpan<DateTime> source, Span<long> destination)
Parameters
sourceReadOnlySpan<DateTime>destinationSpan<long>
ConvertDateTimeMicros(ReadOnlySpan<DateTime?>, Span<short>, Span<long>, short)
public static void ConvertDateTimeMicros(ReadOnlySpan<DateTime?> source, Span<short> defLevels, Span<long> destination, short nullLevel)
Parameters
ConvertDateTimeMillis(ReadOnlySpan<DateTime>, Span<long>)
public static void ConvertDateTimeMillis(ReadOnlySpan<DateTime> source, Span<long> destination)
Parameters
sourceReadOnlySpan<DateTime>destinationSpan<long>
ConvertDateTimeMillis(ReadOnlySpan<DateTime?>, Span<short>, Span<long>, short)
public static void ConvertDateTimeMillis(ReadOnlySpan<DateTime?> source, Span<short> defLevels, Span<long> destination, short nullLevel)
Parameters
ConvertDecimal(ReadOnlySpan<decimal>, Span<FixedLenByteArray>, decimal, ByteBuffer, int)
public static void ConvertDecimal(ReadOnlySpan<decimal> source, Span<FixedLenByteArray> destination, decimal multiplier, ByteBuffer byteBuffer, int typeLength)
Parameters
sourceReadOnlySpan<decimal>destinationSpan<FixedLenByteArray>multiplierdecimalbyteBufferByteBuffertypeLengthint
ConvertDecimal(ReadOnlySpan<decimal>, Span<int>, decimal)
public static void ConvertDecimal(ReadOnlySpan<decimal> source, Span<int> destination, decimal multiplier)
Parameters
sourceReadOnlySpan<decimal>destinationSpan<int>multiplierdecimal
ConvertDecimal(ReadOnlySpan<decimal>, Span<long>, decimal)
public static void ConvertDecimal(ReadOnlySpan<decimal> source, Span<long> destination, decimal multiplier)
Parameters
sourceReadOnlySpan<decimal>destinationSpan<long>multiplierdecimal
ConvertDecimal(ReadOnlySpan<decimal?>, Span<short>, Span<FixedLenByteArray>, decimal, short, ByteBuffer, int)
public static void ConvertDecimal(ReadOnlySpan<decimal?> source, Span<short> defLevels, Span<FixedLenByteArray> destination, decimal multiplier, short nullLevel, ByteBuffer byteBuffer, int typeLength)
Parameters
sourceReadOnlySpan<decimal?>defLevelsSpan<short>destinationSpan<FixedLenByteArray>multiplierdecimalnullLevelshortbyteBufferByteBuffertypeLengthint
ConvertDecimal(ReadOnlySpan<decimal?>, Span<short>, Span<int>, decimal, short)
public static void ConvertDecimal(ReadOnlySpan<decimal?> source, Span<short> defLevels, Span<int> destination, decimal multiplier, short nullLevel)
Parameters
sourceReadOnlySpan<decimal?>defLevelsSpan<short>destinationSpan<int>multiplierdecimalnullLevelshort
ConvertDecimal(ReadOnlySpan<decimal?>, Span<short>, Span<long>, decimal, short)
public static void ConvertDecimal(ReadOnlySpan<decimal?> source, Span<short> defLevels, Span<long> destination, decimal multiplier, short nullLevel)
Parameters
sourceReadOnlySpan<decimal?>defLevelsSpan<short>destinationSpan<long>multiplierdecimalnullLevelshort
ConvertDecimal128(ReadOnlySpan<decimal>, Span<FixedLenByteArray>, decimal, ByteBuffer)
public static void ConvertDecimal128(ReadOnlySpan<decimal> source, Span<FixedLenByteArray> destination, decimal multiplier, ByteBuffer byteBuffer)
Parameters
sourceReadOnlySpan<decimal>destinationSpan<FixedLenByteArray>multiplierdecimalbyteBufferByteBuffer
ConvertDecimal128(ReadOnlySpan<decimal?>, Span<short>, Span<FixedLenByteArray>, decimal, short, ByteBuffer)
public static void ConvertDecimal128(ReadOnlySpan<decimal?> source, Span<short> defLevels, Span<FixedLenByteArray> destination, decimal multiplier, short nullLevel, ByteBuffer byteBuffer)
Parameters
sourceReadOnlySpan<decimal?>defLevelsSpan<short>destinationSpan<FixedLenByteArray>multiplierdecimalnullLevelshortbyteBufferByteBuffer
ConvertHalf(ReadOnlySpan<Half>, Span<FixedLenByteArray>, ByteBuffer)
public static void ConvertHalf(ReadOnlySpan<Half> source, Span<FixedLenByteArray> destination, ByteBuffer byteBuffer)
Parameters
sourceReadOnlySpan<Half>destinationSpan<FixedLenByteArray>byteBufferByteBuffer
ConvertHalf(ReadOnlySpan<Half?>, Span<short>, Span<FixedLenByteArray>, short, ByteBuffer)
public static void ConvertHalf(ReadOnlySpan<Half?> source, Span<short> defLevels, Span<FixedLenByteArray> destination, short nullLevel, ByteBuffer byteBuffer)
Parameters
sourceReadOnlySpan<Half?>defLevelsSpan<short>destinationSpan<FixedLenByteArray>nullLevelshortbyteBufferByteBuffer
ConvertInt16(ReadOnlySpan<short>, Span<int>)
public static void ConvertInt16(ReadOnlySpan<short> source, Span<int> destination)
Parameters
sourceReadOnlySpan<short>destinationSpan<int>
ConvertInt16(ReadOnlySpan<short?>, Span<short>, Span<int>, short)
public static void ConvertInt16(ReadOnlySpan<short?> source, Span<short> defLevels, Span<int> destination, short nullLevel)
Parameters
ConvertInt8(ReadOnlySpan<sbyte?>, Span<short>, Span<int>, short)
public static void ConvertInt8(ReadOnlySpan<sbyte?> source, Span<short> defLevels, Span<int> destination, short nullLevel)
Parameters
ConvertInt8(ReadOnlySpan<sbyte>, Span<int>)
public static void ConvertInt8(ReadOnlySpan<sbyte> source, Span<int> destination)
Parameters
sourceReadOnlySpan<sbyte>destinationSpan<int>
ConvertNative<TValue>(ReadOnlySpan<TValue?>, Span<short>, Span<TValue>, short)
public static void ConvertNative<TValue>(ReadOnlySpan<TValue?> source, Span<short> defLevels, Span<TValue> destination, short nullLevel) where TValue : struct
Parameters
sourceReadOnlySpan<TValue?>defLevelsSpan<short>destinationSpan<TValue>nullLevelshort
Type Parameters
TValue
ConvertNative<TValue>(ReadOnlySpan<TValue>, Span<TValue>)
public static void ConvertNative<TValue>(ReadOnlySpan<TValue> source, Span<TValue> destination) where TValue : unmanaged
Parameters
sourceReadOnlySpan<TValue>destinationSpan<TValue>
Type Parameters
TValue
ConvertString(ReadOnlySpan<string>, Span<short>, Span<ByteArray>, short, ByteBuffer)
public static void ConvertString(ReadOnlySpan<string> source, Span<short> defLevels, Span<ByteArray> destination, short nullLevel, ByteBuffer byteBuffer)
Parameters
sourceReadOnlySpan<string>defLevelsSpan<short>destinationSpan<ByteArray>nullLevelshortbyteBufferByteBuffer
ConvertTimeOnlyMicros(ReadOnlySpan<TimeOnly?>, Span<short>, Span<long>, short)
public static void ConvertTimeOnlyMicros(ReadOnlySpan<TimeOnly?> source, Span<short> defLevels, Span<long> destination, short nullLevel)
Parameters
ConvertTimeOnlyMicros(ReadOnlySpan<TimeOnly>, Span<long>)
public static void ConvertTimeOnlyMicros(ReadOnlySpan<TimeOnly> source, Span<long> destination)
Parameters
sourceReadOnlySpan<TimeOnly>destinationSpan<long>
ConvertTimeOnlyMillis(ReadOnlySpan<TimeOnly?>, Span<short>, Span<int>, short)
public static void ConvertTimeOnlyMillis(ReadOnlySpan<TimeOnly?> source, Span<short> defLevels, Span<int> destination, short nullLevel)
Parameters
ConvertTimeOnlyMillis(ReadOnlySpan<TimeOnly>, Span<int>)
public static void ConvertTimeOnlyMillis(ReadOnlySpan<TimeOnly> source, Span<int> destination)
Parameters
sourceReadOnlySpan<TimeOnly>destinationSpan<int>
ConvertTimeSpanMicros(ReadOnlySpan<TimeSpan?>, Span<short>, Span<long>, short)
public static void ConvertTimeSpanMicros(ReadOnlySpan<TimeSpan?> source, Span<short> defLevels, Span<long> destination, short nullLevel)
Parameters
ConvertTimeSpanMicros(ReadOnlySpan<TimeSpan>, Span<long>)
public static void ConvertTimeSpanMicros(ReadOnlySpan<TimeSpan> source, Span<long> destination)
Parameters
sourceReadOnlySpan<TimeSpan>destinationSpan<long>
ConvertTimeSpanMillis(ReadOnlySpan<TimeSpan?>, Span<short>, Span<int>, short)
public static void ConvertTimeSpanMillis(ReadOnlySpan<TimeSpan?> source, Span<short> defLevels, Span<int> destination, short nullLevel)
Parameters
ConvertTimeSpanMillis(ReadOnlySpan<TimeSpan>, Span<int>)
public static void ConvertTimeSpanMillis(ReadOnlySpan<TimeSpan> source, Span<int> destination)
Parameters
sourceReadOnlySpan<TimeSpan>destinationSpan<int>
ConvertUInt16(ReadOnlySpan<ushort?>, Span<short>, Span<int>, short)
public static void ConvertUInt16(ReadOnlySpan<ushort?> source, Span<short> defLevels, Span<int> destination, short nullLevel)
Parameters
ConvertUInt16(ReadOnlySpan<ushort>, Span<int>)
public static void ConvertUInt16(ReadOnlySpan<ushort> source, Span<int> destination)
Parameters
sourceReadOnlySpan<ushort>destinationSpan<int>
ConvertUInt8(ReadOnlySpan<byte>, Span<int>)
public static void ConvertUInt8(ReadOnlySpan<byte> source, Span<int> destination)
Parameters
sourceReadOnlySpan<byte>destinationSpan<int>
ConvertUInt8(ReadOnlySpan<byte?>, Span<short>, Span<int>, short)
public static void ConvertUInt8(ReadOnlySpan<byte?> source, Span<short> defLevels, Span<int> destination, short nullLevel)
Parameters
ConvertUuid(ReadOnlySpan<Guid>, Span<FixedLenByteArray>, ByteBuffer)
public static void ConvertUuid(ReadOnlySpan<Guid> source, Span<FixedLenByteArray> destination, ByteBuffer byteBuffer)
Parameters
sourceReadOnlySpan<Guid>destinationSpan<FixedLenByteArray>byteBufferByteBuffer
ConvertUuid(ReadOnlySpan<Guid?>, Span<short>, Span<FixedLenByteArray>, short, ByteBuffer)
public static void ConvertUuid(ReadOnlySpan<Guid?> source, Span<short> defLevels, Span<FixedLenByteArray> destination, short nullLevel, ByteBuffer byteBuffer)
Parameters
sourceReadOnlySpan<Guid?>defLevelsSpan<short>destinationSpan<FixedLenByteArray>nullLevelshortbyteBufferByteBuffer
FromByteArray(byte[], ByteBuffer)
public static ByteArray FromByteArray(byte[] array, ByteBuffer byteBuffer)
Parameters
arraybyte[]byteBufferByteBuffer
Returns
FromDateOnly(DateOnly)
public static int FromDateOnly(DateOnly source)
Parameters
sourceDateOnly
Returns
FromDateTimeMicros(DateTime)
public static long FromDateTimeMicros(DateTime source)
Parameters
sourceDateTime
Returns
FromDateTimeMillis(DateTime)
public static long FromDateTimeMillis(DateTime source)
Parameters
sourceDateTime
Returns
FromDecimal(decimal, decimal, ByteBuffer)
public static FixedLenByteArray FromDecimal(decimal source, decimal multiplier, ByteBuffer byteBuffer)
Parameters
sourcedecimalmultiplierdecimalbyteBufferByteBuffer
Returns
FromFixedLength<TValue>(in TValue, ByteBuffer)
public static FixedLenByteArray FromFixedLength<TValue>(in TValue value, ByteBuffer byteBuffer) where TValue : unmanaged
Parameters
valueTValuebyteBufferByteBuffer
Returns
Type Parameters
TValue
FromString(string, ByteBuffer)
public static ByteArray FromString(string str, ByteBuffer byteBuffer)
Parameters
strstringbyteBufferByteBuffer
Returns
FromTimeOnlyMicros(TimeOnly)
public static long FromTimeOnlyMicros(TimeOnly source)
Parameters
sourceTimeOnly
Returns
FromTimeOnlyMillis(TimeOnly)
public static int FromTimeOnlyMillis(TimeOnly source)
Parameters
sourceTimeOnly
Returns
FromTimeSpanMicros(TimeSpan)
public static long FromTimeSpanMicros(TimeSpan source)
Parameters
sourceTimeSpan
Returns
FromTimeSpanMillis(TimeSpan)
public static int FromTimeSpanMillis(TimeSpan source)
Parameters
sourceTimeSpan
Returns
FromUuid(Guid, ByteBuffer)
public static FixedLenByteArray FromUuid(Guid uuid, ByteBuffer byteBuffer)
Parameters
uuidGuidbyteBufferByteBuffer
Returns
GetNativeConverter<TTLogical, TTPhysical>()
public static Delegate GetNativeConverter<TTLogical, TTPhysical>() where TTLogical : unmanaged where TTPhysical : unmanaged
Returns
Type Parameters
TTLogicalTTPhysical
GetNullableNativeConverter<TTLogical, TTPhysical>()
public static Delegate GetNullableNativeConverter<TTLogical, TTPhysical>() where TTLogical : unmanaged where TTPhysical : unmanaged
Returns
Type Parameters
TTLogicalTTPhysical