use of org.apache.metron.rest.model.StellarFunctionDescription in project metron by apache.
the class StellarServiceImpl method getStellarFunctions.
@Override
public List<StellarFunctionDescription> getStellarFunctions() {
List<StellarFunctionDescription> stellarFunctionDescriptions = new ArrayList<>();
Iterable<StellarFunctionInfo> stellarFunctionsInfo = StellarFunctions.FUNCTION_RESOLVER().getFunctionInfo();
stellarFunctionsInfo.forEach(stellarFunctionInfo -> {
stellarFunctionDescriptions.add(new StellarFunctionDescription(stellarFunctionInfo.getName(), stellarFunctionInfo.getDescription(), stellarFunctionInfo.getParams(), stellarFunctionInfo.getReturns()));
});
return stellarFunctionDescriptions;
}
Aggregations