public final class TopLevel extends Interpreter
Modifier and Type | Field and Description |
---|---|
(package private) static Tree |
xml_type |
coerce_method, false_name, false_value, global_env, identity_mapper, is_dataset, null_name, null_value, query_plan, query_type, tab_count, trace_count, true_name, 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 |
---|
TopLevel() |
Modifier and Type | Method and Description |
---|---|
static void |
assign(String v,
Tree e)
handle the assignment v=e
|
static Tree |
distributed_assign(String v,
Tree e)
handle the assignment v:=e
|
static void |
evaluate_top_level(Tree expr)
the MRQL top-level interfacse to evaluate a single MRQL expression or command
|
static MRData |
expression(Tree e)
translate, evaluate, and print the results of an MRQL expression e
|
static MRData |
expression(Tree e,
boolean print)
translate and evaluate an MRQL expression into MRData
|
static void |
functiondef(String fnc,
Trees params,
Tree out_type,
Tree body)
define a new function
|
static Tree |
store(String v,
Tree e)
bind v to the result of e
|
static boolean |
stream_expression(Tree e)
true, if e is a strem-processing expression
|
closure, dataSetCollect, evalE, evalE, evalF, evalM, evalMM, evalS, lookup_distributed_binding, lookup_global_binding, new_distributed_binding, new_global_binding, pre_trace, remove_global_binding, set_global_bindings, tabs, trace, translate_expression, variable_lookup
compare_types, equal_types, expand, make_persistent_type, normalize_type, subtype_unify, 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
static Tree xml_type
public static MRData expression(Tree e, boolean print)
e
- MRQL query to be evaluatedprint
- do we want to print the result?public static final MRData expression(Tree e)
e
- MRQL query to be evaluatedpublic static final Tree distributed_assign(String v, Tree e)
public static final void functiondef(String fnc, Trees params, Tree out_type, Tree body)
fnc
- function nameparams
- parameter listout_type
- output typebody
- function bodypublic static final boolean stream_expression(Tree e)
public static final void evaluate_top_level(Tree expr)
Copyright © 2013-2016 The Apache Software Foundation. All Rights Reserved.