|
String | getCurrentNodeName () |
|
String | getDatabaseName () |
|
HashMap< String, String > | getDependencies () |
|
long | getFunctionOid () |
|
String | getLocale () |
|
String | getNodeName () |
|
ParamReader | getParamReader () |
|
ParamReader | getSessionParamReader () |
|
Map< String, Object > | getSessionStorage () |
|
ParamReader | getUDSessionParamReader (String nsp) |
|
ParamReader | getUDSessionParamReader () |
|
SessionParamReaderMap | getUDSessionParamReaderMap () |
|
String | getUserName () |
|
void | log (String format, Object... args) |
|
void | setDependencies (HashMap< String, String > depends) |
|
void | setFunctionOid (long oid) |
|
void | setParamReader (ParamReader paramReader) |
|
void | setSessionParamReader (ParamReader sessionParamReader) |
|
void | setUDSessionParameterMap (SessionParamReaderMap udSessionParams) |
|
void | setupInformation (String sqlName, ParamReader paramReader, ParamReader sessionParamReader, String locale, String userName, String nodeName, String dbName, FileManager fileManager) |
|
|
abstract void | vlog (String logEntry) |
|
Provides UDxs with access to the Vertica server.
Vertica passes a ServerInterface instance to the setup(), destroy(), and main processing functions of each UDx. Key methods for UDx use include log() (to write to the Vertica log), getParamReader(), setParamReader(), getSessionParamReader(), and setSessionParamReader().
◆ getDatabaseName()
String com.vertica.sdk.ServerInterface.getDatabaseName |
( |
| ) |
|
- Returns
- the name of the database in which this code is executed.
◆ getFunctionOid()
long com.vertica.sdk.ServerInterface.getFunctionOid |
( |
| ) |
|
◆ getLocale()
String com.vertica.sdk.ServerInterface.getLocale |
( |
| ) |
|
- Returns
- the locale of the current session.
◆ getNodeName()
String com.vertica.sdk.ServerInterface.getNodeName |
( |
| ) |
|
- Returns
- the name of the vertica node on which this code is executed.
◆ getParamReader()
ParamReader com.vertica.sdk.ServerInterface.getParamReader |
( |
| ) |
|
- Returns
- The ParamReader that allows accessing parameter values using their names
◆ getSessionParamReader()
ParamReader com.vertica.sdk.ServerInterface.getSessionParamReader |
( |
| ) |
|
- Returns
- The SessionParamReader that allows accessing session parameter values using their names
◆ getUDSessionParamReader() [1/2]
ParamReader com.vertica.sdk.ServerInterface.getUDSessionParamReader |
( |
String |
nsp | ) |
|
- Parameters
-
- Returns
- the UDSessionParamReader for the namespace
◆ getUDSessionParamReader() [2/2]
ParamReader com.vertica.sdk.ServerInterface.getUDSessionParamReader |
( |
| ) |
|
- Returns
- The UDSessionParamReader for the default namespace
◆ getUDSessionParamReaderMap()
- Returns
- the UDSessionParamReaderMap
◆ getUserName()
String com.vertica.sdk.ServerInterface.getUserName |
( |
| ) |
|
- Returns
- the username of the current session.
◆ log()
void com.vertica.sdk.ServerInterface.log |
( |
String |
format, |
|
|
Object... |
args |
|
) |
| |
Writes a message to a log file stored in the UDxLogs directory of the database's catalog directory. The SQL name of the UDx is added to the log message, along with the string [UserMessage] to mark the entry as a message added by a call to this method.
- Parameters
-
format | a printf-style format string specifying the log message format. |
args | the arguments for the format |
◆ setFunctionOid()
void com.vertica.sdk.ServerInterface.setFunctionOid |
( |
long |
oid | ) |
|
Set the function Oid
- Parameters
-
oid | the function oid to set |
◆ setParamReader()
void com.vertica.sdk.ServerInterface.setParamReader |
( |
ParamReader |
paramReader | ) |
|
Set the paramReader of this ServerInterface when delayed creation is required Used by the code when delayed creation of the parameters is needed Users should not call this function
- Parameters
-
paramReader | the reader to set |
◆ setSessionParamReader()
void com.vertica.sdk.ServerInterface.setSessionParamReader |
( |
ParamReader |
sessionParamReader | ) |
|
Set the sessionParamReader of this ServerInterface
- Parameters
-
sessionParamReader | the reader to set |
◆ setUDSessionParameterMap()
Set the UDSessionParamReaderMap
- Parameters
-
udSessionParams | parameters to set |
◆ vlog()
abstract void com.vertica.sdk.ServerInterface.vlog |
( |
String |
logEntry | ) |
|
|
abstractprotected |
◆ fileManager
FileManager com.vertica.sdk.ServerInterface.fileManager |
File manager of the session context