aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/skiff/skiff_schema-inl.h
diff options
context:
space:
mode:
authormax42 <max42@yandex-team.com>2023-06-30 11:13:34 +0300
committermax42 <max42@yandex-team.com>2023-06-30 11:13:34 +0300
commit3e1899838408bbad47622007aa382bc8a2b01f87 (patch)
tree0f21c1e6add187ddb6c3ccc048a7d640ce03fb87 /library/cpp/skiff/skiff_schema-inl.h
parent5463eb3f5e72a86f858a3d27c886470a724ede34 (diff)
downloadydb-3e1899838408bbad47622007aa382bc8a2b01f87.tar.gz
Revert "YT-19324: move YT provider to ydb/library/yql"
This reverts commit ca272f12fdd0e8d5c3e957fc87939148f1caaf72, reversing changes made to 49f8acfc8b0b5c0071b804423bcf53fda26c7c12.
Diffstat (limited to 'library/cpp/skiff/skiff_schema-inl.h')
-rw-r--r--library/cpp/skiff/skiff_schema-inl.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/library/cpp/skiff/skiff_schema-inl.h b/library/cpp/skiff/skiff_schema-inl.h
deleted file mode 100644
index d66325b222..0000000000
--- a/library/cpp/skiff/skiff_schema-inl.h
+++ /dev/null
@@ -1,61 +0,0 @@
-#pragma once
-
-#ifndef SKIFF_SCHEMA_H
-#error "Direct inclusion of this file is not allowed, include skiff_schema.h"
-// For the sake of sane code completion.
-#include "skiff_schema.h"
-#endif
-#undef SKIFF_SCHEMA_H
-
-namespace NSkiff {
-
-////////////////////////////////////////////////////////////////////////////////
-
-inline bool IsSimpleType(EWireType type)
-{
- switch (type) {
- case EWireType::Int8:
- case EWireType::Int16:
- case EWireType::Int32:
- case EWireType::Int64:
- case EWireType::Int128:
-
- case EWireType::Uint8:
- case EWireType::Uint16:
- case EWireType::Uint32:
- case EWireType::Uint64:
- case EWireType::Uint128:
-
- case EWireType::Double:
- case EWireType::Boolean:
- case EWireType::String32:
- case EWireType::Yson32:
- case EWireType::Nothing:
- return true;
- case EWireType::Tuple:
- case EWireType::Variant8:
- case EWireType::Variant16:
- case EWireType::RepeatedVariant8:
- case EWireType::RepeatedVariant16:
- return false;
- }
- Y_FAIL();
-}
-
-////////////////////////////////////////////////////////////////////////////////
-
-template <EWireType WireType>
-TComplexSchema<WireType>::TComplexSchema(TSkiffSchemaList elements)
- : TSkiffSchema(WireType)
- , Elements_(std::move(elements))
-{ }
-
-template <EWireType WireType>
-const TSkiffSchemaList& TComplexSchema<WireType>::GetChildren() const
-{
- return Elements_;
-}
-
-////////////////////////////////////////////////////////////////////////////////
-
-} // namespace NSkiff