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 2021/12/05 19:21:00 UTC
[jira] [Updated] (IGNITE-16059) Add options to the "range" method in SortedIndexStorage
[ https://issues.apache.org/jira/browse/IGNITE-16059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksandr Polovtcev updated IGNITE-16059:
-----------------------------------------
Description:
[IEP-74|https://cwiki.apache.org/confluence/display/IGNITE/IEP-74+Data+Storage] declares the following API for the {{SortedIndexStorage#range}} method:
{code:java}
/** Exclude lower bound. */
byte GREATER = 0;
/** Include lower bound. */
byte GREATER_OR_EQUAL = 1;
/** Exclude upper bound. */
byte LESS = 0;
/** Include upper bound. */
byte LESS_OR_EQUAL = 1 << 1;
/**
* Return rows between lower and upper bounds.
* Fill results rows by fields specified at the projection set.
*
* @param low Lower bound of the scan.
* @param up Lower bound of the scan.
* @param scanBoundMask Scan bound mask (specify how to work with rows equals to the bounds: include or exclude).
* @param proj Set of the columns IDs to fill results rows.
*/
Cursor<Row> scan(Row low, Row up, byte scanBoundMask, BitSet proj);
{code}
These flags are currently not implemented. This API should be revised and implemented, if needed.
> Add options to the "range" method in SortedIndexStorage
> -------------------------------------------------------
>
> Key: IGNITE-16059
> URL: https://issues.apache.org/jira/browse/IGNITE-16059
> Project: Ignite
> Issue Type: Task
> Reporter: Aleksandr Polovtcev
> Priority: Major
> Labels: ignite-3
>
> [IEP-74|https://cwiki.apache.org/confluence/display/IGNITE/IEP-74+Data+Storage] declares the following API for the {{SortedIndexStorage#range}} method:
> {code:java}
> /** Exclude lower bound. */
> byte GREATER = 0;
>
> /** Include lower bound. */
> byte GREATER_OR_EQUAL = 1;
>
> /** Exclude upper bound. */
> byte LESS = 0;
>
> /** Include upper bound. */
> byte LESS_OR_EQUAL = 1 << 1;
> /**
> * Return rows between lower and upper bounds.
> * Fill results rows by fields specified at the projection set.
> *
> * @param low Lower bound of the scan.
> * @param up Lower bound of the scan.
> * @param scanBoundMask Scan bound mask (specify how to work with rows equals to the bounds: include or exclude).
> * @param proj Set of the columns IDs to fill results rows.
> */
> Cursor<Row> scan(Row low, Row up, byte scanBoundMask, BitSet proj);
> {code}
> These flags are currently not implemented. This API should be revised and implemented, if needed.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)