Uses of Interface
net.hydromatic.morel.eval.Code
-
Packages that use Code Package Description net.hydromatic.morel.compile Validates programs (represented asAstNode), deduces their type, and compiles them into code that can be evaluated.net.hydromatic.morel.eval Evaluates expressions.net.hydromatic.morel.foreign Provides access to external data sources. -
-
Uses of Code in net.hydromatic.morel.compile
Subinterfaces of Code in net.hydromatic.morel.compile Modifier and Type Interface Description (package private) static interfaceCalciteCompiler.RelCodeExtension toCodethat can also provide a translation to relational algebra.Classes in net.hydromatic.morel.compile that implement Code Modifier and Type Class Description private static classCompiler.LinkCodeA piece of code that is references another piece of code.private static classCompiler.MatchCodeCode that implementsCompiler.compileMatchList(Context, List).Fields in net.hydromatic.morel.compile declared as Code Modifier and Type Field Description private CodeCompiler.LinkCode. refCodeFields in net.hydromatic.morel.compile with type parameters of type Code Modifier and Type Field Description private com.google.common.collect.ImmutableList<Pair<Core.Pat,Code>>Compiler.MatchCode. patCodesMethods in net.hydromatic.morel.compile that return Code Modifier and Type Method Description CodeCompiler. compile(Compiler.Context cx, Core.Exp expression)CodeCompiler. compile(Environment env, Core.Exp expression)protected CodeCompiler. compileApply(Compiler.Context cx, Core.Apply apply)CodeCalciteCompiler. compileArg(Compiler.Context cx, Core.Exp expression)CodeCompiler. compileArg(Compiler.Context cx, Core.Exp expression)Compiles the argument to "apply".private CodeCompiler. compileCall(Compiler.Context cx, BuiltIn builtIn, Core.Exp arg, Pos pos)private CodeCompiler. compileFieldName(Compiler.Context cx, Core.NamedPat idPat)private CodeCompiler. compileFieldNames(Compiler.Context cx, List<Core.IdPat> fieldNames)protected CodeCompiler. compileFrom(Compiler.Context cx, Core.From from)private CodeCompiler. compileLet(Compiler.Context cx, Core.Let let)private CodeCompiler. compileLocal(Compiler.Context cx, Core.Local local)private CodeCompiler. compileMatchList(Compiler.Context cx, List<Core.Match> matchList)Compiles amatchexpression.protected CodeCalciteCompiler. finishCompileApply(Compiler.Context cx, Applicable fnValue, Code argCode, Type argType)protected CodeCalciteCompiler. finishCompileApply(Compiler.Context cx, Code fnCode, Code argCode, Type argType)protected CodeCompiler. finishCompileApply(Compiler.Context cx, Applicable fnValue, Code argCode, Type argType)protected CodeCompiler. finishCompileApply(Compiler.Context cx, Code fnCode, Code argCode, Type argType)protected CodeCalciteCompiler. finishCompileLet(Compiler.Context cx, List<Code> matchCodes_, Code resultCode_, Type resultType)protected CodeCompiler. finishCompileLet(Compiler.Context cx, List<Code> matchCodes, Code resultCode, Type resultType)(package private) CodeCalciteCompiler. toRel4(Environment env, Code code, Type type)Methods in net.hydromatic.morel.compile that return types with arguments of type Code Modifier and Type Method Description List<Code>Compiler. compileArgs(Compiler.Context cx, Iterable<? extends Core.Exp> expressions)Compiles the tuple arguments to "apply".private Pair<Core.Pat,Code>Compiler. compileMatch(Compiler.Context cx, Core.Match match)Methods in net.hydromatic.morel.compile with parameters of type Code Modifier and Type Method Description protected CodeCalciteCompiler. finishCompileApply(Compiler.Context cx, Applicable fnValue, Code argCode, Type argType)protected CodeCalciteCompiler. finishCompileApply(Compiler.Context cx, Code fnCode, Code argCode, Type argType)protected CodeCompiler. finishCompileApply(Compiler.Context cx, Applicable fnValue, Code argCode, Type argType)protected CodeCompiler. finishCompileApply(Compiler.Context cx, Code fnCode, Code argCode, Type argType)protected CodeCalciteCompiler. finishCompileLet(Compiler.Context cx, List<Code> matchCodes_, Code resultCode_, Type resultType)protected CodeCompiler. finishCompileLet(Compiler.Context cx, List<Code> matchCodes, Code resultCode, Type resultType)private voidCompiler. link(Map<Core.NamedPat,Compiler.LinkCode> linkCodes, Core.Pat pat, Code code)static CalciteCompiler.RelCodeCalciteCompiler.RelCode. of(Code code, Predicate<CalciteCompiler.RelContext> c)voidTracer. onPlan(Code code)Called when code is generated.voidTracers.DelegatingTracer. onPlan(Code code)voidTracers.EmptyTracer. onPlan(Code code)(package private) CodeCalciteCompiler. toRel4(Environment env, Code code, Type type)Method parameters in net.hydromatic.morel.compile with type arguments of type Code Modifier and Type Method Description (package private) voidCompiler. compileDecl(Compiler.Context cx, Core.Decl decl, boolean isDecl, Set<Core.Exp> queriesToWrap, List<Code> matchCodes, List<Binding> bindings, List<Compiler.Action> actions)private voidCompiler. compileValDecl(Compiler.Context cx, Core.ValDecl valDecl, boolean isDecl, Set<Core.Exp> queriesToWrap, List<Code> matchCodes, List<Binding> bindings, List<Compiler.Action> actions)protected CodeCalciteCompiler. finishCompileLet(Compiler.Context cx, List<Code> matchCodes_, Code resultCode_, Type resultType)protected CodeCompiler. finishCompileLet(Compiler.Context cx, List<Code> matchCodes, Code resultCode, Type resultType)static TracerTracers. withOnPlan(Tracer tracer, Consumer<Code> consumer)Returns a tracer that performs the given action on code, then calls the underlying tracer.Constructor parameters in net.hydromatic.morel.compile with type arguments of type Code Constructor Description MatchCode(com.google.common.collect.ImmutableList<Pair<Core.Pat,Code>> patCodes, Pos pos) -
Uses of Code in net.hydromatic.morel.eval
Classes in net.hydromatic.morel.eval that implement Code Modifier and Type Class Description private static classCodes.AndAlsoCodeCode that implementsCodes.andAlso(Code, Code).private static classCodes.ApplyCodeApplies anApplicableto aCode.private static classCodes.ApplyCode2Applies anApplicable2to twoCodearguments.private static classCodes.ApplyCode3Applies anApplicable3to threeCodearguments.(package private) static classCodes.ApplyCodeCodeprivate static classCodes.ConstantCodeCode that implements a constant.private static classCodes.GetCodeCode that retrieves the value of a variable from the environment.private static classCodes.GetTupleCodeCode that retrieves, as a tuple, the value of several variables from the environment.private static classCodes.Let1CodeCode that implementsCodes.let(List, Code)with one argument.private static classCodes.LetCodeCode that implementsCodes.let(List, Code)with multiple arguments.private static classCodes.OrElseCodeCode that implementsCodes.orElse(Code, Code).static classCodes.TupleCodeA code that evaluates expressions and creates a tuple with the results.(package private) static classCodes.WrapRelListFields in net.hydromatic.morel.eval declared as Code Modifier and Type Field Description private CodeCodes.ApplyCode. argCodeCodeCodes.ApplyCodeCode. argCodeprivate CodeCodes.ApplyCode2. argCode0private CodeCodes.ApplyCode3. argCode0private CodeCodes.ApplyCode2. argCode1private CodeCodes.ApplyCode3. argCode1private CodeCodes.ApplyCode3. argCode2(package private) CodeCodes.CollectRowSink. codeprivate CodeCodes.ScanRowSink. codeCodeCodes.WrapRelList. codeCodeSession. codeThe plan of the previous command.private CodeCodes.AndAlsoCode. code0private CodeCodes.OrElseCode. code0private CodeCodes.AndAlsoCode. code1private CodeCodes.OrElseCode. code1(package private) CodeCodes.ScanRowSink. conditionCode(package private) CodeCodes.WhereRowSink. filterCodeCodeCodes.ApplyCodeCode. fnCode(package private) CodeCodes.GroupRowSink. keyCodeprivate CodeCodes.Let1Code. matchCodeprivate CodeCodes.Let1Code. resultCodeprivate CodeCodes.LetCode. resultCodeFields in net.hydromatic.morel.eval with type parameters of type Code Modifier and Type Field Description (package private) List<Pair<Code,Boolean>>Codes.OrderRowSink. codesList<Code>Codes.TupleCode. codesprivate com.google.common.collect.ImmutableList<Code>Codes.YieldRowSink. codesprivate com.google.common.collect.ImmutableList<Code>Codes.LetCode. matchCodesprivate com.google.common.collect.ImmutableList<Pair<Core.Pat,Code>>Closure. patCodesA list of (pattern, code) pairs.Methods in net.hydromatic.morel.eval that return Code Modifier and Type Method Description static CodeCodes. andAlso(Code code0, Code code1)Returns a Code that evaluates "andalso".static CodeCodes. apply(Applicable fnValue, Code argCode)Generates the code for applying a function value to an argument.static CodeCodes. apply(Code fnCode, Code argCode)Generates the code for applying a function (or function value) to an argument.static CodeCodes. apply2(Applicable2 fnValue, Code argCode0, Code argCode1)Generates the code for applying a function value to two arguments.static CodeCodes. apply3(Applicable3 fnValue, Code argCode0, Code argCode1, Code argCode2)Generates the code for applying a function value to three arguments.default CodeApplicable. asCode()Converts this Applicable to a Code that has similar effect (but is less efficient).static CodeCodes. constant(Object value)Returns a Code that evaluates to the same value in all environments.static CodeCodes. from(Supplier<Codes.RowSink> rowSinkFactory)static CodeCodes. get(String name)Returns a Code that returns the value of variable "name" in the current environment.static CodeCodes. getTuple(Iterable<String> names)Returns a Code that returns a tuple consisting of the values of variables "name0", ...static CodeCodes. let(List<Code> matchCodes, Code resultCode)static CodeCodes. list(Iterable<? extends Code> codes)static CodeCodes. orElse(Code code0, Code code1)Returns a Code that evaluates "orelse".static CodeCodes. strip(Code code)Removes wrappers, in particular the one due toCodes.wrapRelList(Code).static CodeCodes. tuple(Iterable<? extends Code> codes)static CodeCodes. wrapRelList(Code code)Methods in net.hydromatic.morel.eval with parameters of type Code Modifier and Type Method Description static ApplicableCodes. aggregate(Environment env0, Code aggregateCode, List<String> names, Code argumentCode)static CodeCodes. andAlso(Code code0, Code code1)Returns a Code that evaluates "andalso".static CodeCodes. apply(Applicable fnValue, Code argCode)Generates the code for applying a function value to an argument.static CodeCodes. apply(Code fnCode, Code argCode)Generates the code for applying a function (or function value) to an argument.static CodeCodes. apply2(Applicable2 fnValue, Code argCode0, Code argCode1)Generates the code for applying a function value to two arguments.static CodeCodes. apply3(Applicable3 fnValue, Code argCode0, Code argCode1, Code argCode2)Generates the code for applying a function value to three arguments.static Codes.RowSinkCodes. collectRowSink(Code code)Creates aCodes.RowSinkto collect the results of afromexpression.static StringCodes. describe(Code code)Describes aCode.static Codes.RowSinkCodes. groupRowSink(Code keyCode, com.google.common.collect.ImmutableList<Applicable> aggregateCodes, com.google.common.collect.ImmutableList<String> inNames, com.google.common.collect.ImmutableList<String> keyNames, com.google.common.collect.ImmutableList<String> outNames, Codes.RowSink rowSink)Creates aCodes.RowSinkfor agroupclause.private static booleanCodes.ScanRowSink. isConstantTrue(Code code)static CodeCodes. let(List<Code> matchCodes, Code resultCode)static CodeCodes. orElse(Code code0, Code code1)Returns a Code that evaluates "orelse".static Codes.RowSinkCodes. scanRowSink(Op op, Core.Pat pat, Code code, Code conditionCode, Codes.RowSink rowSink)Creates aCodes.RowSinkfor ajoinclause.static CodeCodes. strip(Code code)Removes wrappers, in particular the one due toCodes.wrapRelList(Code).static Codes.RowSinkCodes. whereRowSink(Code filterCode, Codes.RowSink rowSink)Creates aCodes.RowSinkfor awhereclause.static CodeCodes. wrapRelList(Code code)Method parameters in net.hydromatic.morel.eval with type arguments of type Code Modifier and Type Method Description static CodeCodes. let(List<Code> matchCodes, Code resultCode)static CodeCodes. list(Iterable<? extends Code> codes)static Codes.RowSinkCodes. orderRowSink(com.google.common.collect.ImmutableList<Pair<Code,Boolean>> codes, com.google.common.collect.ImmutableList<Binding> bindings, Codes.RowSink rowSink)Creates aCodes.RowSinkfor aorderclause.static CodeCodes. tuple(Iterable<? extends Code> codes)static Codes.RowSinkCodes. yieldRowSink(Map<String,Code> yieldCodes, Codes.RowSink rowSink)Creates aCodes.RowSinkfor a non-terminalyieldstep.Constructors in net.hydromatic.morel.eval with parameters of type Code Constructor Description AndAlsoCode(Code code0, Code code1)ApplyCode(Applicable fnValue, Code argCode)ApplyCode2(Applicable2 fnValue, Code argCode0, Code argCode1)ApplyCode3(Applicable3 fnValue, Code argCode0, Code argCode1, Code argCode2)ApplyCodeCode(Code fnCode, Code argCode)CollectRowSink(Code code)GroupRowSink(Code keyCode, com.google.common.collect.ImmutableList<Applicable> aggregateCodes, com.google.common.collect.ImmutableList<String> inNames, com.google.common.collect.ImmutableList<String> keyNames, com.google.common.collect.ImmutableList<String> outNames, Codes.RowSink rowSink)Let1Code(Code matchCode, Code resultCode)LetCode(com.google.common.collect.ImmutableList<Code> matchCodes, Code resultCode)OrElseCode(Code code0, Code code1)ScanRowSink(Op op, Core.Pat pat, Code code, Code conditionCode, Codes.RowSink rowSink)WhereRowSink(Code filterCode, Codes.RowSink rowSink)WrapRelList(Code code)Constructor parameters in net.hydromatic.morel.eval with type arguments of type Code Constructor Description Closure(EvalEnv evalEnv, com.google.common.collect.ImmutableList<Pair<Core.Pat,Code>> patCodes, Pos pos)Not a public API.LetCode(com.google.common.collect.ImmutableList<Code> matchCodes, Code resultCode)OrderRowSink(List<Pair<Code,Boolean>> codes, com.google.common.collect.ImmutableList<String> names, Codes.RowSink rowSink)TupleCode(com.google.common.collect.ImmutableList<Code> codes) -
Uses of Code in net.hydromatic.morel.foreign
Classes in net.hydromatic.morel.foreign that implement Code Modifier and Type Class Description private static classCalcite.CalciteCodeEvaluates a Calcite relational expression, converting it to Morel list typetype.Fields in net.hydromatic.morel.foreign declared as Code Modifier and Type Field Description (package private) CodeCalciteFunctions.MorelScalarFunction.Compiled. code(package private) CodeCalciteFunctions.MorelTableFunction.Compiled. codeMethods in net.hydromatic.morel.foreign that return Code Modifier and Type Method Description CodeCalcite. code(Environment env, org.apache.calcite.rel.RelNode rel, Type type)Creates aCodethat evaluates a Calcite relational expression, converting it to Morel list typetype.Constructors in net.hydromatic.morel.foreign with parameters of type Code Constructor Description Compiled(String ml, Code code, EvalEnv evalEnv, Function<Object,org.apache.calcite.linq4j.Enumerable<Object[]>> f)
-