|
C++ YT Wrapper
C++ library for working with YT clusters
|
Interface of client capable of managing operations. More...
#include <operation.h>
Public Member Functions | |
| IOperationPtr | Map (const TMapOperationSpec &spec, ::TIntrusivePtr< IMapperBase > mapper, const TOperationOptions &options=TOperationOptions()) |
| Run Map operation. | |
| IOperationPtr | Map (::TIntrusivePtr< IMapperBase > mapper, const TOneOrMany< TStructuredTablePath > &input, const TOneOrMany< TStructuredTablePath > &output, const TMapOperationSpec &spec=TMapOperationSpec(), const TOperationOptions &options=TOperationOptions()) |
| Run Map operation. | |
| virtual IOperationPtr | RawMap (const TRawMapOperationSpec &spec, ::TIntrusivePtr< IRawJob > rawJob, const TOperationOptions &options=TOperationOptions())=0 |
| Run raw Map operation. | |
| IOperationPtr | Reduce (const TReduceOperationSpec &spec, ::TIntrusivePtr< IReducerBase > reducer, const TOperationOptions &options=TOperationOptions()) |
| Run Reduce operation. | |
| IOperationPtr | Reduce (::TIntrusivePtr< IReducerBase > reducer, const TOneOrMany< TStructuredTablePath > &input, const TOneOrMany< TStructuredTablePath > &output, const TSortColumns &reduceBy, const TReduceOperationSpec &spec=TReduceOperationSpec(), const TOperationOptions &options=TOperationOptions()) |
| Run Reduce operation. | |
| virtual IOperationPtr | RawReduce (const TRawReduceOperationSpec &spec, ::TIntrusivePtr< IRawJob > rawJob, const TOperationOptions &options=TOperationOptions())=0 |
| Run raw Reduce operation. | |
| IOperationPtr | MapReduce (const TMapReduceOperationSpec &spec, ::TIntrusivePtr< IMapperBase > mapper, ::TIntrusivePtr< IReducerBase > reducer, const TOperationOptions &options=TOperationOptions()) |
| Run JoinReduce operation. | |
| IOperationPtr | MapReduce (const TMapReduceOperationSpec &spec, ::TIntrusivePtr< IMapperBase > mapper, ::TIntrusivePtr< IReducerBase > reduceCombiner, ::TIntrusivePtr< IReducerBase > reducer, const TOperationOptions &options=TOperationOptions()) |
| Run MapReduce operation. | |
| IOperationPtr | MapReduce (::TIntrusivePtr< IMapperBase > mapper, ::TIntrusivePtr< IReducerBase > reducer, const TOneOrMany< TStructuredTablePath > &input, const TOneOrMany< TStructuredTablePath > &output, const TSortColumns &reduceBy, TMapReduceOperationSpec spec=TMapReduceOperationSpec(), const TOperationOptions &options=TOperationOptions()) |
| Run MapReduce operation. | |
| IOperationPtr | MapReduce (::TIntrusivePtr< IMapperBase > mapper, ::TIntrusivePtr< IReducerBase > reduceCombiner, ::TIntrusivePtr< IReducerBase > reducer, const TOneOrMany< TStructuredTablePath > &input, const TOneOrMany< TStructuredTablePath > &output, const TSortColumns &reduceBy, TMapReduceOperationSpec spec=TMapReduceOperationSpec(), const TOperationOptions &options=TOperationOptions()) |
| Run MapReduce operation. | |
| virtual IOperationPtr | RawMapReduce (const TRawMapReduceOperationSpec &spec, ::TIntrusivePtr< IRawJob > mapper, ::TIntrusivePtr< IRawJob > reduceCombiner, ::TIntrusivePtr< IRawJob > reducer, const TOperationOptions &options=TOperationOptions())=0 |
| Run raw MapReduce operation. | |
| virtual IOperationPtr | Sort (const TSortOperationSpec &spec, const TOperationOptions &options=TOperationOptions())=0 |
| Run Sort operation. | |
| IOperationPtr | Sort (const TOneOrMany< TRichYPath > &input, const TRichYPath &output, const TSortColumns &sortBy, const TSortOperationSpec &spec=TSortOperationSpec(), const TOperationOptions &options=TOperationOptions()) |
| Run Sort operation. | |
| virtual IOperationPtr | Merge (const TMergeOperationSpec &spec, const TOperationOptions &options=TOperationOptions())=0 |
| Run Merge operation. | |
| virtual IOperationPtr | Erase (const TEraseOperationSpec &spec, const TOperationOptions &options=TOperationOptions())=0 |
| Run Erase operation. | |
| virtual IOperationPtr | RemoteCopy (const TRemoteCopyOperationSpec &spec, const TOperationOptions &options=TOperationOptions())=0 |
| Run RemoteCopy operation. | |
| virtual IOperationPtr | RunVanilla (const TVanillaOperationSpec &spec, const TOperationOptions &options=TOperationOptions())=0 |
| Run Vanilla operation. | |
| virtual void | AbortOperation (const TOperationId &operationId)=0 |
| Abort operation. | |
| virtual void | CompleteOperation (const TOperationId &operationId)=0 |
| Complete operation. | |
| virtual void | WaitForOperation (const TOperationId &operationId)=0 |
| Wait for operation to finish. | |
| virtual EOperationBriefState | CheckOperation (const TOperationId &operationId)=0 |
| Check and return operation status. | |
| virtual IOperationPtr | AttachOperation (const TOperationId &operationId)=0 |
| Create an operation object given operation id. | |
Interface of client capable of managing operations.
|
pure virtual |
Abort operation.
|
pure virtual |
Create an operation object given operation id.
ref NYT::TErrorResponse if the operation doesn't exist.
|
pure virtual |
Check and return operation status.
|
pure virtual |
Complete operation.
|
pure virtual |
Run Erase operation.
| spec | Operation spec. |
| options | Optional parameters. |
| IOperationPtr NYT::IOperationClient::Map | ( | ::TIntrusivePtr< IMapperBase > | mapper, |
| const TOneOrMany< TStructuredTablePath > & | input, | ||
| const TOneOrMany< TStructuredTablePath > & | output, | ||
| const TMapOperationSpec & | spec = TMapOperationSpec(), | ||
| const TOperationOptions & | options = TOperationOptions() ) |
Run Map operation.
| mapper | Instance of a job to run. |
| input | Input table(s) |
| output | Output table(s) |
| spec | Operation spec. |
| options | Optional parameters. |
| IOperationPtr NYT::IOperationClient::Map | ( | const TMapOperationSpec & | spec, |
| ::TIntrusivePtr< IMapperBase > | mapper, | ||
| const TOperationOptions & | options = TOperationOptions() ) |
Run Map operation.
| spec | Operation spec. |
| mapper | Instance of a job to run. |
| options | Optional parameters. |
| IOperationPtr NYT::IOperationClient::MapReduce | ( | ::TIntrusivePtr< IMapperBase > | mapper, |
| ::TIntrusivePtr< IReducerBase > | reduceCombiner, | ||
| ::TIntrusivePtr< IReducerBase > | reducer, | ||
| const TOneOrMany< TStructuredTablePath > & | input, | ||
| const TOneOrMany< TStructuredTablePath > & | output, | ||
| const TSortColumns & | reduceBy, | ||
| TMapReduceOperationSpec | spec = TMapReduceOperationSpec(), | ||
| const TOperationOptions & | options = TOperationOptions() ) |
Run MapReduce operation.
| mapper | Instance of mapper to run (identity mapper if nullptr). |
| reduceCombiner | Instance of reduceCombiner to run (identity reduce combiner if nullptr). |
| reducer | Instance of reducer to run. |
| input | Input table(s) |
| output | Output table(s) |
| reduceBy | Columns to group rows by. |
| spec | Operation spec. |
| options | Optional parameters. |
| IOperationPtr NYT::IOperationClient::MapReduce | ( | ::TIntrusivePtr< IMapperBase > | mapper, |
| ::TIntrusivePtr< IReducerBase > | reducer, | ||
| const TOneOrMany< TStructuredTablePath > & | input, | ||
| const TOneOrMany< TStructuredTablePath > & | output, | ||
| const TSortColumns & | reduceBy, | ||
| TMapReduceOperationSpec | spec = TMapReduceOperationSpec(), | ||
| const TOperationOptions & | options = TOperationOptions() ) |
Run MapReduce operation.
| mapper | Instance of mapper to run (identity mapper if nullptr). |
| reducer | Instance of reducer to run. |
| input | Input table(s) |
| output | Output table(s) |
| reduceBy | Columns to group rows by. |
| spec | Operation spec. |
| options | Optional parameters. |
| IOperationPtr NYT::IOperationClient::MapReduce | ( | const TMapReduceOperationSpec & | spec, |
| ::TIntrusivePtr< IMapperBase > | mapper, | ||
| ::TIntrusivePtr< IReducerBase > | reduceCombiner, | ||
| ::TIntrusivePtr< IReducerBase > | reducer, | ||
| const TOperationOptions & | options = TOperationOptions() ) |
Run MapReduce operation.
| spec | Operation spec. |
| mapper | Instance of a map job to run (identity mapper if nullptr). |
| reducerCombiner | Instance of a reduce combiner to run (identity reduce combiner if nullptr). |
| reducer | Instance of a reduce job to run. |
| options | Optional parameters. |
| IOperationPtr NYT::IOperationClient::MapReduce | ( | const TMapReduceOperationSpec & | spec, |
| ::TIntrusivePtr< IMapperBase > | mapper, | ||
| ::TIntrusivePtr< IReducerBase > | reducer, | ||
| const TOperationOptions & | options = TOperationOptions() ) |
Run JoinReduce operation.
| spec | Operation spec. |
| reducer | Instance of a job to run. |
| options | Optional parameters. |
/**
Run raw JoinReduce operation.
| spec | Operation spec. |
| rawJob | Instance of a raw reducer to run. |
| options | Optional parameters. |
/**
Run MapReduce operation.
| spec | Operation spec. |
| mapper | Instance of a map job to run (identity mapper if nullptr). |
| reducer | Instance of a reduce job to run. |
| options | Optional parameters. |
|
pure virtual |
Run Merge operation.
| spec | Operation spec. |
| options | Optional parameters. |
|
pure virtual |
Run raw Map operation.
| spec | Operation spec. |
| rawJob | Instance of a raw mapper to run. |
| options | Optional parameters. |
|
pure virtual |
Run raw MapReduce operation.
| spec | Operation spec. |
| mapper | Instance of a raw mapper to run (identity mapper if nullptr). |
| mapper | Instance of a raw reduce combiner to run (identity reduce combiner if nullptr). |
| mapper | Instance of a raw reducer to run. |
| options | Optional parameters. |
|
pure virtual |
Run raw Reduce operation.
| spec | Operation spec. |
| rawJob | Instance of a raw reducer to run. |
| options | Optional parameters. |
| IOperationPtr NYT::IOperationClient::Reduce | ( | ::TIntrusivePtr< IReducerBase > | reducer, |
| const TOneOrMany< TStructuredTablePath > & | input, | ||
| const TOneOrMany< TStructuredTablePath > & | output, | ||
| const TSortColumns & | reduceBy, | ||
| const TReduceOperationSpec & | spec = TReduceOperationSpec(), | ||
| const TOperationOptions & | options = TOperationOptions() ) |
Run Reduce operation.
| reducer | Instance of a job to run. |
| input | Input table(s) |
| output | Output table(s) |
| reduceBy | Columns to group rows by. |
| spec | Operation spec. |
| options | Optional parameters. |
| IOperationPtr NYT::IOperationClient::Reduce | ( | const TReduceOperationSpec & | spec, |
| ::TIntrusivePtr< IReducerBase > | reducer, | ||
| const TOperationOptions & | options = TOperationOptions() ) |
Run Reduce operation.
| spec | Operation spec. |
| reducer | Instance of a job to run. |
| options | Optional parameters. |
|
pure virtual |
Run RemoteCopy operation.
| spec | Operation spec. |
| options | Optional parameters. |
|
pure virtual |
Run Vanilla operation.
| spec | Operation spec. |
| options | Optional parameters. |
| IOperationPtr NYT::IOperationClient::Sort | ( | const TOneOrMany< TRichYPath > & | input, |
| const TRichYPath & | output, | ||
| const TSortColumns & | sortBy, | ||
| const TSortOperationSpec & | spec = TSortOperationSpec(), | ||
| const TOperationOptions & | options = TOperationOptions() ) |
Run Sort operation.
| input | Input table(s). |
| output | Output table. |
| sortBy | Columns to sort input rows by. |
| spec | Operation spec. |
| options | Optional parameters. |
|
pure virtual |
Run Sort operation.
| spec | Operation spec. |
| options | Optional parameters. |