22 #ifndef Hypertable_RangeServer_CellStoreV2_h
23 #define Hypertable_RangeServer_CellStoreV2_h
75 void create(
const char *fname,
size_t max_entries,
81 const String &end_row, int32_t fd, int64_t file_length,
112 std::lock_guard<std::mutex> lock(
m_mutex);
117 std::lock_guard<std::mutex> lock(
m_mutex);
169 #endif // Hypertable_RangeServer_CellStoreV2_h
uint64_t purge_indexes() override
Purges bloom filter and block indexes.
void open(const String &fname, const String &start_row, const String &end_row, int32_t fd, int64_t file_length, CellStoreTrailer *trailer) override
Opens a cell store with possibly a restricted view.
CellStoreBlockIndexArray< uint32_t > m_index_map32
Abstract base class for cell store trailer.
virtual void close(int fd, DispatchHandler *handler)=0
Closes a file asynchronously.
void create_bloom_filter(bool is_approx=false)
int64_t bloom_filter_memory_used() override
Returns the amount of memory consumed by the bloom filter.
std::string & get_filename() override
Pathname of cell store file.
int64_t block_index_memory_used() override
Returns the amount of memory consumed by the block index.
Abstract base class for persistent cell lists (ones that are stored on disk).
CellListScannerPtr create_scanner(ScanContext *scan_ctx) override
Creates a scanner on this cell list.
std::string String
A String is simply a typedef to std::string.
void display_block_info() override
Displays block information to stdout.
CellStoreBlockIndexArray< int64_t > m_index_map64
float m_uncompressed_data
A Bloom Filter implementation.
CellStoreV2(Filesystem *filesys)
BlockCompressionCodec * m_compressor
int64_t end_of_last_block() override
Returns the offset of the end of the last block in the cell store.
size_t bloom_filter_size() override
Return Bloom filter size.
Scan context information.
Declarations for BlockCompressionCodec.
int64_t m_uncompressed_blocksize
BlockCompressionCodec::Args m_compressor_args
void finalize(TableIdentifier *table_identifier) override
Finalizes the creation of a cell store, by writing block index and metadata trailer.
A dynamic, resizable and reference counted memory buffer.
uint32_t m_outstanding_appends
std::vector< String > Args
Compression codec argument vector.
float m_bloom_bits_per_item
A class managing one or more serializable ByteStrings.
Declarations for CellStore.
bool may_contain(const void *ptr, size_t len)
DispatchHandlerSynchronizer m_sync_handler
BloomFilter * m_bloom_filter
IndexMemoryStats m_index_stats
int64_t get_blocksize() override
Returns the block size used for this cell store.
A dynamic, resizable memory buffer.
size_t size()
Getter for the bloom filter size.
std::shared_ptr< Properties > PropertiesPtr
int32_t reopen_fd() override
Closes and reopens the underlying CellStore file.
BloomFilterMode
Enumeration for bloom filter modes.
float m_filter_false_positive_prob
int64_t block_index_memory
bool may_contain(const String &key)
IndexBuilder m_index_builder
A HashSet optimized for blobs.
bool restricted_range() override
Returns true if the cellstore was opened with a restricted range.
int get_file_id() override
Returns a unique identifier which identifies the underlying file for caching purposes.
DispatchHandler class used to synchronize with response messages.
BloomFilterMode m_bloom_filter_mode
CellStoreTrailer * get_trailer() override
Return a pointer to the trailer object for this cell store.
DynamicBuffer & variable_buf()
A HashSet for storing and looking up blobs efficiently.
uint16_t block_header_format() override
Abstract base class for server protocol drivers.
Provides access to internal components of opaque key.
BlobHashSet BloomFilterItems
uint8_t * release(size_t *lenp=0)
Moves ownership of the buffer to the caller.
std::shared_ptr< CellListScanner > CellListScannerPtr
DynamicBuffer & fixed_buf()
virtual void open(const String &name, uint32_t flags, DispatchHandler *handler)=0
Opens a file asynchronously.
uint64_t disk_usage() override
Returns the disk used by this cell store.
BloomFilterItems * m_bloom_filter_items
int64_t bloom_filter_memory
void create(const char *fname, size_t max_entries, PropertiesPtr &props, const TableIdentifier *table_identifier=0) override
Creates a new cell store.
A space-efficent probabilistic set for membership test, false postives are possible, but false negatives are not.
float compression_ratio() override
Returns block compression ratio of this cell store.
BlockCompressionCodec * create_block_compression_codec() override
Creates a block compression codec suitable for decompressing the cell store's blocks.
int64_t m_max_approx_items
int64_t get_total_entries() override
Returns the number of key/value pairs in the cell store.
Declarations for DispatchHandlerSynchronizer.
int32_t get_fd() override
Returns the open file descriptor for the CellStore file.
Abstract base class for block compression codecs.
Abstract base class for a filesystem.
void add_entry(const SerializedKey key, int64_t offset)
Declarations for CellStoreBlockIndexArray.
CellStoreTrailerV2 m_trailer
void add(const Key &key, const ByteString value) override
Inserts a key/value pair into the cell list.