SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
ColumnCfg.h
Go to the documentation of this file.
1
/*
2
* SWC-DB© Copyright since 2019 Alex Kashirin <kashirin.alex@gmail.com>
3
* License details at <https://github.com/kashirin-alex/swc-db/#license>
4
*/
5
6
7
#ifndef swcdb_manager_db_ColumnCfg_h
8
#define swcdb_manager_db_ColumnCfg_h
9
10
#include "
swcdb/core/NotMovableSharedPtr.h
"
11
#include "
swcdb/db/Cells/KeyComparator.h
"
12
13
namespace
SWC
{
namespace
Manager {
14
15
class
ColumnCfg
final :
public
Core::NotMovableSharedPtr
<ColumnCfg> {
16
public
:
17
18
typedef
Core::NotMovableSharedPtr<ColumnCfg>
Ptr
;
19
20
const
cid_t
cid
;
21
const
DB::Types::KeySeq
key_seq
;
22
23
SWC_CAN_INLINE
24
ColumnCfg
(
const
DB::Schema::Ptr
& schema) noexcept
25
:
cid
(schema->cid),
key_seq
(schema->col_seq) {
26
}
27
28
~ColumnCfg
() noexcept { }
29
30
void
print
(std::ostream& out)
const
{
31
out <<
"cid="
<<
cid
<<
" seq="
<<
DB::Types::to_string
(
key_seq
);
32
}
33
};
34
35
}}
36
37
#endif // swcdb_manager_db_ColumnCfg_h
SWC::Manager::ColumnCfg
Definition:
ColumnCfg.h:15
SWC::Manager::ColumnCfg::key_seq
const DB::Types::KeySeq key_seq
Definition:
ColumnCfg.h:21
SWC::Manager::ColumnCfg::ColumnCfg
SWC_CAN_INLINE ColumnCfg(const DB::Schema::Ptr &schema) noexcept
Definition:
ColumnCfg.h:24
SWC::DB::Schema::Ptr
std::shared_ptr< Schema > Ptr
Definition:
Schema.h:185
SWC::DB::Types::to_string
const char *SWC_CONST_FUNC to_string(Column typ) noexcept
Definition:
Column.cc:38
SWC::Manager::ColumnCfg::Ptr
Core::NotMovableSharedPtr< ColumnCfg > Ptr
Definition:
ColumnCfg.h:18
SWC::Manager::ColumnCfg::print
void print(std::ostream &out) const
Definition:
ColumnCfg.h:30
SWC::DB::Types::KeySeq
KeySeq
Definition:
KeySeq.h:13
SWC_CAN_INLINE
#define SWC_CAN_INLINE
Definition:
Compat.h:102
SWC
The SWC-DB C++ namespace 'SWC'.
Definition:
main.cc:12
NotMovableSharedPtr.h
SWC::Core::NotMovableSharedPtr
Definition:
NotMovableSharedPtr.h:13
SWC::cid_t
uint64_t cid_t
Definition:
Identifiers.h:16
SWC::Manager::ColumnCfg::cid
const cid_t cid
Definition:
ColumnCfg.h:20
SWC::Manager::ColumnCfg::~ColumnCfg
~ColumnCfg() noexcept
Definition:
ColumnCfg.h:28
KeyComparator.h
include
swcdb
manager
db
ColumnCfg.h
Generated on Sat Jun 3 2023 18:00:07 for SWC-DB by
1.8.20