libmoost
/home/mhx/git/github/libmoost/include/moost/kvds/kvds_page_store.hpp File Reference
#include <vector>
#include <sstream>
#include <fstream>
#include <cassert>
#include <limits>
#include <bitset>
#include <algorithm>
#include <utility>
#include <csignal>
#include <boost/cstdint.hpp>
#include <boost/filesystem.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/cast.hpp>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/serialization/utility.hpp>
#include "../utils/bits.hpp"
#include "../algorithm/fast_hash.hpp"
#include "../container/sparse_hash_map.hpp"
#include "../container/sparse_hash_set.hpp"
#include "../serialization/hashmap_serializer.hpp"
#include "../serialization/hashset_serializer.hpp"
#include "ikvds.hpp"
Include dependency graph for kvds_page_store.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  moost::kvds::KvdsPageMapShared< pagemapT >
struct  moost::kvds::KvdsPageMapShared< pagemapT >::metadata
class  moost::kvds::KvdsPageMapIntrinsicKey< keyT >
 A intrinsic type pagemap. More...
struct  moost::kvds::KvdsPageMapDefaultKeyHashFunctor
 Default key hash functor used to hash the byte array key for the keyval index. More...
class  moost::kvds::KvdsPageMapNonIntrinsicKey< KeyHashFunctorT >
 *** This class is NOT thread safe *** More...
class  moost::kvds::KvdsPageStore< PageMapT >
 *** This class is NOT thread safe *** More...
class  moost::kvds::KvdsPageStore< PageMapT >::Store

Namespaces

namespace  moost
 

Creates a unique temporary directory; removed on scope exit.


namespace  moost::kvds

Defines

#define KVDS_PAGESTORE_FLUSH_STREAM__(S)   S.flush()
 In debug flush the stream so we can see what's happening (in release this is a noop)

Detailed Description

Copyright © 2008-2013 Last.fm Limited

This file is part of libmoost.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Page store provides a ikvds interface for a simple key/value page store, where a value is store as a fixed size page in a suitable store from a collection of store where each store has a fixed page size greater than the previous. If the value being store is smaller than the page size padding is added to ensure the page persisted is complete.

Definition in file kvds_page_store.hpp.


Define Documentation

#define KVDS_PAGESTORE_FLUSH_STREAM__ (   S)    S.flush()

In debug flush the stream so we can see what's happening (in release this is a noop)

Definition at line 67 of file kvds_page_store.hpp.