Package io.trino.sql.gen
Class VarArgsToMapAdapterGenerator
java.lang.Object
io.trino.sql.gen.VarArgsToMapAdapterGenerator
-
Method Summary
-
Method Details
-
generateVarArgsToMapAdapter
public static MethodHandle generateVarArgsToMapAdapter(Class<?> returnType, List<Class<?>> javaTypes, List<String> names, Function<Map<String, Object>, Object> function) Generate byte code that- takes a specified number of variables as arguments (types of the arguments are provided in
javaTypes) - put the variables in a map (keys of the map are provided in
names) - invoke the provided
functionwith the map - return with the result of the function call (type must match
returnType)
- takes a specified number of variables as arguments (types of the arguments are provided in
-