22 #ifndef Hypertable_RangeServer_CellCache_h
23 #define Hypertable_RangeServer_CellCache_h
44 typedef std::set<Key, key_revision_lt>
KeySet;
133 for (CellMap::const_iterator iter =
m_cell_map.begin();
135 key.
load((*iter).first);
144 typedef std::pair<const SerializedKey, uint32_t>
Value;
147 std::less<const SerializedKey>, Alloc>
CellMap;
167 #endif // Hypertable_RangeServer_CellCache_h
size_t total() const
Statistic accessors - returns total allocated size.
uint64_t memory_allocated()
Returns the amount of memory allocated by the CellCache.
Represents a sorted list of key/value pairs in memory.
bool operator()(const Key &k1, const Key &k2) const
Scan context information.
int64_t memory_used()
Returns the amount of memory used by the CellCache.
CellListScannerPtr create_scanner(ScanContext *scan_ctx) override
Creates a CellCacheScanner object that contains an shared pointer to this CellCache.
A class managing one or more serializable ByteStrings.
std::set< Key, key_revision_lt > KeySet
void populate_key_set(KeySet &keys)
CellCacheAllocator< Value > Alloc
std::map< const char *, int64_t, LtCstr, SplitRowDataAlloc > SplitRowDataMapT
Provides a scanning interface to a CellCache.
virtual void add_counter(const Key &key, const ByteString value)
bool load(const SerializedKey &key)
Parses the opaque key and loads the components into the member variables.
void add_statistics(Statistics &stats)
std::pair< const SerializedKey, uint32_t > Value
size_t used() const
Statistic accessors - returns used bytes.
std::map< const SerializedKey, uint32_t, std::less< const SerializedKey >, Alloc > CellMap
Provides access to internal components of opaque key.
void split_row_estimate_data(SplitRowDataMapT &split_row_data) override
Populates split_row_data with unique row and count estimates for this list.
void add(const Key &key, const ByteString value) override
Adds a key/value pair to the CellCache.
std::shared_ptr< CellListScanner > CellListScannerPtr
bool m_have_counter_deletes
std::shared_ptr< CellCache > CellCachePtr
Shared smart pointer to CellCache.
Abstract base class for cell lists (sorted lists of key/value pairs).