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

Public Member Functions

  exaColumn (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)
 
std::shared_ptr< void >  operator[] (size_t row)
  Returns a void pointer to the value, or a nullptr if the value is NULL. More...
 
void  appendData (const void *value, const bool null=false)
  Returns the value as a 32 Bit integer. More...
 
size_t  count () const
  Returns the number of rows contained in the column.
 
void *  as_std_vector ()
  Returns a void pointer to the embedded std::vector. More...
 
- Public Member Functions inherited from exaTblColumn
  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 bool  is_null (size_t rowno)
  Returns a boolean on whether the row specified contains a NULL value.
 
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)
 

Protected Attributes

std::vector< T >  data
 
- Protected Attributes inherited from exaTblColumn
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
 

Additional Inherited Members

- Static Public Member Functions inherited from exaTblColumn
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 inherited from exaTblColumn
std::vector< bool >  nulls
 

Member Function Documentation

template<typename T >
void exaColumn< T >::appendData ( const void *  value,
const bool  null = false 
)
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).

Implements exaTblColumn.

template<typename T >
void* exaColumn< T >::as_std_vector ( )
inlinevirtual

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

Returns
A void pointer to the std::vector.

Implements exaTblColumn.

template<typename T >
std::shared_ptr< void > exaColumn< T >::operator[] ( size_t  row )
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.

Implements exaTblColumn.


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