You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Aleksandr Polovtcev (Jira)" <ji...@apache.org> on 2022/09/26 08:29:00 UTC

[jira] [Updated] (IGNITE-17755) Add common interface for sorted and hash indices

     [ https://issues.apache.org/jira/browse/IGNITE-17755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aleksandr Polovtcev updated IGNITE-17755:
-----------------------------------------
    Description: 
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}


> 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
>
> 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)