File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
yt/yt/client/object_client Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -330,6 +330,11 @@ bool IsSchemaType(EObjectType type)
330
330
return (static_cast <ui32>(type) & SchemaObjectTypeMask) != 0 ;
331
331
}
332
332
333
+ TString FormatObjectType (EObjectType type)
334
+ {
335
+ return IsSchemaType (type) ? Format (" schema:%v" , TypeFromSchemaType (type)) : FormatEnum (type);
336
+ }
337
+
333
338
bool IsGlobalCellId (TCellId cellId)
334
339
{
335
340
auto type = TypeFromId (cellId);
Original file line number Diff line number Diff line change @@ -119,6 +119,9 @@ EObjectType SchemaTypeFromType(EObjectType type);
119
119
// ! Returns the regular type for a given schema #type.
120
120
EObjectType TypeFromSchemaType (EObjectType type);
121
121
122
+ // ! Formats object type into string (taking schemas into account).
123
+ TString FormatObjectType (EObjectType type);
124
+
122
125
// ! Constructs the id from its parts.
123
126
TObjectId MakeId (
124
127
EObjectType type,
You can’t perform that action at this time.
0 commit comments