use of io.confluent.ksql.function.TableFunctionFactory in project ksql by confluentinc.
the class DescribeFunctionExecutor method describeTableFunction.
private static FunctionDescriptionList describeTableFunction(final KsqlExecutionContext executionContext, final FunctionName functionName, final String statementText) {
final TableFunctionFactory tableFunctionFactory = executionContext.getMetaStore().getTableFunctionFactory(functionName);
final ImmutableList.Builder<FunctionInfo> listBuilder = ImmutableList.builder();
tableFunctionFactory.eachFunction(func -> listBuilder.add(getFunctionInfo(func.parameterInfo(), func.declaredReturnType(), func.getDescription(), func.isVariadic())));
return createFunctionDescriptionList(statementText, tableFunctionFactory.getMetadata(), listBuilder.build(), FunctionType.TABLE);
}
Aggregations