@Override public boolean isValid(String indexPath) throws IOException { String type = getIndexType(indexPath); if (type == null){ log.warn("No type property defined for index definition at path {}", indexPath); return false; } IndexInfoProvider infoProvider = infoProviders.get(type); if (infoProvider == null){ log.warn("No IndexInfoProvider for for index definition at path {} of type {}", indexPath, type); return true; //TODO Reconsider this scenario } return infoProvider.isValid(indexPath); }
@Override public boolean isValid(String indexPath) throws IOException { String type = getIndexType(indexPath); if (type == null){ log.warn("No type property defined for index definition at path {}", indexPath); return false; } IndexInfoProvider infoProvider = infoProviders.get(type); if (infoProvider == null){ log.warn("No IndexInfoProvider for for index definition at path {} of type {}", indexPath, type); return true; //TODO Reconsider this scenario } return infoProvider.isValid(indexPath); }
@Override public boolean isValid(String indexPath) throws IOException { String type = getIndexType(indexPath); if (type == null){ log.warn("No type property defined for index definition at path {}", indexPath); return false; } IndexInfoProvider infoProvider = infoProviders.get(type); if (infoProvider == null){ log.warn("No IndexInfoProvider for for index definition at path {} of type {}", indexPath, type); return true; //TODO Reconsider this scenario } return infoProvider.isValid(indexPath); }
@Override public IndexInfo getInfo(String indexPath) throws IOException { String type = getIndexType(indexPath); if (type == null) return null; IndexInfoProvider infoProvider = infoProviders.get(type); if (infoProvider == null) { return new SimpleIndexInfo(indexPath, type); } return infoProvider.getInfo(indexPath); }
@Override public IndexInfo getInfo(String indexPath) throws IOException { String type = getIndexType(indexPath); if (type == null) return null; IndexInfoProvider infoProvider = infoProviders.get(type); if (infoProvider == null) { return new SimpleIndexInfo(indexPath, type); } return infoProvider.getInfo(indexPath); }
@Override public IndexInfo getInfo(String indexPath) throws IOException { String type = getIndexType(indexPath); if (type == null) return null; IndexInfoProvider infoProvider = infoProviders.get(type); if (infoProvider == null) { return new SimpleIndexInfo(indexPath, type); } return infoProvider.getInfo(indexPath); }