com.vertica.sdk.TransformFunction Class Reference

Interface for User Defined Transform, the actual code to process a partition of data coming in as a stream. More...

Inheritance diagram for com.vertica.sdk.TransformFunction:

com.vertica.sdk.UDXObjectCancelable com.vertica.sdk.UDXObject List of all members.

Public Member Functions

void cancel (ServerInterface srvInterface)
void destroy (ServerInterface srvInterface, SizedColumnTypes argTypes)
boolean isCanceled ()
abstract void processPartition (ServerInterface srvInterface, PartitionReader input_reader, PartitionWriter input_writer) throws UdfException, DestroyInvocation
void setup (ServerInterface srvInterface, SizedColumnTypes argTypes)

Detailed Description

Interface for User Defined Transform, the actual code to process a partition of data coming in as a stream.


Member Function Documentation

void com.vertica.sdk.UDXObjectCancelable.cancel ( ServerInterface  srvInterface  )  [inherited]

This function is invoked from a different thread when the execution is canceled This baseclass cancel should be called in any override.

void com.vertica.sdk.UDXObject.destroy ( ServerInterface  srvInterface,
SizedColumnTypes  argTypes 
) [inherited]

Perform per instance destruction. This function may throw errors

boolean com.vertica.sdk.UDXObjectCancelable.isCanceled (  )  [inherited]

Returns true if execution was canceled.

abstract void com.vertica.sdk.TransformFunction.processPartition ( ServerInterface  srvInterface,
PartitionReader  input_reader,
PartitionWriter  input_writer 
) throws UdfException, DestroyInvocation [pure virtual]

Invoke a user defined transform on a set of rows. As the name suggests, a batch of rows are passed in for every invocation to amortize performance.

Parameters:
srvInterface a ServerInterface object used to communicate with Vertica
input_reader input rows
output_writer output location

void com.vertica.sdk.UDXObject.setup ( ServerInterface  srvInterface,
SizedColumnTypes  argTypes 
) [inherited]

Perform per instance initialization. This function may throw errors.