tkalkirill commented on code in PR #3561:
URL: https://github.com/apache/ignite-3/pull/3561#discussion_r1574127097


##########
modules/storage-api/src/main/java/org/apache/ignite/internal/storage/index/SortedIndexStorage.java:
##########
@@ -56,13 +57,20 @@ public interface SortedIndexStorage extends IndexStorage {
      *      {@code null} means unbounded.
      * @param flags Control flags. {@link #GREATER} | {@link #LESS} by 
default. Other available values
      *      are {@link #GREATER_OR_EQUAL}, {@link #LESS_OR_EQUAL}.
+     * @param onlyBuiltIndex {@code True} if need to scan only from the built 
index.
      * @return Cursor with fetched index rows.
      * @throws IllegalArgumentException If backwards flag is passed and 
backwards iteration is not supported by the storage.
+     * @throws StorageException If failed to read data.
+     * @throws IndexNotBuiltException If the index has not yet been built and 
{@code onlyBuiltIndex} = {@code true}.
+     * @throws InconsistentIndexStateException If the index is in a readable 
status, but the index is not built.
      */
+    // TODO: IGNITE-22039 Implement for onlyBuiltIndex == false throw an 
InconsistentIndexStateException if the index is not in a readable
+    //  status and write tests
     PeekCursor<IndexRow> scan(
             @Nullable BinaryTuplePrefix lowerBound,
             @Nullable BinaryTuplePrefix upperBound,
-            @MagicConstant(flagsFromClass = SortedIndexStorage.class) int flags
+            @MagicConstant(flagsFromClass = SortedIndexStorage.class) int 
flags,
+            boolean onlyBuiltIndex

Review Comment:
   fix it



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

Reply via email to