zhangmeng916 commented on a change in pull request #869: Replace customized
view cache with property cache
URL: https://github.com/apache/helix/pull/869#discussion_r397470089
##########
File path:
helix-core/src/main/java/org/apache/helix/common/caches/CustomizedViewCache.java
##########
@@ -19,32 +19,24 @@
* under the License.
*/
-import java.util.ArrayList;
import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
import java.util.Map;
-import java.util.Set;
import org.apache.helix.HelixDataAccessor;
-import org.apache.helix.HelixException;
import org.apache.helix.PropertyKey;
import org.apache.helix.PropertyType;
import org.apache.helix.model.CustomizedView;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import com.google.common.collect.Maps;
/**
* Cache to hold all CustomizedView of a specific type.
*/
public class CustomizedViewCache extends AbstractDataCache<CustomizedView> {
private static final Logger LOG =
LoggerFactory.getLogger(CustomizedViewCache.class.getName());
- protected Map<String, CustomizedView> _customizedViewMap;
- protected Map<String, CustomizedView> _customizedViewCache;
+ private final PropertyCache<CustomizedView> _customizedViewCache;
Review comment:
Do we still need this CustomizedViewCache file? I thought this would be the
same as ExternalViewCache, which is deprecated. And we use
PropertyCache<CustomizedView> instead in the place we need it. Please confirm
with @jiajunwang .
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]