public class Interpreter extends TypeInference
Modifier and Type | Field and Description |
---|---|
(package private) static int |
coerce_method |
(package private) static String |
false_name |
(package private) static MRData |
false_value |
protected static Environment |
global_env |
static Tree |
identity_mapper |
(package private) static boolean |
is_dataset |
(package private) static String |
null_name |
(package private) static MRData |
null_value |
(package private) static Tree |
query_plan |
(package private) static Tree |
query_type |
(package private) static int |
tab_count |
(package private) static String |
true_name |
(package private) static MRData |
true_value |
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 |
---|
Interpreter() |
Modifier and Type | Method and Description |
---|---|
(package private) static Tree |
closure(Tree e,
Environment env)
replace all non-free variables with their reified values
|
(package private) static MRData |
evalE(Tree e)
evaluate an MRQL expression in memory
|
(package private) static MRData |
evalE(Tree e,
Environment env)
evaluate an MRQL expression in memory and print tracing info
|
static Function |
evalF(Tree fnc,
Environment env)
evaluate an MRQL function in memory
|
(package private) static Bag |
evalM(Tree e,
Environment env)
evaluate MRQL physical operators in memory (returns a Bag)
|
(package private) static Bag |
evalMM(Tree e,
Environment env)
evaluate MRQL physical operators in memory (returns a Bag)
|
(package private) static Bag |
evalS(Tree e,
Environment env)
evaluate MRQL physical operators in memory (returns a Bag)
|
static MRData |
lookup_global_binding(String v)
retrieve a global variable binding
|
static void |
new_global_binding(String var,
MRData value)
insert a new global variable binding
|
static void |
remove_global_binding(String v)
remove a global variable binding
|
static void |
set_global_bindings(Environment env) |
static String |
tabs(int n) |
(package private) static Tree |
translate_expression(Tree e)
translate an MRQL expression e into a physical plan
|
static MRData |
variable_lookup(String v,
Environment environment)
retrieve variable binding
|
compare_types, equal_types, expand, make_persistent_type, normalize_type, subtype, subtype, subtype, type_error, type_inference, type_inference2, unify, unify
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
public static final Tree identity_mapper
protected static Environment global_env
static final int coerce_method
static final String true_name
static final String false_name
static final String null_name
static final MRData null_value
static final MRData true_value
static final MRData false_value
static int tab_count
static Tree query_type
static Tree query_plan
static boolean is_dataset
public static final MRData variable_lookup(String v, Environment environment)
public static final void new_global_binding(String var, MRData value)
public static void remove_global_binding(String v)
public static MRData lookup_global_binding(String v)
public static void set_global_bindings(Environment env)
public static final Function evalF(Tree fnc, Environment env)
public static String tabs(int n)
static final MRData evalE(Tree e, Environment env)
static final Bag evalS(Tree e, Environment env)
static final Bag evalM(Tree e, Environment env)
static final Bag evalMM(Tree e, Environment env)
static final Tree closure(Tree e, Environment env)
Copyright © 2013 The Apache Software Foundation. All rights reserved.