Zero  0.1.0
Classes | Namespaces | Typedefs | Enumerations
sm_base.h File Reference
#include "w_defines.h"
#include <vector>
#include "basics.h"
#include "w_debug.h"
#include <cstddef>
#include <cstdlib>
#include <cstring>
#include <climits>
#include "w.h"
#include "vec_t.h"
#include "latch.h"
#include "smthread.h"
#include "tid_t.h"
#include "smstats.h"

Go to the source code of this file.

Classes

class  memalign_allocator< T, Alignment >
 

Namespaces

 zero::buffer_pool
 

Typedefs

typedef w_rc_t rc_t
 
typedef uint32_t partition_number_t
 

Enumerations

enum  cmp_t {
  bad_cmp_t = badOp, eq = eqOp, gt = gtOp, ge = geOp,
  lt = ltOp, le = leOp
}
 Comparison types used in scan_index_iShorthand for CompareOp. More...
 
enum  concurrency_t {
  t_cc_bad, t_cc_none, t_cc_vol, t_cc_store,
  t_cc_keyrange, t_cc_append
}
 Lock granularities. More...
 
enum  pg_policy_t { t_append = 0x01, t_cache = 0x02, t_compact = 0x04 }
 File-compaction policy for creating records. More...
 

Typedef Documentation

§ partition_number_t

typedef uint32_t partition_number_t

skip

§ rc_t

typedef w_rc_t rc_t

Enumeration Type Documentation

§ cmp_t

enum cmp_t

Comparison types used in scan_index_iShorthand for CompareOp.

Enumerator
bad_cmp_t 
eq 
gt 
ge 
lt 
le 

§ concurrency_t

Lock granularities.

  • t_cc_bad Illegal
  • t_cc_none No locking
  • t_cc_vol Volume-level locking
  • t_cc_store Index-level locking
  • t_cc_keyrange Key-range locking using fence-keys
Enumerator
t_cc_bad 
t_cc_none 
t_cc_vol 
t_cc_store 
t_cc_keyrange 
t_cc_append 

§ pg_policy_t

File-compaction policy for creating records.

  • t_append : append new record to file (preserve order)
  • t_cache : look in cache for pages with space for new record (does not preserve order)
  • t_compact: keep file compact even if it means searching the file for space in which to create the file (does not preserve order)

These are masks - the following combinations are sensible:

  • t_append – preserve sort order
  • t_cache | t_append – check the cache first, append if no luck
  • t_cache | t_compact | t_append – append to file as a last resort
Enumerator
t_append 
t_cache 
t_compact