27 #ifndef Hypertable_RangeServer_Range_h
28 #define Hypertable_RangeServer_Range_h
78 total += ag->mem_used;
153 const String &table_name);
243 int64_t *latest_revisionp,
bool &wait_for_maintenance) {
247 wait_for_maintenance =
false;
257 transfer_info.
clear();
260 wait_for_maintenance =
true;
266 uint64_t bytes_scanned, uint64_t bytes_returned,
267 uint64_t disk_bytes_read) {
412 #endif // Hypertable_RangeServer_Range_h
void set_compaction_type_needed(int compaction_type_needed)
Sets type of compaction needed.
uint32_t bloom_filter_fps
AccessGroupMap m_access_group_map
Declarations for AccessGroup.
Reads and writes access group "hints" file.
void schedule_relinquish()
MetaLogEntityRangePtr m_metalog_entity
int64_t m_latest_revision
uint32_t bloom_filter_accesses
uint64_t block_index_memory
AccessGroupHintsFile m_hints_file
std::string String
A String is simply a typedef to std::string.
chrono::time_point< fast_clock > time_point
void decrement_scan_counter()
void split_install_log_rollback_metadata()
std::vector< AccessGroupPtr > AccessGroupVector
Declarations for CommitLogReader.
void add_read_data(uint64_t cells_scanned, uint64_t cells_returned, uint64_t bytes_scanned, uint64_t bytes_returned, uint64_t disk_bytes_read)
Declarations for TableIdentifier and TableIdentifierManaged.
bool estimate_split_row(CellList::SplitRowDataMapT &split_row_data, String &row)
void deferred_initialization()
Declarations for fast_clock.
const std::string get_table_id()
Get table ID.
void split_compact_and_shrink()
MaintenanceData * get_maintenance_data(ByteArena &arena, time_t now, int flags, TableMutator *mutator=0)
int64_t get_scan_revision(uint32_t timeout_ms)
Maps object pointers to bit fields.
Interface for removing a range or changing its end row in a Range set.
int compaction_type_needed
void add_cells_written(uint64_t n)
void relinquish_install_log()
bool increment_update_counter()
MetaLogEntityRangePtr metalog_entity()
Lib::Master::ClientPtr m_master_client
void acknowledge_load(uint32_t timeout_ms)
A Barrier to block execution of code.
CommitLogPtr m_transfer_log
void set_split(const String &split_row, bool split_off_high)
static const int64_t TIMESTAMP_MIN
void exit()
Leaves the critical section; will wake up/notify waiting threads if necessary.
uint64_t m_bytes_returned
int64_t m_maintenance_generation
Represents a table row range.
std::map< String, AccessGroupPtr > AccessGroupMap
std::shared_ptr< Client > ClientPtr
A class managing one or more serializable ByteStrings.
Range(Lib::Master::ClientPtr &, const TableIdentifier &, SchemaPtr &, const RangeSpec &, RangeSet *, const RangeState &, bool needs_compaction=false)
Declarations for CellStore.
Provides the ability to mutate a table in the form of adding and deleting rows and cells...
uint64_t m_cells_returned
void add(const Key &key, const ByteString value)
This method must not fail.
void add_bytes_written(uint64_t n)
Declarations for RangeState.
std::map< const char *, int64_t, LtCstr, SplitRowDataAlloc > SplitRowDataMapT
void disable_maintenance()
void decrement_update_counter()
void enable_maintenance()
uint64_t m_disk_bytes_read
void compact(MaintenanceFlag::Map &subtask_map)
std::shared_ptr< MergeScannerRange > MergeScannerRangePtr
Smart pointer to MergeScannerRange.
A Barrier to block execution of code.
int m_compaction_type_needed
void set_needs_compaction(bool needs_compaction)
void create_scanner(ScanContextPtr &scan_ctx, MergeScannerRangePtr &scanner)
int64_t m_split_threshold
uint32_t bloom_filter_maybes
int64_t compactable_memory()
void relinquish_finalize()
std::ostream & operator<<(std::ostream &os, const crontab_entry &entry)
Helper function to write crontab_entry to an ostream.
bool get_transfer_info(RangeTransferInfo &transfer_info, CommitLogPtr &transfer_log, int64_t *latest_revisionp, bool &wait_for_maintenance)
Declarations for AccessGroupHintsFile.
uint64_t m_added_deletes[KEYSPEC_DELETE_MAX]
void enter()
Enters the critical section.
AccessGroupVector m_access_group_vector
LoadMetricsRange m_load_metrics
bool m_capacity_exceeded_throttle
Provides sequential access to blocks in a commit log.
void split_notify_master()
std::vector< AccessGroupPtr > m_column_family_vector
Declarations for RangeSpec and RangeSpecManaged.
void wait_for_complete(bool disable=false)
std::shared_ptr< MetaLogEntityRange > MetaLogEntityRangePtr
Smart pointer to MetaLogEntityRange.
void update_schema(SchemaPtr &schema)
std::mutex m_schema_mutex
uint64_t memory_allocated
bool cancel_maintenance()
Provides access to internal components of opaque key.
std::shared_ptr< Range > RangePtr
Smart pointer to Range.
AccessGroup::MaintenanceData * agdata
std::shared_ptr< CommitLog > CommitLogPtr
Smart pointer to CommitLog.
bool get_relinquish() const
uint64_t shadow_cache_memory
bool increment_scan_counter()
bool needs_major_compaction
uint64_t bloom_filter_memory
void get_boundary_rows(String &start, String &end)
void purge_memory(MaintenanceFlag::Map &subtask_map)
Declarations for MasterClient This file contains declarations for MasterClient, a client interface cl...
A String class based on std::string.
Declarations for CommitLog.
CellListScanner * create_scanner_pseudo_table(ScanContextPtr &scan_ctx, const String &table_name)
Creates a scanner over the pseudo-table indicated by table_name.
std::shared_ptr< Schema > SchemaPtr
Smart pointer to Schema.
uint32_t schema_generation
int16_t maintenance_flags
Declarations for MaintenanceFlag This file contains declarations that are part of the MaintenanceFlag...
RangeMaintenanceGuard m_maintenance_guard
void relinquish_compact()
void replay_transfer_log(CommitLogReader *commit_log_reader)
Called before range has been flipped live so no locking needed.
Declarations for MergeScannerRange.
void recovery_initialize()
int64_t purgeable_index_memory
std::shared_ptr< ScanContext > ScanContextPtr
A helper class to put up a barrier when entering a scope and take it down when leaving the scope...
void recovery_finalize()
This method is called when the range is offline so no locking is needed.