@ -1250,6 +1250,53 @@ void rocksdb_writebatch_deletev_cf(
b - > rep . Delete ( column_family - > rep , SliceParts ( key_slices . data ( ) , num_keys ) ) ;
}
void rocksdb_writebatch_delete_range ( rocksdb_writebatch_t * b ,
const char * start_key ,
size_t start_key_len , const char * end_key ,
size_t end_key_len ) {
b - > rep . DeleteRange ( Slice ( start_key , start_key_len ) ,
Slice ( end_key , end_key_len ) ) ;
}
void rocksdb_writebatch_delete_range_cf (
rocksdb_writebatch_t * b , rocksdb_column_family_handle_t * column_family ,
const char * start_key , size_t start_key_len , const char * end_key ,
size_t end_key_len ) {
b - > rep . DeleteRange ( column_family - > rep , Slice ( start_key , start_key_len ) ,
Slice ( end_key , end_key_len ) ) ;
}
void rocksdb_writebatch_delete_rangev ( rocksdb_writebatch_t * b , int num_keys ,
const char * const * start_keys_list ,
const size_t * start_keys_list_sizes ,
const char * const * end_keys_list ,
const size_t * end_keys_list_sizes ) {
std : : vector < Slice > start_key_slices ( num_keys ) ;
std : : vector < Slice > end_key_slices ( num_keys ) ;
for ( int i = 0 ; i < num_keys ; i + + ) {
start_key_slices [ i ] = Slice ( start_keys_list [ i ] , start_keys_list_sizes [ i ] ) ;
end_key_slices [ i ] = Slice ( end_keys_list [ i ] , end_keys_list_sizes [ i ] ) ;
}
b - > rep . DeleteRange ( SliceParts ( start_key_slices . data ( ) , num_keys ) ,
SliceParts ( end_key_slices . data ( ) , num_keys ) ) ;
}
void rocksdb_writebatch_delete_rangev_cf (
rocksdb_writebatch_t * b , rocksdb_column_family_handle_t * column_family ,
int num_keys , const char * const * start_keys_list ,
const size_t * start_keys_list_sizes , const char * const * end_keys_list ,
const size_t * end_keys_list_sizes ) {
std : : vector < Slice > start_key_slices ( num_keys ) ;
std : : vector < Slice > end_key_slices ( num_keys ) ;
for ( int i = 0 ; i < num_keys ; i + + ) {
start_key_slices [ i ] = Slice ( start_keys_list [ i ] , start_keys_list_sizes [ i ] ) ;
end_key_slices [ i ] = Slice ( end_keys_list [ i ] , end_keys_list_sizes [ i ] ) ;
}
b - > rep . DeleteRange ( column_family - > rep ,
SliceParts ( start_key_slices . data ( ) , num_keys ) ,
SliceParts ( end_key_slices . data ( ) , num_keys ) ) ;
}
void rocksdb_writebatch_put_log_data (
rocksdb_writebatch_t * b ,
const char * blob , size_t len ) {