zstan commented on a change in pull request #9090: URL: https://github.com/apache/ignite/pull/9090#discussion_r630841911
########## 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; Review comment: may be more useful was to rename it like : _persistent_ ? _saved_ is unclear as for me .. -- 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]
