Struct WriterProperties.SortingColumn
- Namespace
- ParquetSharp
- Assembly
- ParquetSharp.dll
Represents a column sorting specification.
public readonly struct WriterProperties.SortingColumn : IEquatable<WriterProperties.SortingColumn>
- Implements
- Inherited Members
Constructors
SortingColumn(int, bool, bool)
Creates a new sorting column specification.
public SortingColumn(int columnIndex, bool isDescending = false, bool nullsFirst = false)
Parameters
columnIndex
intThe index of the column to sort by
isDescending
boolWhether to sort in descending order (true) or ascending order (false)
nullsFirst
boolWhether nulls should come first (true) or last (false)
Properties
ColumnIndex
The index of the column to sort by
public int ColumnIndex { get; }
Property Value
IsDescending
Whether to sort in descending order (true) or ascending order (false)
public bool IsDescending { get; }
Property Value
NullsFirst
Whether nulls should come first (true) or last (false)
public bool NullsFirst { get; }
Property Value
Methods
Equals(SortingColumn)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(WriterProperties.SortingColumn other)
Parameters
other
WriterProperties.SortingColumnAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(SortingColumn, SortingColumn)
public static bool operator ==(WriterProperties.SortingColumn left, WriterProperties.SortingColumn right)
Parameters
Returns
operator !=(SortingColumn, SortingColumn)
public static bool operator !=(WriterProperties.SortingColumn left, WriterProperties.SortingColumn right)