public class BytecodeGeneratorContext extends Object
Constructor and Description |
---|
BytecodeGeneratorContext(RowExpressionCompiler rowExpressionCompiler,
io.airlift.bytecode.Scope scope,
CallSiteBinder callSiteBinder,
CachedInstanceBinder cachedInstanceBinder,
FunctionRegistry registry) |
Modifier and Type | Method and Description |
---|---|
io.airlift.bytecode.BytecodeNode |
generate(RowExpression expression) |
io.airlift.bytecode.BytecodeNode |
generate(RowExpression expression,
Optional<Class> lambdaInterface) |
io.airlift.bytecode.BytecodeNode |
generateCall(String name,
ScalarFunctionImplementation function,
List<io.airlift.bytecode.BytecodeNode> arguments)
Generates a function call with null handling, automatic binding of session parameter, etc.
|
CallSiteBinder |
getCallSiteBinder() |
FunctionRegistry |
getRegistry() |
io.airlift.bytecode.Scope |
getScope() |
io.airlift.bytecode.Variable |
wasNull() |
public BytecodeGeneratorContext(RowExpressionCompiler rowExpressionCompiler, io.airlift.bytecode.Scope scope, CallSiteBinder callSiteBinder, CachedInstanceBinder cachedInstanceBinder, FunctionRegistry registry)
public io.airlift.bytecode.Scope getScope()
public CallSiteBinder getCallSiteBinder()
public io.airlift.bytecode.BytecodeNode generate(RowExpression expression)
public io.airlift.bytecode.BytecodeNode generate(RowExpression expression, Optional<Class> lambdaInterface)
public FunctionRegistry getRegistry()
public io.airlift.bytecode.BytecodeNode generateCall(String name, ScalarFunctionImplementation function, List<io.airlift.bytecode.BytecodeNode> arguments)
public io.airlift.bytecode.Variable wasNull()
Copyright © 2012–2019. All rights reserved.