use of org.apache.asterix.common.config.AsterixExtension in project asterixdb by apache.
the class ConfigUtil method toAsterixExtension.
public static AsterixExtension toAsterixExtension(Extension ext) {
String className = ext.getExtensionClassName();
ArrayList<Pair<String, String>> args = new ArrayList<>();
for (Property property : ext.getProperty()) {
args.add(new Pair<>(property.getName(), property.getValue()));
}
return new AsterixExtension(className, args);
}
Aggregations