![]() |
mutable
A Database System for Research and Fast Prototyping
|
#include <DataLayoutFactory.hpp>
Public Types | |
| enum | block_size_t { NTuples , NBytes } |
Public Member Functions | |
| PAXLayoutFactory (block_size_t option=NBytes) | |
| PAXLayoutFactory (block_size_t option, uint64_t num) | |
| std::unique_ptr< DataLayoutFactory > | clone () const override |
Creates and returns a deep copy of this. | |
| DataLayout | make (std::vector< const Type * > types, std::size_t num_tuples=0) const override |
Returns a DataLayout for the given types and length num_tuples (0 means infinite layout). | |
| DataLayout | make (const Schema &schema, std::size_t num_tuples=0) const |
Returns a DataLayout for the given Types contained in schema and length num_tuples. | |
| template<typename It > | |
| DataLayout | make (It begin, It end, std::size_t num_tuples=0) const |
Returns a DataLayout for the given Types in the range from begin to end and length num_tuples. | |
| virtual DataLayout | make (std::vector< const Type * > types, std::size_t num_tuples=0) const=0 |
Returns a DataLayout for the given types and length num_tuples (0 means infinite layout). | |
| void | dump (std::ostream &out) const |
| void | dump () const |
Static Public Attributes | |
| static constexpr uint64_t | DEFAULT_NUM_TUPLES = 16 |
| static constexpr uint64_t | DEFAULT_NUM_BYTES = 1UL << 12 |
| 4 KiB | |
Private Member Functions | |
| void | print (std::ostream &out) const override |
Private Attributes | |
| block_size_t | option_ |
| union { | |
| uint64_t num_tuples_ | |
| uint64_t num_bytes_ | |
| }; | |
Definition at line 58 of file DataLayoutFactory.hpp.
| Enumerator | |
|---|---|
| NTuples | |
| NBytes | |
Definition at line 63 of file DataLayoutFactory.hpp.
|
inline |
Definition at line 73 of file DataLayoutFactory.hpp.
References DEFAULT_NUM_BYTES, DEFAULT_NUM_TUPLES, NTuples, num_bytes_, num_tuples_, and option_.
|
inline |
Definition at line 81 of file DataLayoutFactory.hpp.
References M_insist, NTuples, num_bytes_, num_tuples_, and option_.
|
inlineoverridevirtual |
Creates and returns a deep copy of this.
Implements m::storage::DataLayoutFactory.
Definition at line 91 of file DataLayoutFactory.hpp.
References NTuples, num_bytes_, num_tuples_, and option_.
|
inherited |
Definition at line 19 of file DataLayoutFactory.cpp.
References m::storage::DataLayoutFactory::dump().
Referenced by m::storage::DataLayoutFactory::dump().
|
inherited |
Definition at line 18 of file DataLayoutFactory.cpp.
|
inline |
Returns a DataLayout for the given Types contained in schema and length num_tuples.
Definition at line 24 of file DataLayoutFactory.hpp.
|
inline |
Returns a DataLayout for the given Types in the range from begin to end and length num_tuples.
Definition at line 31 of file DataLayoutFactory.hpp.
|
overridevirtual |
Returns a DataLayout for the given types and length num_tuples (0 means infinite layout).
Implements m::storage::DataLayoutFactory.
Definition at line 133 of file DataLayoutFactory.cpp.
References m::storage::DataLayout::add_inode(), m::storage::DataLayout::INode::add_leaf(), m::and, compute_attribute_order(), m::Type::Get_Bitmap(), M_insist, NTuples, num_bytes_, num_tuples_, and option_.
|
virtual |
Returns a DataLayout for the given types and length num_tuples (0 means infinite layout).
Implements m::storage::DataLayoutFactory.
|
inlineoverrideprivatevirtual |
Implements m::storage::DataLayoutFactory.
Definition at line 99 of file DataLayoutFactory.hpp.
References NTuples, num_bytes_, num_tuples_, and option_.
| union { ... } m::storage::PAXLayoutFactory::@2 |
|
staticconstexpr |
|
staticconstexpr |
Definition at line 60 of file DataLayoutFactory.hpp.
Referenced by PAXLayoutFactory().
| uint64_t m::storage::PAXLayoutFactory::num_bytes_ |
Definition at line 69 of file DataLayoutFactory.hpp.
Referenced by clone(), make(), PAXLayoutFactory(), and print().
| uint64_t m::storage::PAXLayoutFactory::num_tuples_ |
Definition at line 68 of file DataLayoutFactory.hpp.
Referenced by clone(), make(), PAXLayoutFactory(), and print().
|
private |
Definition at line 66 of file DataLayoutFactory.hpp.
Referenced by clone(), make(), PAXLayoutFactory(), and print().