OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UpdateLogForFragment Class Reference

#include <Execute.h>

+ Inheritance diagram for UpdateLogForFragment:
+ Collaboration diagram for UpdateLogForFragment:

Public Types

using FragmentInfoType = Fragmenter_Namespace::FragmentInfo
 
using Callback = std::function< void(const UpdateLogForFragment &)>
 

Public Member Functions

 UpdateLogForFragment (FragmentInfoType const &fragment_info, size_t const, const std::shared_ptr< ResultSet > &rs)
 
std::vector< TargetValuegetEntryAt (const size_t index) const override
 
std::vector< TargetValuegetTranslatedEntryAt (const size_t index) const override
 
size_t const getRowCount () const override
 
StringDictionaryProxygetLiteralDictionary () const override
 
size_t const getEntryCount () const override
 
size_t const getFragmentIndex () const
 
FragmentInfoType const & getFragmentInfo () const
 
decltype(FragmentInfoType::physicalTableId)
const 
getPhysicalTableId () const
 
decltype(FragmentInfoType::fragmentId)
const 
getFragmentId () const
 
SQLTypeInfo getColumnType (const size_t col_idx) const
 

Private Attributes

FragmentInfoType const & fragment_info_
 
size_t fragment_index_
 
std::shared_ptr< ResultSetrs_
 

Detailed Description

Definition at line 291 of file Execute.h.

Member Typedef Documentation

using UpdateLogForFragment::Callback = std::function<void(const UpdateLogForFragment&)>

Definition at line 318 of file Execute.h.

Constructor & Destructor Documentation

UpdateLogForFragment::UpdateLogForFragment ( FragmentInfoType const &  fragment_info,
size_t const  fragment_index,
const std::shared_ptr< ResultSet > &  rs 
)

Definition at line 23 of file ExecuteUpdate.cpp.

References ResultSet::GeoTargetValue.

26  : fragment_info_(fragment_info), fragment_index_(fragment_index), rs_(rs) {
27  rs->setGeoReturnType(ResultSet::GeoReturnType::GeoTargetValue);
28 }
size_t fragment_index_
Definition: Execute.h:322
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:323
FragmentInfoType const & fragment_info_
Definition: Execute.h:321

Member Function Documentation

SQLTypeInfo UpdateLogForFragment::getColumnType ( const size_t  col_idx) const

Definition at line 56 of file ExecuteUpdate.cpp.

References rs_.

56  {
57  return rs_->getColType(col_idx);
58 }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:323
std::vector< TargetValue > UpdateLogForFragment::getEntryAt ( const size_t  index) const
overridevirtual

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 30 of file ExecuteUpdate.cpp.

References rs_.

30  {
31  return rs_->getRowAtNoTranslations(index);
32 }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:323
size_t const UpdateLogForFragment::getEntryCount ( ) const
overridevirtual

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 48 of file ExecuteUpdate.cpp.

References rs_.

48  {
49  return rs_->entryCount();
50 }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:323
decltype(FragmentInfoType::fragmentId) const UpdateLogForFragment::getFragmentId ( ) const
inline

Definition at line 312 of file Execute.h.

References fragment_info_, and Fragmenter_Namespace::FragmentInfo::fragmentId.

312  {
313  return fragment_info_.fragmentId;
314  }
FragmentInfoType const & fragment_info_
Definition: Execute.h:321
size_t const UpdateLogForFragment::getFragmentIndex ( ) const

Definition at line 52 of file ExecuteUpdate.cpp.

References fragment_index_.

52  {
53  return fragment_index_;
54 }
size_t fragment_index_
Definition: Execute.h:322
UpdateLogForFragment::FragmentInfoType const & UpdateLogForFragment::getFragmentInfo ( ) const

Definition at line 43 of file ExecuteUpdate.cpp.

References fragment_info_.

44  {
45  return fragment_info_;
46 }
FragmentInfoType const & fragment_info_
Definition: Execute.h:321
StringDictionaryProxy* UpdateLogForFragment::getLiteralDictionary ( ) const
inlineoverridevirtual

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 303 of file Execute.h.

References rs_.

303  {
304  return rs_->getRowSetMemOwner()->getLiteralStringDictProxy();
305  }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:323
decltype(FragmentInfoType::physicalTableId) const UpdateLogForFragment::getPhysicalTableId ( ) const
inline

Definition at line 309 of file Execute.h.

References fragment_info_, and Fragmenter_Namespace::FragmentInfo::physicalTableId.

309  {
311  }
FragmentInfoType const & fragment_info_
Definition: Execute.h:321
size_t const UpdateLogForFragment::getRowCount ( ) const
overridevirtual

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 39 of file ExecuteUpdate.cpp.

References rs_.

39  {
40  return rs_->rowCount();
41 }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:323
std::vector< TargetValue > UpdateLogForFragment::getTranslatedEntryAt ( const size_t  index) const
overridevirtual

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 34 of file ExecuteUpdate.cpp.

References rs_.

35  {
36  return rs_->getRowAt(index);
37 }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:323

Member Data Documentation

size_t UpdateLogForFragment::fragment_index_
private

Definition at line 322 of file Execute.h.

Referenced by getFragmentIndex().

FragmentInfoType const& UpdateLogForFragment::fragment_info_
private

Definition at line 321 of file Execute.h.

Referenced by getFragmentId(), getFragmentInfo(), and getPhysicalTableId().

std::shared_ptr<ResultSet> UpdateLogForFragment::rs_
private

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