com.vertica.sdk.TransformFunctionFactory Class Reference

Interface to provide User Defined Transform compile time information. More...

Inheritance diagram for com.vertica.sdk.TransformFunctionFactory:

com.vertica.sdk.UDXFactory List of all members.

Public Types

 FUNCTION
enum  UDXType {
  FUNCTION, TRANSFORM, ANALYTIC, MULTI_TRANSFORM,
  AGGREGATE, LOAD_SOURCE, LOAD_FILTER, LOAD_PARSER
}

Public Member Functions

abstract TransformFunction createTransformFunction (ServerInterface srvInterface)
void getParameterType (ServerInterface srvInterface, SizedColumnTypes parameterTypes)
void getPerInstanceResources (ServerInterface srvInterface, VResources res)
abstract void getPrototype (ServerInterface srvInterface, ColumnTypes argTypes, ColumnTypes returnType)
abstract void getReturnType (ServerInterface srvInterface, SizedColumnTypes argTypes, SizedColumnTypes returnType) throws UdfException
Override UDXType getUDXFactoryType ()

Protected Attributes

long libOid
String sqlName

Detailed Description

Interface to provide User Defined Transform compile time information.


Member Enumeration Documentation

enum com::vertica::sdk::UDXFactory::UDXType [inherited]

The type of UDX instance this factory produces


Member Function Documentation

abstract TransformFunction com.vertica.sdk.TransformFunctionFactory.createTransformFunction ( ServerInterface  srvInterface  )  [pure virtual]

Called when Vertica needs a new TransformFunction object to process a UDTF function call.

Returns:
an TransformFunction object which implements the UDx API described by this metadata.
Parameters:
srvInterface a ServerInterface object used to communicate with Vertica
Note:
More than one object may be instantiated per query.

void com.vertica.sdk.UDXFactory.getParameterType ( ServerInterface  srvInterface,
SizedColumnTypes  parameterTypes 
) [inherited]

Function to tell Vertica the name and types of parameters that this function uses. Vertica will use this to warn function callers that certain parameters they provide are not affecting anything, or that certain parameters that are not being set are reverting to default values.

void com.vertica.sdk.UDXFactory.getPerInstanceResources ( ServerInterface  srvInterface,
VResources  res 
) [inherited]

Set the resource required for each instance of the UDX Object subclass

Parameters:
srvInterface a ServerInterface object used to communicate with Vertica
res a VResources object used to tell Vertica what resources are needed by the UDX

abstract void com.vertica.sdk.UDXFactory.getPrototype ( ServerInterface  srvInterface,
ColumnTypes  argTypes,
ColumnTypes  returnType 
) [pure virtual, inherited]

Provides the argument and return types of the UDX

abstract void com.vertica.sdk.UDXFactory.getReturnType ( ServerInterface  srvInterface,
SizedColumnTypes  argTypes,
SizedColumnTypes  returnType 
) throws UdfException [pure virtual, inherited]

Function to tell Vertica what the return types (and length/precision if necessary) of this UDX are.

For CHAR/VARCHAR types, specify the max length,

For NUMERIC types, specify the precision and scale.

For Time types (with or without time zone), specify the precision, -1 means unspecified/don't care

For IntervalYM/IntervalDS types, specify the precision and range

For all other types, no length/precision specification needed

Parameters:
argTypes Provides the data types of arguments that this UDT was called with. This may be used to modify the return types accordingly.
returnType User code must fill in the names and data types returned by the UDT.

Override UDXType com.vertica.sdk.TransformFunctionFactory.getUDXFactoryType (  )  [virtual]

Returns:
the object type internally used by Vertica

Implements com.vertica.sdk.UDXFactory.