OmniSciDB  cde582ebc3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
java::sql::ResultSet::CellCallback Class Reference
+ Collaboration diagram for java::sql::ResultSet::CellCallback:

Public Member Functions

 CellCallback (StringDictionaryProxy::IdMap &&id_map, int64_t const null_int)
 
void operator() (int8_t const *const cell_ptr) const
 

Private Attributes

StringDictionaryProxy::IdMap const id_map_
 
int64_t const null_int_
 

Detailed Description

Definition at line 433 of file ResultSet.cpp.

Constructor & Destructor Documentation

java::sql::ResultSet::CellCallback::CellCallback ( StringDictionaryProxy::IdMap &&  id_map,
int64_t const  null_int 
)
inline

Definition at line 438 of file ResultSet.cpp.

439  : id_map_(std::move(id_map)), null_int_(null_int) {}
StringDictionaryProxy::IdMap const id_map_
Definition: ResultSet.cpp:434

Member Function Documentation

void java::sql::ResultSet::CellCallback::operator() ( int8_t const *const  cell_ptr) const
inline

Definition at line 440 of file ResultSet.cpp.

References java::sql::ResultSet::CellCallback::id_map_, and java::sql::ResultSet::CellCallback::null_int_.

440  {
441  using StringId = int32_t;
442  StringId* const string_id_ptr =
443  const_cast<StringId*>(reinterpret_cast<StringId const*>(cell_ptr));
444  if (*string_id_ptr != null_int_) {
445  *string_id_ptr = id_map_[*string_id_ptr];
446  }
447  }
StringDictionaryProxy::IdMap const id_map_
Definition: ResultSet.cpp:434

Member Data Documentation

StringDictionaryProxy::IdMap const java::sql::ResultSet::CellCallback::id_map_
private

Definition at line 434 of file ResultSet.cpp.

Referenced by java::sql::ResultSet::CellCallback::operator()().

int64_t const java::sql::ResultSet::CellCallback::null_int_
private

Definition at line 435 of file ResultSet.cpp.

Referenced by java::sql::ResultSet::CellCallback::operator()().


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