rpc_parameters_serialization.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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(
  80. const TOperationId& operationId,
  81. const TGetOperationOptions& options);
  82. TNode SerializeParamsForAbortOperation(
  83. const TOperationId& operationId);
  84. TNode SerializeParamsForCompleteOperation(
  85. const TOperationId& operationId);
  86. TNode SerializeParamsForSuspendOperation(
  87. const TOperationId& operationId,
  88. const TSuspendOperationOptions& options);
  89. TNode SerializeParamsForResumeOperation(
  90. const TOperationId& operationId,
  91. const TResumeOperationOptions& options);
  92. TNode SerializeParamsForListOperations(
  93. const TListOperationsOptions& options);
  94. TNode SerializeParamsForUpdateOperationParameters(
  95. const TOperationId& operationId,
  96. const TUpdateOperationParametersOptions& options);
  97. TNode SerializeParamsForGetJob(
  98. const TOperationId& operationId,
  99. const TJobId& jobId,
  100. const TGetJobOptions& options);
  101. TNode SerializeParamsForListJobs(
  102. const TOperationId& operationId,
  103. const TListJobsOptions& options);
  104. TNode SerializeParametersForInsertRows(
  105. const TString& pathPrefix,
  106. const TYPath& path,
  107. const TInsertRowsOptions& options);
  108. TNode SerializeParametersForDeleteRows(
  109. const TString& pathPrefix,
  110. const TYPath& path,
  111. const TDeleteRowsOptions& options);
  112. TNode SerializeParametersForTrimRows(
  113. const TString& pathPrefix,
  114. const TYPath& path,
  115. const TTrimRowsOptions& options);
  116. TNode SerializeParamsForParseYPath(
  117. const TRichYPath& path);
  118. TNode SerializeParamsForEnableTableReplica(
  119. const TReplicaId& replicaId);
  120. TNode SerializeParamsForDisableTableReplica(
  121. const TReplicaId& replicaId);
  122. TNode SerializeParamsForAlterTableReplica(
  123. const TReplicaId& replicaId,
  124. const TAlterTableReplicaOptions& options);
  125. TNode SerializeParamsForFreezeTable(
  126. const TString& pathPrefix,
  127. const TYPath& path,
  128. const TFreezeTableOptions& options);
  129. TNode SerializeParamsForUnfreezeTable(
  130. const TString& pathPrefix,
  131. const TYPath& path,
  132. const TUnfreezeTableOptions& options);
  133. TNode SerializeParamsForAlterTable(
  134. const TTransactionId& transactionId,
  135. const TString& pathPrefix,
  136. const TYPath& path,
  137. const TAlterTableOptions& options);
  138. TNode SerializeParamsForGetTableColumnarStatistics(
  139. const TTransactionId& transactionId,
  140. const TVector<TRichYPath>& paths,
  141. const TGetTableColumnarStatisticsOptions& options);
  142. TNode SerializeParamsForGetTablePartitions(
  143. const TTransactionId& transactionId,
  144. const TVector<TRichYPath>& paths,
  145. const TGetTablePartitionsOptions& options);
  146. TNode SerializeParamsForGetFileFromCache(
  147. const TTransactionId& transactionId,
  148. const TString& md5Signature,
  149. const TYPath& cachePath,
  150. const TGetFileFromCacheOptions&);
  151. TNode SerializeParamsForPutFileToCache(
  152. const TTransactionId& transactionId,
  153. const TString& pathPrefix,
  154. const TYPath& filePath,
  155. const TString& md5Signature,
  156. const TYPath& cachePath,
  157. const TPutFileToCacheOptions& options);
  158. TNode SerializeParamsForSkyShareTable(
  159. const TString& serverName,
  160. const TString& pathPrefix,
  161. const std::vector<TYPath>& tablePaths,
  162. const TSkyShareTableOptions& options);
  163. TNode SerializeParamsForCheckPermission(
  164. const TString& user,
  165. EPermission permission,
  166. const TString& pathPrefix,
  167. const TYPath& path,
  168. const TCheckPermissionOptions& options);
  169. TNode SerializeParamsForGetTabletInfos(
  170. const TString& pathPrefix,
  171. const TYPath& path,
  172. const TVector<int>& tabletIndexes,
  173. const TGetTabletInfosOptions& options);
  174. TNode SerializeParamsForAbortTransaction(
  175. const TTransactionId& transactionId);
  176. TNode SerializeParamsForCommitTransaction(
  177. const TTransactionId& transactionId);
  178. TNode SerializeParamsForStartTransaction(
  179. const TTransactionId& parentTransactionId,
  180. TDuration txTimeout,
  181. const TStartTransactionOptions& options);
  182. ////////////////////////////////////////////////////////////////////
  183. } // namespace NYT::NDetail::NRawClient