SqlToCBulkConverter< FunctorT > Class Template Reference

Template defining the SQL to C bulk converter based on a specific functor class. More...

Inherits Simba::Support::ISqlToCBulkConverter.

List of all members.

Public Member Functions

virtual simba_unsigned_native Convert (const AbstractColumnSegment &in_fromSegment, void *in_toDataPtr, simba_signed_native in_toDataLength, simba_signed_native in_toDataOffset, simba_signed_native *in_toLengthPtr, simba_signed_native in_toLengthOffset, IBulkConversionListener &in_listener)
 Convert the multiple row values (data retrieved and described in the given column segment by the DSII) corresponding to the SQL data into the given C data and length indicators.
 SqlToCBulkConverter (const SqlTypeMetadata &in_source, const SqlCTypeMetadata &in_target)
 Constructor.

Protected Member Functions

virtual simba_unsigned_native ConvertCustom (const AbstractColumnSegment &, void *, simba_signed_native, simba_signed_native, simba_signed_native *, simba_signed_native, IBulkConversionListener &)
 Implement the default SQL to C bulk conversion for custom column segments.
simba_unsigned_native ConvertDataLength (const DataLengthColumnSegment &in_fromSegment, void *in_toDataPtr, simba_signed_native in_toDataLength, simba_signed_native in_toDataOffset, simba_signed_native *in_toLengthPtr, simba_signed_native in_toLengthOffset, IBulkConversionListener &in_listener)
 Implement the SQL to C bulk conversion optimized for the data/length column segment strategy.
simba_unsigned_native ConvertFixRowSize (const FixedRowSizeColumnSegment &in_fromSegment, void *in_toDataPtr, simba_signed_native in_toDataLength, simba_signed_native in_toDataOffset, simba_signed_native *in_toLengthPtr, simba_signed_native in_toLengthOffset, IBulkConversionListener &in_listener)
 Implement the SQL to C bulk conversion optimized for the fix row size column segment strategy.

Detailed Description

template<typename FunctorT>
class Simba::Support::SqlToCBulkConverter< FunctorT >

Template defining the SQL to C bulk converter based on a specific functor class.


Constructor & Destructor Documentation

SqlToCBulkConverter ( const SqlTypeMetadata in_source,
const SqlCTypeMetadata in_target 
) [inline]

Constructor.

Parameters:
in_source Metadata of the source (SQL data).
in_target Metadata of the target (C data).

Member Function Documentation

virtual simba_unsigned_native Convert ( const AbstractColumnSegment in_fromSegment,
void *  in_toDataPtr,
simba_signed_native  in_toDataLength,
simba_signed_native  in_toDataOffset,
simba_signed_native in_toLengthPtr,
simba_signed_native  in_toLengthOffset,
IBulkConversionListener in_listener 
) [inline, virtual]

Convert the multiple row values (data retrieved and described in the given column segment by the DSII) corresponding to the SQL data into the given C data and length indicators.

Parameters:
in_fromSegment Column segment describing the source data.
in_toDataPtr Pointer to the buffer where the value resulting from the conversion has to be stored.
in_toDataLength Total length of the data buffer (in bytes).
in_toDataOffset Offset to add to the data pointer to compute the address of the next row.
in_toLengthPtr Pointer to the buffer where the length of the converted data has to be stored.
in_toLengthOffset Offset to add to the length pointer to compute the address of the next row.
in_listener Listener in which to post conversion results.
Returns:
Number of rows actually converted for this call.

Implements ISqlToCBulkConverter.

virtual simba_unsigned_native ConvertCustom ( const AbstractColumnSegment ,
void *  ,
simba_signed_native  ,
simba_signed_native  ,
simba_signed_native ,
simba_signed_native  ,
IBulkConversionListener  
) [inline, protected, virtual]

Implement the default SQL to C bulk conversion for custom column segments.

This function is not supported in the base bulk converter class and throw an exception. It can be overridden in a derived class in order to support custom segment types.

Parameters:
in_fromSegment Column segment describing the source data.
in_toDataPtr Pointer to the buffer where the value resulting from the conversion has to be stored.
in_toDataLength Total length of the data buffer (in bytes).
in_toDataOffset Offset to add to the data pointer to compute the address of the next row.
in_toLengthPtr Pointer to the buffer where the length of the converted data has to be stored.
in_toLengthOffset Offset to add to the length pointer to compute the address of the next row.
in_listener Listener in which to post conversion results.
Returns:
Number of rows actually converted for this call.
simba_unsigned_native ConvertDataLength ( const DataLengthColumnSegment in_fromSegment,
void *  in_toDataPtr,
simba_signed_native  in_toDataLength,
simba_signed_native  in_toDataOffset,
simba_signed_native in_toLengthPtr,
simba_signed_native  in_toLengthOffset,
IBulkConversionListener in_listener 
) [inline, protected]

Implement the SQL to C bulk conversion optimized for the data/length column segment strategy.

Parameters:
in_fromSegment Column segment describing the source data.
in_toDataPtr Pointer to the buffer where the value resulting from the conversion has to be stored.
in_toDataLength Total length of the data buffer (in bytes).
in_toDataOffset Offset to add to the data pointer to compute the address of the next row.
in_toLengthPtr Pointer to the buffer where the length of the converted data has to be stored.
in_toLengthOffset Offset to add to the length pointer to compute the address of the next row.
in_listener Listener in which to post conversion results.
Returns:
Number of rows actually converted for this call.
simba_unsigned_native ConvertFixRowSize ( const FixedRowSizeColumnSegment in_fromSegment,
void *  in_toDataPtr,
simba_signed_native  in_toDataLength,
simba_signed_native  in_toDataOffset,
simba_signed_native in_toLengthPtr,
simba_signed_native  in_toLengthOffset,
IBulkConversionListener in_listener 
) [inline, protected]

Implement the SQL to C bulk conversion optimized for the fix row size column segment strategy.

Parameters:
in_fromSegment Column segment describing the source data.
in_toDataPtr Pointer to the buffer where the value resulting from the conversion has to be stored.
in_toDataLength Total length of the data buffer (in bytes).
in_toDataOffset Offset to add to the data pointer to compute the address of the next row.
in_toLengthPtr Pointer to the buffer where the length of the converted data has to be stored.
in_toLengthOffset Offset to add to the length pointer to compute the address of the next row.
in_listener Listener in which to post conversion results.
Returns:
Number of rows actually converted for this call.

The documentation for this class was generated from the following file:

Generated on Wed May 17 14:21:19 2017 for SimbaEngine 10.1.3.1011 by simba