class SliceExtent

Defined at line 20 of file ../../src/storage/fvm/driver/slice_extent.h

Public Methods

std::unique_ptr<SliceExtent> Split (uint64_t vslice)

Breaks the extent from:

[start(), end())

Into:

[start(), vslice] and [vslice + 1, end()).

Returns the latter extent on success; returns nullptr

if a memory allocation failure occurs.

Defined at line 13 of file ../../src/storage/fvm/driver/slice_extent.cc

void SliceExtent ()

Defined at line 22 of file ../../src/storage/fvm/driver/slice_extent.h

void SliceExtent (uint64_t vslice_start)

Defined at line 23 of file ../../src/storage/fvm/driver/slice_extent.h

void SliceExtent (const SliceExtent & )

Defined at line 24 of file ../../src/storage/fvm/driver/slice_extent.h

void SliceExtent (SliceExtent && )

Defined at line 25 of file ../../src/storage/fvm/driver/slice_extent.h

SliceExtent & operator= (const SliceExtent & )

Defined at line 26 of file ../../src/storage/fvm/driver/slice_extent.h

SliceExtent & operator= (SliceExtent && )

Defined at line 27 of file ../../src/storage/fvm/driver/slice_extent.h

void ~SliceExtent ()

Defined at line 28 of file ../../src/storage/fvm/driver/slice_extent.h

void Merge (const SliceExtent & other)

Combines the other extent into this one.

'other' must immediately follow the current slice.

Defined at line 29 of file ../../src/storage/fvm/driver/slice_extent.cc

uint64_t GetKey ()

Defined at line 30 of file ../../src/storage/fvm/driver/slice_extent.h

uint64_t start ()

Virtual slice offset of the start of the extent (inclusive)

Defined at line 33 of file ../../src/storage/fvm/driver/slice_extent.h

uint64_t end ()

Virtual slice offset of the end of the extent (exclusive)

Defined at line 36 of file ../../src/storage/fvm/driver/slice_extent.h

uint64_t size ()

Extent length, in slices

Defined at line 39 of file ../../src/storage/fvm/driver/slice_extent.h

bool find (uint64_t vslice, uint64_t * out_pslice)

Look up a pslice given a vslice

Defined at line 42 of file ../../src/storage/fvm/driver/slice_extent.h

uint64_t at (uint64_t vslice)

Defined at line 51 of file ../../src/storage/fvm/driver/slice_extent.h

bool contains (uint64_t vslice)

Defined at line 58 of file ../../src/storage/fvm/driver/slice_extent.h

void push_back (uint64_t pslice)

Defined at line 75 of file ../../src/storage/fvm/driver/slice_extent.h

void pop_back ()

Defined at line 77 of file ../../src/storage/fvm/driver/slice_extent.h

bool empty ()

Defined at line 79 of file ../../src/storage/fvm/driver/slice_extent.h

Friends

class TypeWAVLTraits