C++ SDK Documentation  8.1
Vertica::UnsizedUDSource Class Referenceabstract

Base class for UDSource. Use, with IterativeSourceFactory, if computing the size of a source up front would be prohibitively expensive, or if the number of distinct sources would be prohibitively large to use the standard API. Typically you should use UDSource instead. More...

Inheritance diagram for Vertica::UnsizedUDSource:
Inheritance graph
Collaboration diagram for Vertica::UnsizedUDSource:
Collaboration graph

Public Member Functions

virtual void destroy (ServerInterface &srvInterface)
 
virtual void destroy (ServerInterface &srvInterface, SessionParamWriterMap &udSessionParams)
 
virtual Portion getPortion ()=0
 
virtual std::string getUri ()
 
virtual StreamState process (ServerInterface &srvInterface, DataBuffer &output)=0
 
virtual void setup (ServerInterface &srvInterface)
 

Detailed Description

Base class for UDSource. Use, with IterativeSourceFactory, if computing the size of a source up front would be prohibitively expensive, or if the number of distinct sources would be prohibitively large to use the standard API. Typically you should use UDSource instead.

Not intended or optimized for typical applications.

Member Function Documentation

virtual Portion Vertica::UnsizedUDSource::getPortion ( )
pure virtual

Return the portion this source object is responsible for (if any).

This is used by the parser to determine how much data to parse. It is also used to uniquely identify a source in the load_sources view. As such, this will be called BEFORE setup() (for load_sources) and after setup (for parsing).

Implemented in Vertica::UDSource.

virtual std::string Vertica::UnsizedUDSource::getUri ( )
inlinevirtual

UnsizedUDSource::getUri()

Return the URI of the current source of data.

This function will be invoked during execution to fill in monitoring information.