C++ YT Wrapper
C++ library for working with YT clusters
Loading...
Searching...
No Matches
client_method_options.h
Go to the documentation of this file.
1#pragma once
2
7
8#include "common.h"
9#include "config.h"
10#include "format.h"
11#include "public.h"
12#include "retry_policy.h"
13
14#include <util/datetime/base.h>
15
16namespace NYT {
17
19
21enum ENodeType : int
22{
23 NT_STRING = 0 /* "string_node" */,
24 NT_INT64 = 1 /* "int64_node" */,
25 NT_UINT64 = 2 /* "uint64_node" */,
26 NT_DOUBLE = 3 /* "double_node" */,
27 NT_BOOLEAN = 4 /* "boolean_node" */,
28 NT_MAP = 5 /* "map_node" */,
29 NT_LIST = 6 /* DEPRECATED */,
30 NT_FILE = 7 /* "file" */,
31 NT_TABLE = 8 /* "table" */,
32 NT_DOCUMENT = 9 /* "document" */,
33 NT_REPLICATED_TABLE = 10 /* "replicated_table" */,
34 NT_TABLE_REPLICA = 11 /* "table_replica" */,
35 NT_USER = 12 /* "user" */,
36 NT_SCHEDULER_POOL = 13 /* "scheduler_pool" */,
37 NT_LINK = 14 /* "link" */,
38 NT_GROUP = 15 /* "group" */,
39 NT_PORTAL = 16 /* "portal_entrance" */,
40 NT_CHAOS_TABLE_REPLICA = 17 /* "chaos_table_replica" */,
41 NT_TABLE_COLLOCATION = 18 /* "table_collocation" */,
42};
43
48enum class EComplexTypeMode : int
49{
50 Named /* "named" */,
51 Positional /* "positional" */,
52};
53
55template <typename TDerived>
57{
59 using TSelf = TDerived;
61
63 FLUENT_FIELD_DEFAULT(bool, SuppressAccessTracking, false);
64
66 FLUENT_FIELD_DEFAULT(bool, SuppressModificationTracking, false);
67};
68
74{
76 using TSelf = TPrerequisiteRevision;
78
80 FLUENT_FIELD_OPTION(TYPath, Path);
81
83 FLUENT_FIELD_OPTION(ui64, Revision);
84};
85
87template <typename TDerived>
89{
91 using TSelf = TDerived;
93
95 FLUENT_VECTOR_FIELD(TTransactionId, PrerequisiteTransactionId);
96};
97
99template <typename TDerived>
101{
103 using TSelf = TDerived;
105
108};
109
114template <typename TDerived>
116 : public TPrerequisiteRevisionsOptions<TDerived>
117 , public TPrerequisiteTransactionsOptions<TDerived>
118{ };
119
125 : public TPrerequisiteOptions<TCreateOptions>
126{
128 using TSelf = TCreateOptions;
130
132 FLUENT_FIELD_DEFAULT(bool, Recursive, false);
133
139 FLUENT_FIELD_DEFAULT(bool, IgnoreExisting, false);
140
145 FLUENT_FIELD_DEFAULT(bool, IgnoreTypeMismatch, false);
146
151 FLUENT_FIELD_DEFAULT(bool, Force, false);
152
154 FLUENT_FIELD_OPTION(TNode, Attributes);
155};
156
162 : public TPrerequisiteOptions<TRemoveOptions>
163{
165 using TSelf = TRemoveOptions;
167
172 FLUENT_FIELD_DEFAULT(bool, Recursive, false);
173
175 FLUENT_FIELD_DEFAULT(bool, Force, false);
176};
177
179template <typename TDerived>
181{
183 using TSelf = TDerived;
185
187 FLUENT_FIELD_OPTION(EMasterReadKind, ReadFrom);
188};
189
195 : public TMasterReadOptions<TExistsOptions>
196 , public TSuppressableAccessTrackingOptions<TExistsOptions>
197 , public TPrerequisiteOptions<TExistsOptions>
198{ };
199
205 : public TMasterReadOptions<TGetOptions>
206 , public TSuppressableAccessTrackingOptions<TGetOptions>
207 , public TPrerequisiteOptions<TGetOptions>
208{
210 FLUENT_FIELD_OPTION(TAttributeFilter, AttributeFilter);
211
213 FLUENT_FIELD_OPTION(i64, MaxSize);
214};
215
221 : public TSuppressableAccessTrackingOptions<TSetOptions>
222 , public TPrerequisiteOptions<TSetOptions>
223{
225 using TSelf = TSetOptions;
227
229 FLUENT_FIELD_DEFAULT(bool, Recursive, false);
230
232 FLUENT_FIELD_OPTION(bool, Force);
233};
234
240 : public TSuppressableAccessTrackingOptions<TMultisetAttributesOptions>
241 , public TPrerequisiteOptions<TMultisetAttributesOptions>
242{
244 using TSelf = TMultisetAttributesOptions;
246
247 FLUENT_FIELD_OPTION(bool, Force);
248};
249
255 : public TMasterReadOptions<TListOptions>
256 , public TSuppressableAccessTrackingOptions<TListOptions>
257 , public TPrerequisiteOptions<TListOptions>
258{
260 using TSelf = TListOptions;
262
264 FLUENT_FIELD_OPTION(TAttributeFilter, AttributeFilter);
265
267 FLUENT_FIELD_OPTION(i64, MaxSize);
268};
269
275 : public TPrerequisiteOptions<TCopyOptions>
276{
278 using TSelf = TCopyOptions;
280
282 FLUENT_FIELD_DEFAULT(bool, Recursive, false);
283
285 FLUENT_FIELD_DEFAULT(bool, Force, false);
286
288 FLUENT_FIELD_DEFAULT(bool, PreserveAccount, false);
289
291 FLUENT_FIELD_OPTION(bool, PreserveExpirationTime);
292};
293
299 : public TPrerequisiteOptions<TMoveOptions>
300{
302 using TSelf = TMoveOptions;
304
306 FLUENT_FIELD_DEFAULT(bool, Recursive, false);
307
309 FLUENT_FIELD_DEFAULT(bool, Force, false);
310
312 FLUENT_FIELD_DEFAULT(bool, PreserveAccount, false);
313
315 FLUENT_FIELD_OPTION(bool, PreserveExpirationTime);
316};
317
323 : public TPrerequisiteOptions<TLinkOptions>
324{
326 using TSelf = TLinkOptions;
328
330 FLUENT_FIELD_DEFAULT(bool, Recursive, false);
331
333 FLUENT_FIELD_DEFAULT(bool, IgnoreExisting, false);
334
336 FLUENT_FIELD_DEFAULT(bool, Force, false);
337
339 FLUENT_FIELD_OPTION(TNode, Attributes);
340};
341
347{
349 using TSelf = TConcatenateOptions;
351
353 FLUENT_FIELD_OPTION(bool, Append);
354
355 // Maximum number of items to process in single concat request.
356 //
357 // If number of items provided is greater then this parameter
358 // client might split concatenate to several requests.
359 FLUENT_FIELD_DEFAULT(int, MaxBatchSize, 20);
360};
361
367 : public TSuppressableAccessTrackingOptions<TBlobTableReaderOptions>
368{
370 using TSelf = TBlobTableReaderOptions;
372
374 FLUENT_FIELD_OPTION(TString, PartIndexColumnName);
375
377 FLUENT_FIELD_OPTION(TString, DataColumnName);
378
384 FLUENT_FIELD_DEFAULT(i64, PartSize, 4 * 1024 * 1024);
385
387 FLUENT_FIELD_DEFAULT(i64, StartPartIndex, 0);
388
390 FLUENT_FIELD_DEFAULT(i64, Offset, 0);
391};
392
399{
401 using TSelf = TResourceLimits;
403
405 FLUENT_FIELD_OPTION(i64, UserSlots);
406
408 FLUENT_FIELD_OPTION(double, Cpu);
409
411 FLUENT_FIELD_OPTION(i64, Network);
412
414 FLUENT_FIELD_OPTION(i64, Memory);
415};
416
422{
424 using TSelf = TSchedulingOptions;
426
431 FLUENT_FIELD_OPTION(TString, Pool);
432
434 FLUENT_FIELD_OPTION(double, Weight);
435
437 FLUENT_FIELD_OPTION(TResourceLimits, ResourceLimits);
438};
439
444struct TSchedulingOptionsPerPoolTree
445{
447 using TSelf = TSchedulingOptionsPerPoolTree;
449
450 TSchedulingOptionsPerPoolTree(const THashMap<TString, TSchedulingOptions>& options = {})
451 : Options_(options)
452 { }
453
455 TSelf& Add(TStringBuf poolTreeName, const TSchedulingOptions& schedulingOptions)
456 {
457 Y_ENSURE(Options_.emplace(poolTreeName, schedulingOptions).second);
458 return *this;
459 }
460
461 THashMap<TString, TSchedulingOptions> Options_;
462};
463
469{
471 using TSelf = TSuspendOperationOptions;
473
478 FLUENT_FIELD_OPTION(bool, AbortRunningJobs);
479
483 FLUENT_FIELD_OPTION(std::optional<TString>, Reason);
484};
485
493{
495 using TSelf = TResumeOperationOptions;
497};
498
504{
508
510 FLUENT_VECTOR_FIELD(TString, Owner);
511
513 FLUENT_FIELD_OPTION(TString, Pool);
514
516 FLUENT_FIELD_OPTION(double, Weight);
517
520};
521
529template <class TDerived>
531{
533 using TSelf = TDerived;
535
549 FLUENT_FIELD_OPTION(TNode, Config);
550
562 FLUENT_FIELD_DEFAULT(bool, CreateTransaction, true);
563};
564
567 : public TIOOptions<TFileReaderOptions>
568 , public TSuppressableAccessTrackingOptions<TFileReaderOptions>
569{
574 FLUENT_FIELD_DEFAULT(i64, Offset, 0);
575
580 FLUENT_FIELD_OPTION(i64, Length);
581};
582
585{
587 using TSelf = TFilePartitionReaderOptions;
589
591 FLUENT_FIELD_OPTION(TNode, Config);
592};
593
596{
598 using TSelf = TWriterOptions;
600
606 FLUENT_FIELD_OPTION(bool, EnableEarlyFinish);
607
609 FLUENT_FIELD_OPTION(ui64, UploadReplicationFactor);
610
615 FLUENT_FIELD_OPTION(ui64, MinUploadReplicationFactor);
616
621 FLUENT_FIELD_OPTION(ui64, DesiredChunkSize);
622
638 FLUENT_FIELD_OPTION(size_t, RetryBlockSize);
639};
640
646 : public TIOOptions<TFileWriterOptions>
647{
653 FLUENT_FIELD_OPTION(bool, ComputeMD5);
654
663 FLUENT_FIELD_DEFAULT(bool, AutoFinish, true);
664
669 FLUENT_FIELD_OPTION(TWriterOptions, WriterOptions);
670};
671
678
680{
681public:
683 using TSelf = TSkiffRowHints;
685
690 FLUENT_FIELD_OPTION(TNode, Attributes);
691
696 FLUENT_FIELD_OPTION(int, TableIndex);
697};
698
701{
702public:
704 using TSelf = TFormatHints;
706
717 FLUENT_FIELD_DEFAULT(bool, SkipNullValuesForTNode, false);
718
722 FLUENT_FIELD_OPTION(bool, EnableStringToAllConversion);
723
727 FLUENT_FIELD_OPTION(bool, EnableAllToStringConversion);
728
735 FLUENT_FIELD_OPTION(bool, EnableIntegralTypeConversion);
736
738 FLUENT_FIELD_OPTION(bool, EnableIntegralToDoubleConversion);
739
741 FLUENT_FIELD_OPTION(bool, EnableTypeConversion);
742
747 FLUENT_FIELD_OPTION(EComplexTypeMode, ComplexTypeMode);
748
751 FLUENT_FIELD_OPTION(TSkiffRowHints, SkiffRowHints);
752
757 void Merge(const TFormatHints& patch);
758};
759
762{
763public:
765 using TSelf = TControlAttributes;
767
770 FLUENT_FIELD_DEFAULT(bool, EnableRowIndex, true);
771
774 FLUENT_FIELD_DEFAULT(bool, EnableRangeIndex, true);
775};
776
779 : public TIOOptions<TTableReaderOptions>
780 , public TSuppressableAccessTrackingOptions<TTableReaderOptions>
781{
783 FLUENT_FIELD_DEFAULT(size_t, SizeLimit, 4 << 20);
784
789 FLUENT_FIELD_OPTION(TFormatHints, FormatHints);
790
795
799 FLUENT_FIELD_DEFAULT(bool, OmitInaccessibleRows, false);
800};
801
804 : public TSuppressableAccessTrackingOptions<TTablePartitionReaderOptions>
805{
807 using TSelf = TTablePartitionReaderOptions;
809
814 FLUENT_FIELD_OPTION(TFormatHints, FormatHints);
815
820};
821
824 : public TIOOptions<TTableWriterOptions>
825{
836 FLUENT_FIELD_DEFAULT(bool, SingleHttpRequest, false);
837
842 FLUENT_FIELD_DEFAULT(size_t, BufferSize, 64 << 20);
843
848 FLUENT_FIELD_OPTION(TFormatHints, FormatHints);
849
854 FLUENT_FIELD_OPTION(bool, InferSchema);
855
864 FLUENT_FIELD_DEFAULT(bool, AutoFinish, true);
865
870 FLUENT_FIELD_OPTION(TWriterOptions, WriterOptions);
871};
872
879
885 : public TPrerequisiteTransactionsOptions<TStartTransactionOptions>
886{
888 using TSelf = TStartTransactionOptions;
890
891 FLUENT_FIELD_DEFAULT(bool, PingAncestors, false);
892
898 FLUENT_FIELD_OPTION(TDuration, Timeout);
899
902 FLUENT_FIELD_OPTION(TInstant, Deadline);
903
909 FLUENT_FIELD_DEFAULT(bool, AutoPingable, true);
910
918 FLUENT_FIELD_OPTION(TString, Title);
919
924 FLUENT_FIELD_OPTION(TNode, Attributes);
925};
926
932{
934 using TSelf = TAttachTransactionOptions;
936
943 FLUENT_FIELD_DEFAULT(bool, AutoPingable, false);
944
951 FLUENT_FIELD_DEFAULT(bool, AbortOnTermination, false);
952};
953
959enum ELockMode : int
960{
962 LM_EXCLUSIVE /* "exclusive" */,
963
965 LM_SHARED /* "shared" */,
966
968 LM_SNAPSHOT /* "snapshot" */,
969};
970
977 : public TPrerequisiteOptions<TLockOptions>
978{
980 using TSelf = TLockOptions;
982
994 FLUENT_FIELD_DEFAULT(bool, Waitable, false);
995
1000 FLUENT_FIELD_OPTION(TString, AttributeKey);
1001
1006 FLUENT_FIELD_OPTION(TString, ChildKey);
1007};
1008
1016 : public TPrerequisiteOptions<TUnlockOptions>
1017{
1019 using TSelf = TUnlockOptions;
1021};
1022
1028 : public TPrerequisiteOptions<TCommitTransactionOptions>
1029{
1031 using TSelf = TCommitTransactionOptions;
1033};
1034
1036template <class TDerived>
1038{
1040 using TSelf = TDerived;
1042
1044 FLUENT_FIELD_OPTION(i64, FirstTabletIndex);
1045
1047 FLUENT_FIELD_OPTION(i64, LastTabletIndex);
1048};
1049
1055 : public TTabletOptions<TMountTableOptions>
1056{
1058 using TSelf = TMountTableOptions;
1060
1062 FLUENT_FIELD_OPTION(TTabletCellId, CellId);
1063
1065 FLUENT_FIELD_DEFAULT(bool, Freeze, false);
1066};
1067
1073 : public TTabletOptions<TUnmountTableOptions>
1074{
1076 using TSelf = TUnmountTableOptions;
1078
1080 FLUENT_FIELD_DEFAULT(bool, Force, false);
1081};
1082
1088 : public TTabletOptions<TRemountTableOptions>
1089{ };
1090
1096 : public TTabletOptions<TReshardTableOptions>
1097{ };
1098
1104 : public TTabletOptions<TFreezeTableOptions>
1105{ };
1106
1112 : public TTabletOptions<TUnfreezeTableOptions>
1113{ };
1114
1120{
1122 using TSelf = TAlterTableOptions;
1124
1126 FLUENT_FIELD_OPTION(TTableSchema, Schema);
1127
1129 FLUENT_FIELD_OPTION(bool, Dynamic);
1130
1135 FLUENT_FIELD_OPTION(TReplicaId, UpstreamReplicaId);
1136};
1137
1143{
1145 using TSelf = TLookupRowsOptions;
1147
1149 FLUENT_FIELD_OPTION(TDuration, Timeout);
1150
1152 FLUENT_FIELD_OPTION(TColumnNames, Columns);
1153
1160 FLUENT_FIELD_DEFAULT(bool, KeepMissingRows, false);
1161
1163 FLUENT_FIELD_DEFAULT(bool, Versioned, false);
1164};
1165
1171 : public TSuppressableAccessTrackingOptions<TSelectRowsOptions>
1172{
1174 using TSelf = TSelectRowsOptions;
1176
1178 FLUENT_FIELD_OPTION(TDuration, Timeout);
1179
1184 FLUENT_FIELD_OPTION(i64, InputRowLimit);
1185
1190 FLUENT_FIELD_OPTION(i64, OutputRowLimit);
1191
1196 FLUENT_FIELD_DEFAULT(ui64, RangeExpansionLimit, 1000);
1197
1202 FLUENT_FIELD_DEFAULT(bool, FailOnIncompleteResult, true);
1203
1205 FLUENT_FIELD_DEFAULT(bool, VerboseLogging, false);
1206
1207 FLUENT_FIELD_DEFAULT(bool, EnableCodeCache, true);
1208};
1209
1212{
1214 using TSelf = TCreateClientOptions;
1216
1220 FLUENT_FIELD_OPTION(TString, ImpersonationUser);
1221
1225 FLUENT_FIELD(TString, Token);
1226
1237 FLUENT_FIELD(TString, TokenPath);
1238
1247 NAuth::IServiceTicketAuthPtrWrapperPtr ServiceTicketAuth_ = nullptr;
1248 TSelf& ServiceTicketAuth(const NAuth::IServiceTicketAuthPtrWrapper& wrapper);
1250
1252 FLUENT_FIELD_DEFAULT(bool, TvmOnly, false);
1253
1257 FLUENT_FIELD_OPTION(bool, UseTLS);
1258
1260 FLUENT_FIELD_DEFAULT(bool, UseCoreHttpClient, false);
1261
1266 FLUENT_FIELD_DEFAULT(IRetryConfigProviderPtr, RetryConfigProvider, nullptr);
1267
1273 FLUENT_FIELD_DEFAULT(TConfigPtr, Config, nullptr);
1274
1276 FLUENT_FIELD_OPTION(TString, ProxyAddress);
1277
1280 FLUENT_FIELD_OPTION(TString, JobProxySocketPath);
1281};
1282
1288{
1290 using TSelf = TExecuteBatchOptions;
1292
1297 FLUENT_FIELD_OPTION(ui64, Concurrency);
1298
1305 FLUENT_FIELD_OPTION(ui64, BatchPartMaxSize);
1306};
1307
1313enum class EDurability
1314{
1316 Sync /* "sync" */,
1317
1319 Async /* "async" */,
1320};
1321
1327enum class EAtomicity
1328{
1330 None /* "none" */,
1331
1333 Full /* "full" */,
1334};
1335
1341{
1342 Sync /* "sync" */,
1343 Async /* "async" */,
1344};
1345
1353enum class ELockType
1354{
1356 Exclusive /* "exclusive" */,
1357
1361 SharedWrite /* "shared_write" */,
1362};
1363
1365template <typename TDerived>
1367{
1369 using TSelf = TDerived;
1371
1381 FLUENT_FIELD_OPTION(EAtomicity, Atomicity);
1382
1392 FLUENT_FIELD_OPTION(EDurability, Durability);
1393};
1394
1400 : public TTabletTransactionOptions<TInsertRowsOptions>
1401{
1407 FLUENT_FIELD_OPTION(bool, Update);
1408
1415 FLUENT_FIELD_OPTION(bool, Aggregate);
1416
1423 FLUENT_FIELD_OPTION(bool, RequireSyncReplica);
1424
1430 FLUENT_FIELD_OPTION(ELockType, LockType);
1431};
1432
1438 : public TTabletTransactionOptions<TDeleteRowsOptions>
1439{
1443 // Used for delete operation for tables without sync replica.
1445 // Default value is 'false'. So deletion into table without sync replicas fails.
1446 FLUENT_FIELD_OPTION(bool, RequireSyncReplica);
1447};
1448
1454 : public TTabletTransactionOptions<TTrimRowsOptions>
1455{ };
1456
1462{
1464 using TSelf = TAlterTableReplicaOptions;
1466
1471 FLUENT_FIELD_OPTION(bool, Enabled);
1472
1477 FLUENT_FIELD_OPTION(ETableReplicaMode, Mode);
1478};
1479
1487{
1489 using TSelf = TGetFileFromCacheOptions;
1491};
1492
1500{
1502 using TSelf = TPutFileToCacheOptions;
1504
1506 FLUENT_FIELD_OPTION(bool, PreserveExpirationTimeout);
1507};
1508
1513enum class EPermission : int
1514{
1516 Read /* "read" */,
1517
1519 Write /* "write" */,
1520
1522 Use /* "use" */,
1523
1525 Administer /* "administer" */,
1526
1528 Create /* "create" */,
1529
1531 Remove /* "remove" */,
1532
1534 Mount /* "mount" */,
1535
1537 Manage /* "manage" */,
1538
1540 FullRead /* "full_read" */,
1541};
1542
1544enum class ESecurityAction : int
1545{
1547 Allow /* "allow" */,
1548
1550 Deny /* "deny" */,
1551};
1552
1558{
1560 using TSelf = TCheckPermissionOptions;
1562
1564 FLUENT_VECTOR_FIELD(TString, Column);
1565};
1566
1572{
1574 FromNodes /* "from_nodes" */,
1575
1582 FromMaster /* "from_master" */,
1583
1585 Fallback /* "fallback" */,
1586};
1587
1604
1610{
1614 Unordered /* "unordered" */,
1615
1619 Ordered /* "ordered" */,
1620};
1621
1626{
1628 using TSelf = TGetTablePartitionsOptions;
1630
1636
1640 FLUENT_FIELD(i64, DataWeightPerPartition);
1641
1651 FLUENT_FIELD_OPTION(int, MaxPartitionCount);
1652
1657 FLUENT_FIELD_DEFAULT(bool, AdjustDataWeightPerPartition, true);
1658
1663 FLUENT_FIELD_DEFAULT(bool, EnableCookies, false);
1664
1669 FLUENT_FIELD_DEFAULT(bool, FetchCookieNodeDescriptors, false);
1670};
1671
1676 : public TSuppressableAccessTrackingOptions<TGetFilePartitionsOptions>
1677{
1679 using TSelf = TGetFilePartitionsOptions;
1681
1686 FLUENT_FIELD_DEFAULT(bool, FetchCookieNodeDescriptors, true);
1687};
1688
1696{
1698 using TSelf = TGetTabletInfosOptions;
1700};
1701
1704{
1706 using TSelf = TSkyShareTableOptions;
1708
1714 FLUENT_FIELD_OPTION(TColumnNames, KeyColumns);
1715
1717 FLUENT_FIELD_OPTION(bool, EnableFastbone);
1718
1720 FLUENT_FIELD_OPTION(TString, Pool);
1721};
1722
1728{
1730 using TSelf = TCheckClusterLivenessOptions;
1732
1734 FLUENT_FIELD_DEFAULT(bool, CheckCypressRoot, true);
1735
1737 FLUENT_FIELD_DEFAULT(bool, CheckSecondaryMasterCells, true);
1738
1740 FLUENT_FIELD_OPTION(TString, CheckTabletCellBundle);
1741};
1742
1744
1745} // namespace NYT
Options that control which control attributes (like row_index) are added to rows during read.
Definition client_method_options.h:762
TSelf & EnableRangeIndex(bool)
Whether to add "range_index" attribute to rows read.
TSelf & EnableRowIndex(bool)
Whether to add "row_index" attribute to rows read.
Options that control how C++ objects represent table rows when reading or writing a table.
Definition client_method_options.h:701
void Merge(const TFormatHints &patch)
Apply the patch to the fields.
TSelf & EnableStringToAllConversion(bool)
Whether to convert string to numeric and boolean types (e.g. "42u" -> 42u, "false" -> false) when wri...
TSelf & SkiffRowHints(TSkiffRowHints)
Allow to use any meta-information for creating skiff schema and parser for reading ISkiffRow.
TSelf & ComplexTypeMode(EComplexTypeMode)
Controls how complex types are represented in TNode or yson-strings.
TSelf & EnableAllToStringConversion(bool)
Whether to convert numeric and boolean types to string (e.g., 3.14 -> "3.14", true -> "true") when wr...
TSelf & SkipNullValuesForTNode(bool)
Whether to skip null values.
TSelf & EnableIntegralToDoubleConversion(bool)
Whether to convert uint64 and int64 to double (e.g. 42 -> 42.0) when writing to schemaful table.
TSelf & EnableIntegralTypeConversion(bool)
Whether to convert uint64 <-> int64 when writing to schemaful table.
TSelf & EnableTypeConversion(bool)
Shortcut for enabling all type conversions.
Definition client_method_options.h:680
TSelf & Attributes(TNode)
Library doesn't interpret it, only pass it to CreateSkiffParser<...>() and GetSkiffSchema<....
TSelf & TableIndex(int)
Index of table in parallel table reader.
Description of table schema.
Definition common.h:771
Main namespace of YT client.
Definition abortable_stream.h:7
EAtomicity
Atomicity mode.
Definition client_method_options.h:1328
@ None
Transactions are non atomic (might reduce latency of write requests).
Definition client_method_options.h:1330
@ Full
Transactions are atomic (default).
Definition client_method_options.h:1333
EPermission
Definition client_method_options.h:1514
@ Remove
Applies to: all objects.
Definition client_method_options.h:1531
@ Administer
Applies to: all objects.
Definition client_method_options.h:1525
@ Write
Applies to: all objects.
Definition client_method_options.h:1519
@ Manage
Applies to: operations.
Definition client_method_options.h:1537
@ Create
Applies to: schemas.
Definition client_method_options.h:1528
@ FullRead
Applies to: tables.
Definition client_method_options.h:1540
@ Read
Applies to: all objects.
Definition client_method_options.h:1516
@ Use
Applies to: accounts / pools.
Definition client_method_options.h:1522
@ Mount
Applies to: tables.
Definition client_method_options.h:1534
ESecurityAction
Whether permission is granted or denied.
Definition client_method_options.h:1545
@ Deny
Permission is denied.
Definition client_method_options.h:1550
@ Allow
Permission is granted.
Definition client_method_options.h:1547
EMasterReadKind
Enumeration for specifying how reading from master is performed.
Definition common.h:1416
EComplexTypeMode
Mode of composite type representation in yson.
Definition client_method_options.h:49
ETablePartitionMode
Table partitioning mode.
Definition client_method_options.h:1610
@ Ordered
The order of table ranges inside each partition obey the order of input tables and their chunk orders...
Definition client_method_options.h:1619
@ Unordered
Ignores the order of input tables and their chunk and sorting orders.
Definition client_method_options.h:1614
ELockType
Row lock type used by modify-rows commands.
Definition client_method_options.h:1354
@ Exclusive
Exclusive write lock on the row (default for modify-rows commands).
Definition client_method_options.h:1356
@ SharedWrite
Definition client_method_options.h:1361
EColumnarStatisticsFetcherMode
Columnar statistics fetching mode.
Definition client_method_options.h:1572
@ FromMaster
Fast mode for fetching lightweight columnar statistics.
Definition client_method_options.h:1582
@ Fallback
Use lightweight columnar statistics (FromMaster) if available otherwise switch to slow but precise mo...
Definition client_method_options.h:1585
@ FromNodes
Slow mode for fetching precise columnar statistics.
Definition client_method_options.h:1574
ENodeType
Type of the cypress node.
Definition client_method_options.h:22
ELockMode
Type of the lock.
Definition client_method_options.h:960
@ LM_SNAPSHOT
Snapshot lock.
Definition client_method_options.h:968
@ LM_SHARED
Shared lock.
Definition client_method_options.h:965
@ LM_EXCLUSIVE
Exclusive lock.
Definition client_method_options.h:962
ETableReplicaMode
Table replica mode.
Definition client_method_options.h:1341
EDurability
Durability mode.
Definition client_method_options.h:1314
@ Async
Async mode (might reduce latency of write requests, but less reliable).
Definition client_method_options.h:1319
@ Sync
Sync mode (default).
Definition client_method_options.h:1316
Options for NYT::IClient::AlterTable.
Definition client_method_options.h:1120
TSelf & Dynamic(bool)
Alter table between static and dynamic mode.
TSelf & Schema(TTableSchema)
Change table schema.
TSelf & UpstreamReplicaId(TReplicaId)
Changes id of upstream replica on metacluster.
Options for NYT::IClient::AlterTableReplica.
Definition client_method_options.h:1462
TSelf & Mode(ETableReplicaMode)
Whether to enable or disable replica.
Options for attaching transaction.
Definition client_method_options.h:932
TSelf & AbortOnTermination(bool)
Abort transaction on program termination.
TSelf & AutoPingable(bool)
Ping transaction automatically.
List of attributes to retrieve in operations like NYT::ICypressClient::Get.
Definition common.h:1389
Options for NYT::IIOClient::CreateBlobTableReader.
Definition client_method_options.h:368
TSelf & PartIndexColumnName(TString)
Name of the part index column. By default it is "part_index".
TSelf & DataColumnName(TString)
Name of the data column. By default it is "data".
TSelf & StartPartIndex(i64)
Part index from which to start reading.
TSelf & PartSize(i64)
Size of each part.
TSelf & Offset(i64)
Offset from which to start reading.
Options for NYT::IClient::CheckClusterLiveness.
Definition client_method_options.h:1728
TSelf & CheckSecondaryMasterCells(bool)
Check secondary master.
TSelf & CheckTabletCellBundle(TString)
Check the given tablet cell bundle's health.
TSelf & CheckCypressRoot(bool)
Check primary master.
Options for NYT::IClient::CheckPermission.
Definition client_method_options.h:1558
FLUENT_VECTOR_FIELD(TString, Column)
Columns to check permission to (for tables only).
Options for NYT::ITransaction::Commit.
Definition client_method_options.h:1029
Options for NYT::ICypressClient::Concatenate.
Definition client_method_options.h:347
TSelf & Append(bool)
Whether we should append to destination or rewrite it.
Options for NYT::ICypressClient::Copy.
Definition client_method_options.h:276
TSelf & PreserveAccount(bool)
Whether to preserves account of source node.
TSelf & PreserveExpirationTime(bool)
Whether to preserve expiration_time attribute of source node.
TSelf & Force(bool)
Allows to use existing node as destination, it will be overwritten.
TSelf & Recursive(bool)
Create missing directories in destination path if required.
Options for NYT::CreateClient;.
Definition client_method_options.h:1212
TSelf & ProxyAddress(TString)
Proxy Address to be used for connection.
TSelf & Config(TConfigPtr)
Override global config for the client.
TSelf & UseTLS(bool)
Use HTTPs (use HTTP client from yt/yt/core always).
TSelf & TvmOnly(bool)
Use tvm-only endpoints in cluster connection.
TSelf & Token(TString)
User token.
NAuth::IServiceTicketAuthPtrWrapperPtr ServiceTicketAuth_
TVM service ticket producer.
Definition client_method_options.h:1247
TSelf & TokenPath(TString)
Path to the file where user token is stored.
TSelf & RetryConfigProvider(IRetryConfigProviderPtr)
RetryConfig provider allows to fine tune request retries.
TSelf & UseCoreHttpClient(bool)
Use HTTP client from yt/yt/core.
TSelf & ImpersonationUser(TString)
Impersonated user name.
TSelf & JobProxySocketPath(TString)
Job proxy unix domain socket used for connection. Typically you will need this option when the RPC pr...
Options for NYT::ICypressClient::Create.
Definition client_method_options.h:126
TSelf & Recursive(bool)
Create missing parent directories if required.
TSelf & Attributes(TNode)
Set node attributes.
TSelf & Force(bool)
Recreate node if it exists.
TSelf & IgnoreTypeMismatch(bool)
Ignore type mismatch with existing node.
TSelf & IgnoreExisting(bool)
Do not raise error if node already exists.
Options for NYT::IClient::DeleteRows.
Definition client_method_options.h:1439
TSelf & RequireSyncReplica(bool)
Whether to fail when deleting from table without sync replica.
Options for NYT::IBatchRequest::ExecuteBatch.
Definition client_method_options.h:1288
TSelf & Concurrency(ui64)
How many requests will be executed in parallel on the cluster.
Options for NYT::ICypressClient::Exists.
Definition client_method_options.h:198
Options for writing file fragment in distributed session.
Definition client_method_options.h:677
Options for NYT::IClient::CreateFilePartitionReader.
Definition client_method_options.h:585
TSelf & Config(TNode)
Advanced options for reader, see NYT::TIOOptions::Config.
Options for reading file from YT.
Definition client_method_options.h:569
TSelf & Length(i64)
Maximum length to read.
TSelf & Offset(i64)
Offset to start reading from.
Options for writing file.
Definition client_method_options.h:647
TSelf & WriterOptions(TWriterOptions)
Options to control how YT server side writes data.
TSelf & ComputeMD5(bool)
Whether to compute MD5 sum of written file.
TSelf & AutoFinish(bool)
Wheter to call Finish automatically in writer destructor.
Options for NYT::IClient::FreezeTable.
Definition client_method_options.h:1105
Options for NYT::IClient::GetFileFromCache.
Definition client_method_options.h:1487
Options for NYT::IClient::GetFilePartitions.
Definition client_method_options.h:1677
TSelf & FetchCookieNodeDescriptors(bool)
Enable partition node descriptors serialization in cookie.
Options for NYT::ICypressClient::Get.
Definition client_method_options.h:208
TSelf & AttributeFilter(TAttributeFilter)
Attributes that should be fetched with each node.
TSelf & MaxSize(i64)
Limit for the number of children node.
Options for NYT::IClient::GetTableColumnarStatistics.
Definition client_method_options.h:1593
TSelf & FetcherMode(EColumnarStatisticsFetcherMode)
Mode of statistics fetching.
Options for NYT::IClient::GetTablePartitions.
Definition client_method_options.h:1626
TSelf & PartitionMode(ETablePartitionMode)
Table partitioning mode.
TSelf & EnableCookies(bool)
Enable partition cookies in response.
TSelf & FetchCookieNodeDescriptors(bool)
Enable partition node descriptors serialization in cookie.
TSelf & MaxPartitionCount(int)
Maximum output partition count.
TSelf & AdjustDataWeightPerPartition(bool)
Allow the data weight per partition to exceed DataWeightPerPartition when MaxPartitionCount is set.
TSelf & DataWeightPerPartition(i64)
Approximate data weight of each output partition.
Options for NYT::IClient::GetTabletInfos.
Definition client_method_options.h:1696
Base class for many options related to IO.
Definition client_method_options.h:531
TSelf & CreateTransaction(bool)
Whether to create internal client transaction for reading / writing table.
TSelf & Config(TNode)
Advanced options for reader/writer.
Options for NYT::IClient::InsertRows.
Definition client_method_options.h:1401
TSelf & LockType(ELockType)
Row lock mode acquired on each modified row.
TSelf & RequireSyncReplica(bool)
Whether to overwrite missing columns with nulls.
Options for NYT::ICypressClient::Link.
Definition client_method_options.h:324
TSelf & Attributes(TNode)
Attributes of created link.
TSelf & Force(bool)
Force rewrite target node.
TSelf & IgnoreExisting(bool)
Do not raise error if link already exists.
TSelf & Recursive(bool)
Create parent directories of destination if they don't exist.
Options for NYT::ICypressClient::List.
Definition client_method_options.h:258
TSelf & AttributeFilter(TAttributeFilter)
Attributes that should be fetched for each node.
TSelf & MaxSize(i64)
Limit for the number of children that will be fetched.
Options for locking cypress node.
Definition client_method_options.h:978
TSelf & AttributeKey(TString)
Whether to wait already locked node to be unlocked.
TSelf & ChildKey(TString)
Also take child_key lock.
Options for NYT::IClient::LookupRows.
Definition client_method_options.h:1143
TSelf & Columns(TColumnNames)
Column names to return.
TSelf & Timeout(TDuration)
Timeout for operation.
TSelf & Versioned(bool)
If set to true returned values will have "timestamp" attribute.
TSelf & KeepMissingRows(bool)
Whether to return rows that were not found in table.
Base class for options for operations that read from master.
Definition client_method_options.h:181
TSelf & ReadFrom(EMasterReadKind)
Where to read from.
Options for NYT::IClient::MountTable.
Definition client_method_options.h:1056
TSelf & CellId(TTabletCellId)
If specified table will be mounted to this cell.
TSelf & Freeze(bool)
If set to true tablets will be mounted in freezed state.
Options for NYT::ICypressClient::Move.
Definition client_method_options.h:300
TSelf & Recursive(bool)
Create missing directories in destination path if required.
TSelf & Force(bool)
Allows to use existing node as destination, it will be overwritten.
TSelf & PreserveExpirationTime(bool)
Whether to preserve expiration_time attribute of source node.
TSelf & PreserveAccount(bool)
Whether to preserves account of source node.
Options for NYT::ICypressClient::MultisetAttributes.
Definition client_method_options.h:242
Server-side preconditions checked before the request is processed.
Definition client_method_options.h:118
Expected revision of a Cypress node, used as a precondition.
Definition client_method_options.h:74
TSelf & Path(TYPath)
Cypress node's path.
TSelf & Revision(ui64)
Expected revision.
Base class for options dealing with prerequisite revisions.
Definition client_method_options.h:101
FLUENT_VECTOR_FIELD(TPrerequisiteRevision, PrerequisiteRevision)
Cypress nodes whose current revisions must match the expected ones.
Base class for options dealing with prerequisite transactions.
Definition client_method_options.h:89
FLUENT_VECTOR_FIELD(TTransactionId, PrerequisiteTransactionId)
Transactions that must be alive.
Options for NYT::IClient::GetTableColumnarStatistics.
Definition client_method_options.h:1500
TSelf & PreserveExpirationTimeout(bool)
Whether to preserve expiration_timeout attribute of source node.
Options for NYT::IClient::RemountTable.
Definition client_method_options.h:1089
Options for NYT::ICypressClient::Remove.
Definition client_method_options.h:163
TSelf & Force(bool)
Do not fail if removing node doesn't exist.
TSelf & Recursive(bool)
Remove whole tree when removing composite cypress node (e.g. map_node).
Options for NYT::IClient::ReshardTable.
Definition client_method_options.h:1097
Resource limits for operation (or pool).
Definition client_method_options.h:399
TSelf & Memory(i64)
Memory in bytes.
TSelf & UserSlots(i64)
Number of slots for user jobs.
TSelf & Cpu(double)
Number of cpu cores.
TSelf & Network(i64)
Network usage. Doesn't have precise physical unit.
Options for NYT::IOperation::ResumeOperation.
Definition client_method_options.h:493
Collection of scheduling options for multiple pool trees.
Definition client_method_options.h:445
TSelf & Add(TStringBuf poolTreeName, const TSchedulingOptions &schedulingOptions)
Add scheduling options for pool tree.
Definition client_method_options.h:455
Scheduling options for single pool tree.
Definition client_method_options.h:422
TSelf & Weight(double)
Operation weight.
TSelf & ResourceLimits(TResourceLimits)
Operation resource limits.
TSelf & Pool(TString)
Pool to switch operation to.
Options for NYT::IClient::SelectRows.
Definition client_method_options.h:1172
TSelf & FailOnIncompleteResult(bool)
Whether to fail if InputRowLimit or OutputRowLimit is exceeded.
TSelf & InputRowLimit(i64)
Limitation for number of rows read by single node.
TSelf & VerboseLogging(bool)
Enable verbose logging on server side.
TSelf & OutputRowLimit(i64)
Limitation for number of output rows on single cluster node.
TSelf & Timeout(TDuration)
Timeout for operation.
TSelf & RangeExpansionLimit(ui64)
Maximum row ranges derived from WHERE clause.
Options for NYT::ICypressClient::Set.
Definition client_method_options.h:223
TSelf & Force(bool)
Allow setting any nodes, not only attribute and document ones.
TSelf & Recursive(bool)
Create missing parent directories if required.
Options for NYT::IClient::SkyShareTable.
Definition client_method_options.h:1704
TSelf & Pool(TString)
Custom pool.
TSelf & KeyColumns(TColumnNames)
Key columns that are used to group files in a table into torrents.
TSelf & EnableFastbone(bool)
Allow skynet manager to return fastbone links to skynet. See YT-11437.
Options for NYT::IClient::StartTransaction.
Definition client_method_options.h:886
TSelf & AutoPingable(bool)
Whether to ping created transaction automatically.
TSelf & Attributes(TNode)
Set custom transaction attributes.
TSelf & Title(TString)
Set the title attribute of transaction.
TSelf & Timeout(TDuration)
How long transaction lives after last ping.
TSelf & Deadline(TInstant)
Moment in the future when transaction is aborted.
Base class for options dealing with access tracking suppression.
Definition client_method_options.h:57
TSelf & SuppressModificationTracking(bool)
Whether to disable update of modification on read/write operations.
TSelf & SuppressAccessTracking(bool)
Whether to disable update of access_time on read/write operations.
Options for NYT::IOperation::SuspendOperation.
Definition client_method_options.h:469
TSelf & Reason(std::optional< TString >)
Something to show in the alert.
TSelf & AbortRunningJobs(bool)
Whether to abort already running jobs.
Options for writing table fragment in distributed session.
Definition client_method_options.h:878
Options for NYT::IClient::CreatePartitionTableReader.
Definition client_method_options.h:805
TSelf & FormatHints(TFormatHints)
Allows fine-tuning of the format used for reading tables.
TSelf & ControlAttributes(TControlAttributes)
Allows to tune which attributes are added to rows while reading tables.
Options for NYT::IClient::CreateTableReader.
Definition client_method_options.h:781
TSelf & FormatHints(TFormatHints)
Allows fine-tuning of the format used for reading tables.
TSelf & SizeLimit(size_t)
TSelf & OmitInaccessibleRows(bool)
Allows to skip rows that the user does not have access to.
TSelf & ControlAttributes(TControlAttributes)
Allows to tune which attributes are added to rows while reading tables.
Options for NYT::IClient::CreateTableWriter.
Definition client_method_options.h:825
TSelf & AutoFinish(bool)
Wheter to call Finish automatically in writer destructor.
TSelf & BufferSize(size_t)
Allows to change the size of locally buffered rows before flushing to yt.
TSelf & InferSchema(bool)
Try to infer schema of inexistent table from the type of written rows.
TSelf & FormatHints(TFormatHints)
Allows to fine tune format that is used for writing tables.
TSelf & WriterOptions(TWriterOptions)
Options to control how YT server side writes data.
TSelf & SingleHttpRequest(bool)
Enable or disable retryful writing.
Base class for options that deal with tablets.
Definition client_method_options.h:1038
TSelf & FirstTabletIndex(i64)
Index of a first tablet to deal with.
TSelf & LastTabletIndex(i64)
Index of a last tablet to deal with.
Base class for options dealing with io to dynamic tables.
Definition client_method_options.h:1367
TSelf & Atomicity(EAtomicity)
Atomicity mode of operation.
TSelf & Durability(EDurability)
Durability mode of operation.
Options for NYT::IClient::TrimRows.
Definition client_method_options.h:1455
Options for NYT::IClient::UnfreezeTable.
Definition client_method_options.h:1113
Options for NYT::ITransaction::Unlock.
Definition client_method_options.h:1017
Options for NYT::IClient::UnmountTable.
Definition client_method_options.h:1074
TSelf & Force(bool)
Advanced option, don't use unless yt team told you so.
Options for NYT::IOperation::UpdateParameters.
Definition client_method_options.h:504
TSelf & Pool(TString)
Pool to switch operation to (for all pool trees it is running in).
FLUENT_VECTOR_FIELD(TString, Owner)
New owners of the operation.
TSelf & SchedulingOptionsPerPoolTree(TSchedulingOptionsPerPoolTree)
Scheduling options for each pool tree the operation is running in.
TSelf & Weight(double)
New operation weight (for all pool trees it is running in).
Options that control how server side of YT stores data.
Definition client_method_options.h:596
TSelf & MinUploadReplicationFactor(ui64)
TSelf & UploadReplicationFactor(ui64)
Number of replicas to be created.
TSelf & RetryBlockSize(size_t)
Size of data block accumulated in memory to provide retries.
TSelf & EnableEarlyFinish(bool)
Whether to wait all replicas to be written.
TSelf & DesiredChunkSize(ui64)
Desired size of a chunk.