iceberg-cpp
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
sort_field.h File Reference
#include <cstdint>
#include <memory>
#include <string>
#include <string_view>
#include "iceberg/iceberg_export.h"
#include "iceberg/result.h"
#include "iceberg/type_fwd.h"
#include "iceberg/util/formattable.h"

Go to the source code of this file.

Classes

class  iceberg::SortField
 a field with its transform. More...
 

Enumerations

enum class  iceberg::SortDirection { kAscending , kDescending }
 Sort direction in a partition, either ascending or descending. More...
 
enum class  iceberg::NullOrder { kFirst , kLast }
 

Functions

ICEBERG_EXPORT constexpr std::string_view iceberg::ToString (SortDirection direction)
 Get the relative sort direction name.
 
ICEBERG_EXPORT constexpr Result< SortDirectioniceberg::SortDirectionFromString (std::string_view str)
 Get the relative sort direction from name.
 
ICEBERG_EXPORT constexpr std::string_view iceberg::ToString (NullOrder null_order)
 Get the relative null order name.
 
ICEBERG_EXPORT constexpr Result< NullOrdericeberg::NullOrderFromString (std::string_view str)
 Get the relative null order from name.
 

Detailed Description

A sort field in a sort order

Enumeration Type Documentation

◆ NullOrder

enum class iceberg::NullOrder
strong
Enumerator
kFirst 

Nulls are sorted first.

kLast 

Nulls are sorted last.

◆ SortDirection

enum class iceberg::SortDirection
strong

Sort direction in a partition, either ascending or descending.

Enumerator
kAscending 

Ascending.

kDescending 

Descending.