Class representing YT data format.
More...
#include <format.h>
|
| static TFormat | YsonText () |
| | Create text YSON format.
|
| static TFormat | YsonBinary () |
| | Create binary YSON format.
|
| static TFormat | YaMRLenval () |
| | Create YaMR format.
|
| static TFormat | Protobuf (const TVector< const ::google::protobuf::Descriptor * > &descriptors, bool withDescriptors=false) |
| | Create protobuf format from protobuf message descriptors.
|
| static TFormat | Json () |
| | Create JSON format.
|
| static TFormat | Dsv () |
| | Create DSV (TSKV) format.
|
| template<typename T> |
| static TFormat | Protobuf (bool withDescriptors=false) |
| | Create protobuf format for the message specified in template parameter.
|
|
|
TNode | Config |
| | Format representation understandable by YT.
|
Class representing YT data format.
Normally the user does not need to use it. However, the class is handy for "raw" operations and table reading and writing, e.g. NYT::IOperationClient::RawMap and other raw operations, NYT::IIOClient::CreateRawReader and NYT::IIOClient::CreateRawWriter. Anyway, the static factory methods should be preferred to the constructor.
- See also
- YT doc.
◆ TFormat()
| NYT::TFormat::TFormat |
( |
const TNode & | config = TNode() | ) |
|
|
explicit |
◆ Dsv()
Create DSV (TSKV) format.
- See also
- the doc
◆ GetYamredDsvAttributes()
For YAMR format returns its attributes in structured way.
- Deprecated
◆ IsProtobuf()
| bool NYT::TFormat::IsProtobuf |
( |
| ) |
const |
Is the format protobuf?
- See also
- the doc
◆ IsTextYson()
| bool NYT::TFormat::IsTextYson |
( |
| ) |
const |
Is the format text YSON?
- See also
- the doc
◆ IsYamredDsv()
| bool NYT::TFormat::IsYamredDsv |
( |
| ) |
const |
◆ Json()
Create JSON format.
- See also
- the doc
◆ Protobuf() [1/2]
template<typename T>
| TFormat NYT::TFormat::Protobuf |
( |
bool | withDescriptors = false | ) |
|
|
inlinestatic |
Create protobuf format for the message specified in template parameter.
T must be inherited from Message.
- See also
- the doc.
◆ Protobuf() [2/2]
| TFormat NYT::TFormat::Protobuf |
( |
const TVector< const ::google::protobuf::Descriptor * > & | descriptors, |
|
|
bool | withDescriptors = false ) |
|
static |
Create protobuf format from protobuf message descriptors.
- See also
- the doc.
◆ YaMRLenval()
| TFormat NYT::TFormat::YaMRLenval |
( |
| ) |
|
|
static |
◆ YsonBinary()
| TFormat NYT::TFormat::YsonBinary |
( |
| ) |
|
|
static |
Create binary YSON format.
- See also
- the doc
◆ YsonText()
Create text YSON format.
- See also
- the doc
The documentation for this struct was generated from the following file: