zstan commented on a change in pull request #9090:
URL: https://github.com/apache/ignite/pull/9090#discussion_r630843167



##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/processors/query/aware/IndexRebuildState.java
##########
@@ -0,0 +1,103 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.ignite.internal.processors.query.aware;
+
+import org.apache.ignite.internal.util.typedef.internal.S;
+
+/**
+ * State of rebuilding indexes for the cache.
+ */
+public class IndexRebuildState {
+    /** Cache id. */
+    private final int cacheId;
+
+    /** Cache name. */
+    private final String cacheName;
+
+    /** Saved in MetaStorage. */
+    private final boolean saved;
+
+    /** Index rebuild is complete. */
+    private boolean completed;
+
+    /**
+     * Constructor.
+     *
+     * @param cacheId Cache id.
+     * @param cacheName Cache name.
+     * @param saved Saved in MetaStorage.
+     */
+    public IndexRebuildState(int cacheId, String cacheName, boolean saved) {
+        this.cacheId = cacheId;
+        this.cacheName = cacheName;
+        this.saved = saved;
+    }
+
+    /**
+     * Getting cache id.
+     *
+     * @return Cache id.
+     */
+    public int cacheId() {
+        return cacheId;
+    }
+
+    /**
+     * Getting cache name.
+     *
+     * @return Cache name.
+     */
+    public String cacheName() {
+        return cacheName;
+    }
+
+    /**
+     * Checking whether it is stored in the MetaStorage.
+     *
+     * @return {@code True} if stored in the MetaStorage.
+     */
+    public boolean saved() {

Review comment:
       I think you need to rname it like : _needToStore_ or _persistent_ or 
something else




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

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


Reply via email to