[
https://issues.apache.org/jira/browse/IGNITE-17755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aleksandr Polovtcev updated IGNITE-17755:
-----------------------------------------
Reviewer: Semyon Danilov
> Add common interface for sorted and hash indices
> ------------------------------------------------
>
> Key: IGNITE-17755
> URL: https://issues.apache.org/jira/browse/IGNITE-17755
> Project: Ignite
> Issue Type: Task
> Reporter: Aleksandr Polovtcev
> Assignee: Aleksandr Polovtcev
> Priority: Major
> Labels: ignite-3
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Create an interface with some common methods across all index implementations
> so that it would be possible to work with indices without knowing the actual
> index type.
> A new interface may look like this:
> {code:java}
> public interface IndexStorage {
> Cursor<RowId> get(BinaryTuple key) throws StorageException;
> void put(IndexRow row) throws StorageException;
> void remove(IndexRow row) throws StorageException;
> }
> {code}
> Also, a new method should be added to {{MvTableStorage}}:
> {code:java}
> IndexStorage getIndex(int partitionId, UUID indexId);
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)