mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Namespaces | Functions
store_manip.hpp File Reference
#include "storage/ColumnStore.hpp"
#include <mutable/catalog/Schema.hpp>
#include <random>
#include <utility>
#include <vector>
Include dependency graph for store_manip.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  m
 

‍mutable namespace


 

Functions

void m::set_all_null (uint8_t *column_ptr, std::size_t num_attrs, std::size_t begin, std::size_t end)
 Sets all attributes of the begin-th row (including) to the end-th row (excluding) of column at address column_ptr to NULL.
 
void m::set_all_not_null (uint8_t *column_ptr, std::size_t num_attrs, std::size_t begin, std::size_t end)
 Sets all attributes of the begin-th row (including) to the end-th row (excluding) of column at address column_ptr to NOT NULL.
 
void m::generate_primary_keys (void *column_ptr, const Type &type, std::size_t begin, std::size_t end)
 Generates primary keys of Type type for the begin-th row (including) to the end-th row (excluding) of column at address column_ptr.
 
template<typename T , typename Generator = std::mt19937_64>
std::enable_if_t< std::is_arithmetic_v< T >, void > M_EXPORT m::fill_uniform (T *column_ptr, std::vector< T > values, std::size_t begin, std::size_t end, Generator &&g=Generator())
 Fills column at address column_ptr from begin-th row (including) to end-th row (excluding) with data from values.
 
void m::generate_column_data (void *column_ptr, const Attribute &attr, std::size_t num_distinct_values, std::size_t begin, std::size_t end)
 Generates data for the column at address column_ptr from begin-th row (including) to end-th row (excluding) and writes it directly to memory.
 
void m::generate_correlated_column_data (void *left_ptr, void *right_ptr, const Attribute &attr, std::size_t num_distinct_values_left, std::size_t num_distinct_values_right, std::size_t count_left, std::size_t count_right, std::size_t num_distinct_values_matching)
 Generates data for two columns at addresses left_ptr and right_ptr correlated by num_distinct_values_matching and writes the data directly to memory.