OmniSciDB  04ee39c94c
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 count () const override
 
StringDictionaryProxygetLiteralDictionary () const override
 
size_t const getEntryCount () const
 
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 288 of file Execute.h.

Member Typedef Documentation

◆ Callback

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

Definition at line 315 of file Execute.h.

◆ FragmentInfoType

Constructor & Destructor Documentation

◆ UpdateLogForFragment()

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:319
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:320
FragmentInfoType const & fragment_info_
Definition: Execute.h:318

Member Function Documentation

◆ count()

size_t UpdateLogForFragment::count ( ) const
overridevirtual

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 39 of file ExecuteUpdate.cpp.

References getEntryCount().

Referenced by Executor::executeUpdate().

39  {
40  return getEntryCount();
41 }
size_t const getEntryCount() const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getColumnType()

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:320

◆ getEntryAt()

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:320

◆ getEntryCount()

size_t const UpdateLogForFragment::getEntryCount ( ) const

Definition at line 48 of file ExecuteUpdate.cpp.

References rs_.

Referenced by count().

48  {
49  return rs_->entryCount();
50 }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:320
+ Here is the caller graph for this function:

◆ getFragmentId()

decltype(FragmentInfoType::fragmentId) const UpdateLogForFragment::getFragmentId ( ) const
inline

Definition at line 309 of file Execute.h.

309  {
310  return fragment_info_.fragmentId;
311  }
FragmentInfoType const & fragment_info_
Definition: Execute.h:318

◆ getFragmentIndex()

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:319

◆ getFragmentInfo()

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:318

◆ getLiteralDictionary()

StringDictionaryProxy* UpdateLogForFragment::getLiteralDictionary ( ) const
inlineoverridevirtual

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 300 of file Execute.h.

300  {
301  return rs_->getRowSetMemOwner()->getLiteralStringDictProxy();
302  }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:320

◆ getPhysicalTableId()

decltype(FragmentInfoType::physicalTableId) const UpdateLogForFragment::getPhysicalTableId ( ) const
inline

Definition at line 306 of file Execute.h.

306  {
308  }
FragmentInfoType const & fragment_info_
Definition: Execute.h:318

◆ getTranslatedEntryAt()

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:320

Member Data Documentation

◆ fragment_index_

size_t UpdateLogForFragment::fragment_index_
private

Definition at line 319 of file Execute.h.

Referenced by getFragmentIndex().

◆ fragment_info_

FragmentInfoType const& UpdateLogForFragment::fragment_info_
private

Definition at line 318 of file Execute.h.

Referenced by getFragmentInfo().

◆ rs_

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

Definition at line 320 of file Execute.h.

Referenced by getColumnType(), getEntryAt(), getEntryCount(), and getTranslatedEntryAt().


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