swamirishi opened a new pull request, #8774:
URL: https://github.com/apache/ozone/pull/8774

   ## What changes were proposed in this pull request?
   Added support for DeleteRange operation in RocksDB batch writes
   **Key Changes**:
   1. **New Operation Type**:
       - Added to the enum alongside existing and operations 
`DELETE_RANGE``Op``DELETE``PUT`
       - Implemented new class to handle range deletions `DeleteRangeOperation`
   
   2. **Data Structure Improvements**:
       - Changed the storage structure from to for ordered key operations 
`HashMap``TreeMap`
       - Added to support range-based operations `NavigableMap<Bytes, Integer>`
       - Implemented interface for class to support ordering `Comparable``Bytes`
   
   3. **New API Methods**:
       - Added method to `deleteRange``RDBBatchOperation`
       - Added to `Table` interface `deleteRangeWithBatch`
       - Added to `batchDeleteRange``RocksDatabase.ColumnFamily`
   
   4. **Operation Handling**:
       - Introduced new interface for better operation abstraction `Operation`
       - Added proper cleanup and resource management for operations
       - Implemented ordered operation execution based on operation index
   
   5. **Interface Updates**:
       - Modified to include new method `Table.java``deleteRangeWithBatch`
       - Updated and to implement the new range deletion functionality 
`TypedTable``RDBTable`
   
   The changes improve the RocksDB integration by adding support for batch 
range deletions, which allows for more efficient deletion of multiple 
consecutive keys in a single operation. The implementation includes proper 
resource management and maintains operation ordering within batches.
   
   
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-13415
   
   ## How was this patch tested?
   Working on adding unit tests


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to