|
C++ YT Wrapper
C++ library for working with YT clusters
|
Single column description. More...
#include <common.h>
Public Member Functions | |
| TColumnSchema () | |
| Construct empty column schemas. | |
| FLUENT_FIELD_ENCAPSULATED (TString, Name) | |
| TColumnSchema & | Type (EValueType type) & |
| Functions to work with type in old manner. | |
| TColumnSchema | Type (EValueType type) && |
| EValueType | Type () const |
| FLUENT_FIELD_OPTION_ENCAPSULATED (ESortOrder, SortOrder) | |
| Column sort order. | |
| FLUENT_FIELD_OPTION_ENCAPSULATED (TString, Lock) | |
| Lock group name. | |
| FLUENT_FIELD_OPTION_ENCAPSULATED (TString, Expression) | |
| Expression defining column value. | |
| FLUENT_FIELD_OPTION_ENCAPSULATED (TString, Aggregate) | |
| Aggregating function name. | |
| FLUENT_FIELD_OPTION_ENCAPSULATED (TString, Group) | |
| Storage group name. | |
| FLUENT_FIELD_OPTION_ENCAPSULATED (TString, StableName) | |
| bool | Required () const |
| Column requiredness. | |
| TColumnSchema (const TColumnSchema &)=default | |
| Copy and move constructors are default. | |
| TColumnSchema & | operator= (const TColumnSchema &)=default |
| TColumnSchema & | Type (const NTi::TTypePtr &type) & |
| Set and get column type. | |
| TColumnSchema | Type (const NTi::TTypePtr &type) && |
| TColumnSchema & | TypeV3 (const NTi::TTypePtr &type) & |
| TColumnSchema | TypeV3 (const NTi::TTypePtr &type) && |
| NTi::TTypePtr | TypeV3 () const |
| TColumnSchema & | Type (EValueType type, bool required) & |
| Set type in old-style manner. | |
| TColumnSchema | Type (EValueType type, bool required) && |
| const TMaybe< TNode > & | RawTypeV3 () const |
| Raw yson representation of column type. | |
| TColumnSchema & | RawTypeV3 (TNode rawTypeV3) & |
| TColumnSchema | RawTypeV3 (TNode rawTypeV3) && |
Friends | |
| void | Deserialize (TColumnSchema &columnSchema, const TNode &node) |
Single column description.
Each field describing column has setter and getter.
Example reading field:
Example setting field:
https://ytsaurus.tech/docs/en/user-guide/storage/static-schema
| NYT::TColumnSchema::TColumnSchema | ( | ) |
Construct empty column schemas.
| NYT::TColumnSchema::FLUENT_FIELD_OPTION_ENCAPSULATED | ( | TString | , |
| Group | ) |
Storage group name.
https://ytsaurus.tech/docs/en/user-guide/storage/static-schema
| NYT::TColumnSchema::FLUENT_FIELD_OPTION_ENCAPSULATED | ( | TString | , |
| Lock | ) |
| const TMaybe< TNode > & NYT::TColumnSchema::RawTypeV3 | ( | ) | const |
Raw yson representation of column type.
| bool NYT::TColumnSchema::Required | ( | ) | const |
Column requiredness.
Required columns doesn't accept NULL values. Usually if column is required it means that it has Optional<...> type
| TColumnSchema & NYT::TColumnSchema::Type | ( | EValueType | type | ) | & |
Functions to work with type in old manner.