rpc_parameters_serialization.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. #pragma once
  2. #include <yt/cpp/mapreduce/interface/fwd.h>
  3. #include <yt/cpp/mapreduce/interface/client_method_options.h>
  4. namespace NYT::NDetail::NRawClient {
  5. ////////////////////////////////////////////////////////////////////////////////
  6. TNode SerializeParamsForCreate(
  7. const TTransactionId& transactionId,
  8. const TString& pathPrefix,
  9. const TYPath& path,
  10. ENodeType type,
  11. const TCreateOptions& options);
  12. TNode SerializeParamsForRemove(
  13. const TTransactionId& transactionId,
  14. const TString& pathPrefix,
  15. const TYPath& path,
  16. const TRemoveOptions& options);
  17. TNode SerializeParamsForExists(
  18. const TTransactionId& transactionId,
  19. const TString& pathPrefix,
  20. const TYPath& path,
  21. const TExistsOptions& options);
  22. TNode SerializeParamsForGet(
  23. const TTransactionId& transactionId,
  24. const TString& pathPrefix,
  25. const TYPath& path,
  26. const TGetOptions& options);
  27. TNode SerializeParamsForSet(
  28. const TTransactionId& transactionId,
  29. const TString& pathPrefix,
  30. const TYPath& path,
  31. const TSetOptions& options);
  32. TNode SerializeParamsForMultisetAttributes(
  33. const TTransactionId& transactionId,
  34. const TString& pathPrefix,
  35. const TYPath& path,
  36. const TMultisetAttributesOptions& options);
  37. TNode SerializeParamsForList(
  38. const TTransactionId& transactionId,
  39. const TString& pathPrefix,
  40. const TYPath& path,
  41. const TListOptions& options);
  42. TNode SerializeParamsForCopy(
  43. const TTransactionId& transactionId,
  44. const TString& pathPrefix,
  45. const TYPath& sourcePath,
  46. const TYPath& destinationPath,
  47. const TCopyOptions& options);
  48. TNode SerializeParamsForMove(
  49. const TTransactionId& transactionId,
  50. const TString& pathPrefix,
  51. const TYPath& sourcePath,
  52. const TYPath& destinationPath,
  53. const TMoveOptions& options);
  54. TNode SerializeParamsForLink(
  55. const TTransactionId& transactionId,
  56. const TString& pathPrefix,
  57. const TYPath& targetPath,
  58. const TYPath& linkPath,
  59. const TLinkOptions& options);
  60. TNode SerializeParamsForLock(
  61. const TTransactionId& transactionId,
  62. const TString& pathPrefix,
  63. const TYPath& path,
  64. ELockMode mode,
  65. const TLockOptions& options);
  66. TNode SerializeParamsForUnlock(
  67. const TTransactionId& transactionId,
  68. const TString& pathPrefix,
  69. const TYPath& path,
  70. const TUnlockOptions& options);
  71. TNode SerializeParamsForConcatenate(
  72. const TTransactionId& transactionId,
  73. const TString& pathPrefix,
  74. const TVector<TRichYPath>& sourcePaths,
  75. const TRichYPath& destinationPath,
  76. const TConcatenateOptions& options);
  77. TNode SerializeParamsForPingTx(
  78. const TTransactionId& transactionId);
  79. TNode SerializeParamsForGetOperation(const std::variant<TString, TOperationId>& aliasOrOperationId, const TGetOperationOptions& options);
  80. TNode SerializeParamsForAbortOperation(
  81. const TOperationId& operationId);
  82. TNode SerializeParamsForCompleteOperation(
  83. const TOperationId& operationId);
  84. TNode SerializeParamsForSuspendOperation(
  85. const TOperationId& operationId,
  86. const TSuspendOperationOptions& options);
  87. TNode SerializeParamsForResumeOperation(
  88. const TOperationId& operationId,
  89. const TResumeOperationOptions& options);
  90. TNode SerializeParamsForListOperations(
  91. const TListOperationsOptions& options);
  92. TNode SerializeParamsForUpdateOperationParameters(
  93. const TOperationId& operationId,
  94. const TUpdateOperationParametersOptions& options);
  95. TNode SerializeParamsForGetJob(
  96. const TOperationId& operationId,
  97. const TJobId& jobId,
  98. const TGetJobOptions& options);
  99. TNode SerializeParamsForListJobs(
  100. const TOperationId& operationId,
  101. const TListJobsOptions& options);
  102. TNode SerializeParametersForInsertRows(
  103. const TString& pathPrefix,
  104. const TYPath& path,
  105. const TInsertRowsOptions& options);
  106. TNode SerializeParametersForDeleteRows(
  107. const TString& pathPrefix,
  108. const TYPath& path,
  109. const TDeleteRowsOptions& options);
  110. TNode SerializeParametersForTrimRows(
  111. const TString& pathPrefix,
  112. const TYPath& path,
  113. const TTrimRowsOptions& options);
  114. TNode SerializeParamsForParseYPath(
  115. const TRichYPath& path);
  116. TNode SerializeParamsForEnableTableReplica(
  117. const TReplicaId& replicaId);
  118. TNode SerializeParamsForDisableTableReplica(
  119. const TReplicaId& replicaId);
  120. TNode SerializeParamsForAlterTableReplica(
  121. const TReplicaId& replicaId,
  122. const TAlterTableReplicaOptions& options);
  123. TNode SerializeParamsForFreezeTable(
  124. const TString& pathPrefix,
  125. const TYPath& path,
  126. const TFreezeTableOptions& options);
  127. TNode SerializeParamsForUnfreezeTable(
  128. const TString& pathPrefix,
  129. const TYPath& path,
  130. const TUnfreezeTableOptions& options);
  131. TNode SerializeParamsForAlterTable(
  132. const TTransactionId& transactionId,
  133. const TString& pathPrefix,
  134. const TYPath& path,
  135. const TAlterTableOptions& options);
  136. TNode SerializeParamsForGetTableColumnarStatistics(
  137. const TTransactionId& transactionId,
  138. const TVector<TRichYPath>& paths,
  139. const TGetTableColumnarStatisticsOptions& options);
  140. TNode SerializeParamsForGetTablePartitions(
  141. const TTransactionId& transactionId,
  142. const TVector<TRichYPath>& paths,
  143. const TGetTablePartitionsOptions& options);
  144. TNode SerializeParamsForGetFileFromCache(
  145. const TTransactionId& transactionId,
  146. const TString& md5Signature,
  147. const TYPath& cachePath,
  148. const TGetFileFromCacheOptions&);
  149. TNode SerializeParamsForPutFileToCache(
  150. const TTransactionId& transactionId,
  151. const TString& pathPrefix,
  152. const TYPath& filePath,
  153. const TString& md5Signature,
  154. const TYPath& cachePath,
  155. const TPutFileToCacheOptions& options);
  156. TNode SerializeParamsForSkyShareTable(
  157. const TString& serverName,
  158. const TString& pathPrefix,
  159. const std::vector<TYPath>& tablePaths,
  160. const TSkyShareTableOptions& options);
  161. TNode SerializeParamsForCheckPermission(
  162. const TString& user,
  163. EPermission permission,
  164. const TString& pathPrefix,
  165. const TYPath& path,
  166. const TCheckPermissionOptions& options);
  167. TNode SerializeParamsForGetTabletInfos(
  168. const TString& pathPrefix,
  169. const TYPath& path,
  170. const TVector<int>& tabletIndexes,
  171. const TGetTabletInfosOptions& options);
  172. TNode SerializeParamsForAbortTransaction(
  173. const TTransactionId& transactionId);
  174. TNode SerializeParamsForCommitTransaction(
  175. const TTransactionId& transactionId);
  176. TNode SerializeParamsForStartTransaction(
  177. const TTransactionId& parentTransactionId,
  178. TDuration txTimeout,
  179. const TStartTransactionOptions& options);
  180. ////////////////////////////////////////////////////////////////////////////////
  181. } // namespace NYT::NDetail::NRawClient