DataLengthColumnSegment Class Reference

Class implementing the column segment for a variable row size, or for when fixed size data is not accessible in a contiguous sequence. More...

Inherits Simba::Support::AbstractColumnSegment.

List of all members.

Public Member Functions

 DataLengthColumnSegment (DataLengthColumn *in_dataLengthArray=NULL, simba_unsigned_native in_numberRows=0)
 Constructor.
void GetAttributes (DataLengthColumn *&out_dataLengthArray, simba_unsigned_native &out_numberRows) const
 Get all attributes at once.
DataLengthColumnGetDataLengthArray () const
 Get the array of data pointers and lengths.
void SetAttributes (DataLengthColumn *in_dataLengthArray, simba_unsigned_native in_numberRows)
 Set all attributes at once.

Protected Member Functions

DataLengthColumnSegmentoperator= (const DataLengthColumnSegment &in_other)

Protected Attributes

DataLengthColumnm_dataLengthArray

Detailed Description

Class implementing the column segment for a variable row size, or for when fixed size data is not accessible in a contiguous sequence.

This strategy allows the DSII to independently provide the data pointer and data length for each row. The DSII needs to provide an array of DataLengthColumn, the index in this array representing the row number minus one. The bulk converters will converts all provided cells from 0 to number of rows minus one given in the constructor or set through the base class.

It is the responsibility of the DSII to manage the life cycle of this array. It must allocate it, update its content before each bulk conversion, maintain it unchanged during bulk conversion and free it once it is no longer needed.


Constructor & Destructor Documentation

DataLengthColumnSegment ( DataLengthColumn in_dataLengthArray = NULL,
simba_unsigned_native  in_numberRows = 0 
) [inline]

Constructor.

Parameters:
in_dataLengthArray Pointer to the array of DataLengthColumn object. (NOT OWN)
in_numberRows Number of rows this segment covers. 0 by default. Can be updated later by calling SetNumberRows().

Member Function Documentation

void GetAttributes ( DataLengthColumn *&  out_dataLengthArray,
simba_unsigned_native out_numberRows 
) const [inline]

Get all attributes at once.

Parameters:
in_dataLengthArray Pointer to the array of DataLengthColumn object. (NOT OWN)
in_numberRows Number of rows this segment covers.
DataLengthColumn* GetDataLengthArray (  )  const [inline]

Get the array of data pointers and lengths.

The number of elements should be reflected by GetNumberOfRows().

Returns:
Pointer to the array. (NOT OWN)
DataLengthColumnSegment& operator= ( const DataLengthColumnSegment in_other  )  [protected]
void SetAttributes ( DataLengthColumn in_dataLengthArray,
simba_unsigned_native  in_numberRows 
) [inline]

Set all attributes at once.

Parameters:
in_dataLengthArray Pointer to the array of DataLengthColumn object. (NOT OWN)
in_numberRows Number of rows this segment covers.

Member Data Documentation


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

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