use of org.apache.helix.PropertyType in project helix by apache.
the class ZKHelixDataAccessor method getChildValuesMap.
@Override
public <T extends HelixProperty> Map<String, T> getChildValuesMap(PropertyKey key, boolean throwException) {
PropertyType type = key.getType();
String parentPath = key.getPath();
int options = constructOptions(type);
List<T> children = getChildValues(key, throwException);
Map<String, T> childValuesMap = new HashMap<String, T>();
for (T t : children) {
childValuesMap.put(t.getRecord().getId(), t);
}
return childValuesMap;
}
Aggregations