MySQL 9.1.0
Source Code Documentation
PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT > Class Template Reference

#include <pfs_buffer_container.h>

Public Types

typedef B::value_type value_type
 
typedef B::allocator_type allocator_type
 
typedef PFS_partitioned_buffer_scalable_iterator< B, PFS_PARTITION_COUNT > iterator_type
 
typedef B::iterator_type sub_iterator_type
 
typedef B::processor_type processor_type
 
typedef B::function_type function_type
 

Public Member Functions

 PFS_partitioned_buffer_scalable_container (allocator_type *allocator)
 
 ~PFS_partitioned_buffer_scalable_container ()
 
int init (long max_size)
 
void cleanup ()
 
size_t get_row_count () const
 
size_t get_row_size () const
 
size_t get_memory () const
 
long get_lost_counter ()
 
value_typeallocate (pfs_dirty_state *dirty_state, uint partition)
 
void deallocate (value_type *safe_pfs)
 
iterator_type iterate ()
 
iterator_type iterate (uint user_index)
 
void apply (function_type fct)
 
void apply_all (function_type fct)
 
void apply (processor_type &proc)
 
void apply_all (processor_type &proc)
 
value_typeget (uint user_index)
 
value_typeget (uint user_index, bool *has_more)
 
value_typesanitize (value_type *unsafe)
 

Private Member Functions

value_typescan_next (uint &partition_index, uint &sub_index, uint *found_partition, uint *found_sub_index)
 

Static Private Member Functions

static void pack_index (uint partition_index, uint sub_index, uint *user_index)
 
static void unpack_index (uint user_index, uint *partition_index, uint *sub_index)
 

Private Attributes

B * m_partitions [PFS_PARTITION_COUNT]
 

Friends

class PFS_partitioned_buffer_scalable_iterator< B, PFS_PARTITION_COUNT >
 

Member Typedef Documentation

◆ allocator_type

template<class B , int PFS_PARTITION_COUNT>
typedef B::allocator_type PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::allocator_type

◆ function_type

template<class B , int PFS_PARTITION_COUNT>
typedef B::function_type PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::function_type

◆ iterator_type

template<class B , int PFS_PARTITION_COUNT>
typedef PFS_partitioned_buffer_scalable_iterator<B, PFS_PARTITION_COUNT> PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::iterator_type

◆ processor_type

template<class B , int PFS_PARTITION_COUNT>
typedef B::processor_type PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::processor_type

◆ sub_iterator_type

template<class B , int PFS_PARTITION_COUNT>
typedef B::iterator_type PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::sub_iterator_type

◆ value_type

template<class B , int PFS_PARTITION_COUNT>
typedef B::value_type PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::value_type

Constructor & Destructor Documentation

◆ PFS_partitioned_buffer_scalable_container()

template<class B , int PFS_PARTITION_COUNT>
PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::PFS_partitioned_buffer_scalable_container ( allocator_type allocator)
inlineexplicit

◆ ~PFS_partitioned_buffer_scalable_container()

template<class B , int PFS_PARTITION_COUNT>
PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::~PFS_partitioned_buffer_scalable_container ( )
inline

Member Function Documentation

◆ allocate()

template<class B , int PFS_PARTITION_COUNT>
value_type * PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::allocate ( pfs_dirty_state dirty_state,
uint  partition 
)
inline

◆ apply() [1/2]

template<class B , int PFS_PARTITION_COUNT>
void PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::apply ( function_type  fct)
inline

◆ apply() [2/2]

template<class B , int PFS_PARTITION_COUNT>
void PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::apply ( processor_type proc)
inline

◆ apply_all() [1/2]

template<class B , int PFS_PARTITION_COUNT>
void PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::apply_all ( function_type  fct)
inline

◆ apply_all() [2/2]

template<class B , int PFS_PARTITION_COUNT>
void PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::apply_all ( processor_type proc)
inline

◆ cleanup()

template<class B , int PFS_PARTITION_COUNT>
void PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::cleanup ( void  )
inline

◆ deallocate()

template<class B , int PFS_PARTITION_COUNT>
void PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::deallocate ( value_type safe_pfs)
inline

◆ get() [1/2]

template<class B , int PFS_PARTITION_COUNT>
value_type * PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::get ( uint  user_index)
inline

◆ get() [2/2]

template<class B , int PFS_PARTITION_COUNT>
value_type * PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::get ( uint  user_index,
bool *  has_more 
)
inline

◆ get_lost_counter()

template<class B , int PFS_PARTITION_COUNT>
long PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::get_lost_counter ( )
inline

◆ get_memory()

template<class B , int PFS_PARTITION_COUNT>
size_t PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::get_memory ( ) const
inline

◆ get_row_count()

template<class B , int PFS_PARTITION_COUNT>
size_t PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::get_row_count ( ) const
inline

◆ get_row_size()

template<class B , int PFS_PARTITION_COUNT>
size_t PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::get_row_size ( ) const
inline

◆ init()

template<class B , int PFS_PARTITION_COUNT>
int PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::init ( long  max_size)
inline

◆ iterate() [1/2]

template<class B , int PFS_PARTITION_COUNT>
iterator_type PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::iterate ( )
inline

◆ iterate() [2/2]

template<class B , int PFS_PARTITION_COUNT>
iterator_type PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::iterate ( uint  user_index)
inline

◆ pack_index()

template<class B , int PFS_PARTITION_COUNT>
static void PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::pack_index ( uint  partition_index,
uint  sub_index,
uint *  user_index 
)
inlinestaticprivate

◆ sanitize()

template<class B , int PFS_PARTITION_COUNT>
value_type * PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::sanitize ( value_type unsafe)
inline

◆ scan_next()

template<class B , int PFS_PARTITION_COUNT>
value_type * PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::scan_next ( uint &  partition_index,
uint &  sub_index,
uint *  found_partition,
uint *  found_sub_index 
)
inlineprivate

◆ unpack_index()

template<class B , int PFS_PARTITION_COUNT>
static void PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::unpack_index ( uint  user_index,
uint *  partition_index,
uint *  sub_index 
)
inlinestaticprivate

Friends And Related Function Documentation

◆ PFS_partitioned_buffer_scalable_iterator< B, PFS_PARTITION_COUNT >

template<class B , int PFS_PARTITION_COUNT>
friend class PFS_partitioned_buffer_scalable_iterator< B, PFS_PARTITION_COUNT >
friend

Member Data Documentation

◆ m_partitions

template<class B , int PFS_PARTITION_COUNT>
B* PFS_partitioned_buffer_scalable_container< B, PFS_PARTITION_COUNT >::m_partitions[PFS_PARTITION_COUNT]
private

The documentation for this class was generated from the following file: