jkosh44 commented on a change in pull request #1701:
URL: https://github.com/apache/accumulo/pull/1701#discussion_r484121839
##########
File path:
server/base/src/main/java/org/apache/accumulo/server/ServiceEnvironmentImpl.java
##########
@@ -78,6 +79,22 @@ public String get(String key) {
}
}
+ @Override
+ public Map<String,String> getWithPrefix(String prefix) {
+ if (Property.isValidPropertyPrefix(prefix)) {
+ Property propertyPrefix = Property.getPropertyByKey(prefix);
Review comment:
Fixed
##########
File path:
server/base/src/main/java/org/apache/accumulo/server/ServiceEnvironmentImpl.java
##########
@@ -78,6 +79,22 @@ public String get(String key) {
}
}
+ @Override
+ public Map<String,String> getWithPrefix(String prefix) {
+ if (Property.isValidPropertyPrefix(prefix)) {
+ Property propertyPrefix = Property.getPropertyByKey(prefix);
+ return acfg.getAllPropertiesWithPrefix(propertyPrefix);
+ } else {
+ Map<String,String> properties = new HashMap<>();
+ for (Entry<String,String> prop : acfg) {
+ if (prop.getKey().startsWith(prefix)) {
+ properties.put(prop.getKey(), prop.getValue());
+ }
+ }
+ return properties;
+ }
Review comment:
Fixed
----------------------------------------------------------------
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]