EXASockets  0.9
Interface to the EXASOL DB via JSON over Websockets protocol
exaTblColumn Class Referenceabstract
Inheritance diagram for exaTblColumn:
exaColumn< T >

Public Member Functions

  exaTblColumn (std::string name, int datatype, size_t num_rows=COL_DEFAULT_ROWS, int precision=0, int scale=0, int size=0, std::string charset="", bool w_local_tz=false, int fraction=0, int srid=0)
 
virtual std::shared_ptr< void >  operator[] (size_t row)=0
  Returns a void pointer to the value, or a nullptr if the value is NULL. More...
 
virtual void *  as_std_vector ()=0
  Returns a void pointer to the embedded std::vector. More...
 
virtual void  appendData (const void *value, bool null=false)=0
  Returns the value as a 32 Bit integer. More...
 
virtual bool  is_null (size_t rowno)
  Returns a boolean on whether the row specified contains a NULL value.
 
virtual size_t  count () const =0
  Returns the number of rows contained in the column.
 
int  type ()
 
std::string  getName () const
 
void  setName (std::string name)
 
int  getPrecision () const
 
void  setPrecision (int precision)
 
int  getScale () const
 
void  setScale (int scale)
 
int  getSize () const
 
void  setSize (int size)
 
std::string  getCharacterSet () const
 
void  setCharacterSet (std::string characterSet)
 
bool  isWithLocalTimeTone () const
 
void  setWithLocalTimeTone (bool withLocalTimeTone)
 
int  getFraction () const
 
void  setFraction (int fraction)
 
int  getSrid () const
 
void  setSrid (int srid)
 

Static Public Member Functions

static exaTblColumn *  create (std::string name, int datatype, size_t num_rows=COL_DEFAULT_ROWS, int precision=0, int scale=0, int size=0, std::string charset="", bool w_local_tz=false, int fraction=0, int srid=0)
 

Public Attributes

std::vector< bool >  nulls
 

Protected Attributes

std::string  name
 
int  datatype
 
int  precision = 0
 
int  scale = 0
 
int  size = 0
 
std::string  characterSet = ""
 
bool  withLocalTimeTone = 0
 
int  fraction = 0
 
int  srid = 0
 

Member Function Documentation

virtual void exaTblColumn::appendData ( const void *  value,
bool  null = false 
)
pure virtual

Returns the value as a 32 Bit integer.

Parameters
position The (row-)position index within the column, starting from 0.
Returns
A 32 Bit integer, which is undefined if the value is NULL.Appends a data object to the column.
Parameters
value A void pointer to the data object.
numRows A boolean setting the NULL flag for this object, i.e. indicating if the value is NULL. A value that is valid towards the data type must nevertheless be given (alternatively a nullptr).

Implemented in exaColumn< T >.

virtual void* exaTblColumn::as_std_vector ( )
pure virtual

Returns a void pointer to the embedded std::vector.

Returns
A void pointer to the std::vector.

Implemented in exaColumn< T >.

virtual std::shared_ptr<void> exaTblColumn::operator[] ( size_t  row )
pure virtual

Returns a void pointer to the value, or a nullptr if the value is NULL.

Parameters
position A 64 Bit Integer specifying the row position, from 0.
Returns
A void pointer to the value that may then be static_casted. If the actual value is NULL, a nullptr is returned.

Implemented in exaColumn< T >.


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