|
| Range (Lib::Master::ClientPtr &, const TableIdentifier &, SchemaPtr &, const RangeSpec &, RangeSet *, const RangeState &, bool needs_compaction=false) |
|
| Range (Lib::Master::ClientPtr &, SchemaPtr &, MetaLogEntityRangePtr &, RangeSet *) |
|
virtual | ~Range () |
|
void | add (const Key &key, const ByteString value) |
| This method must not fail. More...
|
|
void | lock () |
|
void | unlock () |
|
MetaLogEntityRangePtr | metalog_entity () |
|
void | create_scanner (ScanContextPtr &scan_ctx, MergeScannerRangePtr &scanner) |
|
CellListScanner * | create_scanner_pseudo_table (ScanContextPtr &scan_ctx, const String &table_name) |
| Creates a scanner over the pseudo-table indicated by table_name . More...
|
|
void | deferred_initialization () |
|
void | deferred_initialization (uint32_t timeout_millis) |
|
void | deferred_initialization (std::chrono::fast_clock::time_point expire_time) |
|
void | get_boundary_rows (String &start, String &end) |
|
String | end_row () |
|
int64_t | get_scan_revision (uint32_t timeout_ms) |
|
void | replay_transfer_log (CommitLogReader *commit_log_reader) |
| Called before range has been flipped live so no locking needed. More...
|
|
MaintenanceData * | get_maintenance_data (ByteArena &arena, time_t now, int flags, TableMutator *mutator=0) |
|
void | disable_maintenance () |
|
void | enable_maintenance () |
|
void | update_schema (SchemaPtr &schema) |
|
void | split () |
|
void | relinquish () |
|
void | compact (MaintenanceFlag::Map &subtask_map) |
|
void | purge_memory (MaintenanceFlag::Map &subtask_map) |
|
void | schedule_relinquish () |
|
bool | get_relinquish () const |
|
void | recovery_initialize () |
|
void | recovery_finalize () |
| This method is called when the range is offline so no locking is needed. More...
|
|
bool | increment_update_counter () |
|
void | decrement_update_counter () |
|
bool | increment_scan_counter () |
|
void | decrement_scan_counter () |
|
bool | get_transfer_info (RangeTransferInfo &transfer_info, CommitLogPtr &transfer_log, int64_t *latest_revisionp, bool &wait_for_maintenance) |
|
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) |
|
void | add_bytes_written (uint64_t n) |
|
void | add_cells_written (uint64_t n) |
|
bool | need_maintenance () |
|
bool | is_root () |
|
bool | is_metadata () |
|
void | drop () |
|
String | get_name () |
|
int | get_state () |
|
int32_t | get_error () |
|
void | set_needs_compaction (bool needs_compaction) |
|
void | set_compaction_type_needed (int compaction_type_needed) |
| Sets type of compaction needed. More...
|
|
void | acknowledge_load (uint32_t timeout_ms) |
|
bool | load_acknowledged () |
|
const std::string | get_table_id () |
| Get table ID. More...
|
|
Represents a table row range.
Definition at line 69 of file Range.h.
void Range::split_compact_and_shrink |
( |
| ) |
|
|
private |
Perform major compactions
Shrink the range
Write existing hints file and new hints file. The hints array will have been setup by the call to shrink() for the existing range. The new_hints_file will get it's disk usage updated by subtracting the disk usage of the existing hints file from the original disk usage.
Create FS directories for this range
Persist SPLIT_SHRUNK MetaLog state
Definition at line 1128 of file Range.cc.