|
C++ YT Wrapper
C++ library for working with YT clusters
|
Interface for all user jobs. More...
#include <operation.h>
Public Types | |
| enum | EType { Mapper , Reducer , ReducerAggregator , RawJob , VanillaJob } |
| Type of job. | |
Public Member Functions | |
| virtual void | Save (IOutputStream &stream) const |
| Save job state to stream to be restored on cluster nodes. | |
| virtual void | Load (IInputStream &stream) |
| Restore job state from a stream. | |
| const TNode & | SecureVault () const |
| Get operation secure vault (specified in NYT::TOperationOptions::SecureVault) inside a job. | |
| i64 | GetOutputTableCount () const |
| Get number of output tables. | |
| virtual void | PrepareOperation (const IOperationPreparationContext &context, TJobOperationPreparer &preparer) const |
| Method allowing user to control some properties of input and output tables and formats. | |
Interface for all user jobs.
|
virtual |
Method allowing user to control some properties of input and output tables and formats.
User can override this method in their job class to:
If one has several similar tables, groups can be used. Groups are delimited by NYT::TJobOperationPreparer::BeginInputGroup / NYT::TJobOperationPreparer::TInputGroup::EndInputGroup and NYT::TJobOperationPreparer::BeginOutputGroup / NYT::TJobOperationPreparer::TOutputGroup::EndOutputGroup. Example: