|
C++ YT Wrapper
C++ library for working with YT clusters
|
Description of table schema. More...
#include <common.h>
Public Member Functions | |
| FLUENT_VECTOR_FIELD_ENCAPSULATED (TColumnSchema, Column) | |
| Column schema. | |
| FLUENT_FIELD_DEFAULT_ENCAPSULATED (bool, Strict, true) | |
| Strictness of the schema. | |
| FLUENT_FIELD_DEFAULT_ENCAPSULATED (bool, UniqueKeys, false) | |
| Whether keys are unique. | |
| FLUENT_VECTOR_FIELD_ENCAPSULATED (TDeletedColumnSchema, DeletedColumn) | |
| Deleted column schema. | |
| TVector< TColumnSchema > & | MutableColumns () |
| Get modifiable column list. | |
| bool | Empty () const |
| Check if schema has any described column. | |
| TTableSchema & | AddColumn (const TString &name, const NTi::TTypePtr &type, ESortOrder sortOrder) & |
| Add column. | |
| TTableSchema | AddColumn (const TString &name, const NTi::TTypePtr &type, ESortOrder sortOrder) && |
| Add column. | |
| TTableSchema & | AddColumn (const TString &name, const NTi::TTypePtr &type) & |
| Add column. | |
| TTableSchema | AddColumn (const TString &name, const NTi::TTypePtr &type) && |
| Add column. | |
| TTableSchema & | AddColumn (const TString &name, EValueType type, ESortOrder sortOrder) & |
| Add optional column of specified type. | |
| TTableSchema | AddColumn (const TString &name, EValueType type, ESortOrder sortOrder) && |
| Add optional column of specified type. | |
| TTableSchema & | AddColumn (const TString &name, EValueType type) & |
| Add optional column of specified type. | |
| TTableSchema | AddColumn (const TString &name, EValueType type) && |
| Add optional column of specified type. | |
| TTableSchema & | SortBy (const TSortColumns &columns) & |
| Make table schema sorted by specified columns. | |
| TTableSchema | SortBy (const TSortColumns &columns) && |
| Make table schema sorted by specified columns. | |
| TNode | ToNode () const |
| Get yson description of table schema. | |
Static Public Member Functions | |
| static NYT::TTableSchema | FromNode (const TNode &node) |
| Parse schema from yson node. | |
Friends | |
| void | Deserialize (TTableSchema &tableSchema, const TNode &node) |
Description of table schema.
| TTableSchema & NYT::TTableSchema::AddColumn | ( | const TString & | name, |
| const NTi::TTypePtr & | type ) & |
Add column.
| TTableSchema NYT::TTableSchema::AddColumn | ( | const TString & | name, |
| const NTi::TTypePtr & | type ) && |
Add column.
| TTableSchema NYT::TTableSchema::AddColumn | ( | const TString & | name, |
| const NTi::TTypePtr & | type, | ||
| ESortOrder | sortOrder ) && |
Add column.
| TTableSchema & NYT::TTableSchema::AddColumn | ( | const TString & | name, |
| EValueType | type ) & |
Add optional column of specified type.
| TTableSchema NYT::TTableSchema::AddColumn | ( | const TString & | name, |
| EValueType | type ) && |
Add optional column of specified type.
| TTableSchema NYT::TTableSchema::AddColumn | ( | const TString & | name, |
| EValueType | type, | ||
| ESortOrder | sortOrder ) && |
Add optional column of specified type.
| NYT::TTableSchema::FLUENT_FIELD_DEFAULT_ENCAPSULATED | ( | bool | , |
| Strict | , | ||
| true | ) |
Strictness of the schema.
Strict schemas are not allowed to have columns not described in schema. Nonstrict schemas are allowed to have such columns, all such missing columns are assumed to have type any (or optional<yson> in type_v3 terminology).
| NYT::TTableSchema::FLUENT_FIELD_DEFAULT_ENCAPSULATED | ( | bool | , |
| UniqueKeys | , | ||
| false | ) |
Whether keys are unique.
This flag can be set only for schemas that have sorted columns. If flag is set table cannot have multiple rows with same key.
| TTableSchema & NYT::TTableSchema::SortBy | ( | const TSortColumns & | columns | ) | & |
Make table schema sorted by specified columns.
Resets old key columns if any
| TTableSchema NYT::TTableSchema::SortBy | ( | const TSortColumns & | columns | ) | && |
Make table schema sorted by specified columns.
Resets old key columns if any