public final class Compiler extends Translator
Modifier and Type | Field and Description |
---|---|
(package private) static Trees |
compiled_lambdas |
(package private) static JavaCompiler |
compiler |
(package private) static DiagnosticCollector<JavaFileObject> |
diagnostics |
static String |
jar_path |
(package private) static int |
lambda_num |
(package private) static String |
tmp_dir |
(package private) static int |
user_functions_num |
algebraic_operators, data_constructors, functions, global_datatype_env, global_functions, global_macros, global_type_env, global_vars, identity, impure_functions, monoids, plan_names, plans_with_distributed_lambdas, repeat_variables, st, type_env, type_names
Constructor and Description |
---|
Compiler() |
Modifier and Type | Method and Description |
---|---|
static void |
clean() |
static Tree |
compile(Tree query)
compile the functional arguments of the MRQL operators using the Java compiler
|
static Function |
compiled(ClassLoader cl,
String lambda_name)
load the Java class of the anonymous function with name lambda_name
|
alpha_equivalent, alpha_equivalent, collection_type, error, free_variables, global_reset, identity, is_collection, is_persistent_collection, is_pure, new_var, occurences, pattern_variables, persistent_collection, print_aggregates, reify, reify, reset, subst_list, subst_var, subst, template, top_level, transient_collection, translate_select, union
print_plan, print_query, print_type, print, reify
static JavaCompiler compiler
static DiagnosticCollector<JavaFileObject> diagnostics
static final String tmp_dir
public static String jar_path
static int lambda_num
static int user_functions_num
static Trees compiled_lambdas
public static void clean() throws IOException
IOException
public static final Tree compile(Tree query)
query
- the expression to compilepublic static final Function compiled(ClassLoader cl, String lambda_name) throws Exception
Exception
Copyright © 2013–2014 The Apache Software Foundation. All rights reserved.