OmniSciDB  a5dc49c757
 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 437 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 442 of file ResultSet.cpp.

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

Member Function Documentation

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

Definition at line 444 of file ResultSet.cpp.

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

444  {
445  using StringId = int32_t;
446  StringId* const string_id_ptr =
447  const_cast<StringId*>(reinterpret_cast<StringId const*>(cell_ptr));
448  if (*string_id_ptr != null_int_) {
449  *string_id_ptr = id_map_[*string_id_ptr];
450  }
451  }
StringDictionaryProxy::IdMap const id_map_
Definition: ResultSet.cpp:438

Member Data Documentation

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

Definition at line 438 of file ResultSet.cpp.

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

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

Definition at line 439 of file ResultSet.cpp.

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


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