Package | Description |
---|---|
org.apache.hive.hplsql | |
org.apache.hive.hplsql.functions |
Modifier and Type | Field and Description |
---|---|
static Var |
Var.Empty |
static Var |
Var.Null |
Modifier and Type | Method and Description |
---|---|
Var |
Var.cast(String val)
Cast a new string value to the variable
|
Var |
Var.cast(Var val)
Cast a new value to the variable
|
Var |
Expression.changeDateByInt(Date d,
Long i,
boolean add)
Add or subtract the specified number of days from DATE
|
Var |
Exec.consumeReturnCursor(String routine)
Get the return cursor defined in the specified procedure
|
Var |
Var.decrement(Long i)
Decrement an integer value
|
Var |
Exec.findCursor(String name)
Find a cursor variable by name
|
Var |
Exec.findVariable(String name)
Find an existing variable by name
|
Var |
Exec.findVariable(Var name) |
Var |
Var.increment(Long i)
Increment an integer value
|
Var |
Exec.run()
Run already compiled HPL/SQL script (also used from Hive UDF)
|
Var |
Var.setValue(Boolean val) |
Var |
Var.setValue(Long val) |
Var |
Var.setValue(ResultSet rs,
ResultSetMetaData rsm,
int idx)
Set the new value from the result set
|
Var |
Var.setValues(ResultSet rs,
ResultSetMetaData rsm)
Set ROW values from the result set
|
Var |
Exec.setVariable(String name) |
Var |
Exec.setVariable(String name,
int value) |
Var |
Exec.setVariable(String name,
String value) |
Var |
Exec.setVariable(String name,
Var value)
Set a variable using a value from the parameter or the stack
|
Var |
Exec.setVariableToNull(String name)
Set variable to NULL
|
Var |
Exec.stackPeek()
Select a value from the stack, but not remove
|
Var |
Exec.stackPop()
Pop a value from the stack
|
Modifier and Type | Method and Description |
---|---|
Stack<Var> |
Exec.getStack() |
Modifier and Type | Method and Description |
---|---|
void |
Exec.addReturnCursor(Var var)
Add a return cursor visible to procedure callers and clients
|
void |
Exec.addVariable(Var var)
Add a local variable to the current scope
|
Var |
Var.cast(Var val)
Cast a new value to the variable
|
int |
Var.compareTo(Var v)
Compare values
|
Var |
Exec.findVariable(Var name) |
BigDecimal |
Var.percentDiff(Var var)
Calculate difference between values in percent
|
Var |
Exec.setVariable(String name,
Var value)
Set a variable using a value from the parameter or the stack
|
void |
Exec.stackPush(Var var)
Push a value to the stack
|
void |
Exec.trace(org.antlr.v4.runtime.ParserRuleContext ctx,
Var var,
ResultSet rs,
ResultSetMetaData rm,
int idx)
Trace values retrived from the database
|
Constructor and Description |
---|
Var(String name,
String type,
String len,
String scale,
Var def) |
Var(Var var) |
Modifier and Type | Method and Description |
---|---|
static Var |
FunctionDatetime.currentDate() |
static Var |
FunctionDatetime.currentTimestamp(int precision) |
static Var |
FunctionMisc.currentUser() |
Modifier and Type | Method and Description |
---|---|
ArrayList<Var> |
Function.getActualCallParameters(HplsqlParser.Expr_func_paramsContext actual)
Evaluate actual call parameters
|
Modifier and Type | Method and Description |
---|---|
void |
Function.setCallParameters(HplsqlParser.Expr_func_paramsContext actual,
ArrayList<Var> actualValues,
HplsqlParser.Create_routine_paramsContext formal,
HashMap<String,Var> out)
Set parameters for user-defined function call
|
void |
Function.setCallParameters(HplsqlParser.Expr_func_paramsContext actual,
ArrayList<Var> actualValues,
HplsqlParser.Create_routine_paramsContext formal,
HashMap<String,Var> out)
Set parameters for user-defined function call
|
Copyright © 2016 The Apache Software Foundation. All rights reserved.