OmniSciDB  eb3a3d0a03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 &, TableUpdateMetadata &)>
 

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 constgetFragmentInfo () const
 
decltype(FragmentInfoType::physicalTableId)
const 
getPhysicalTableId () const
 
decltype(FragmentInfoType::fragmentId)
const 
getFragmentId () const
 
SQLTypeInfo getColumnType (const size_t col_idx) const
 
auto getResultSet () const
 

Private Attributes

FragmentInfoType constfragment_info_
 
size_t fragment_index_
 
std::shared_ptr< ResultSetrs_
 

Detailed Description

Definition at line 333 of file Execute.h.

Member Typedef Documentation

Definition at line 360 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 28 of file ExecuteUpdate.cpp.

References ResultSet::GeoTargetValue.

31  : fragment_info_(fragment_info), fragment_index_(fragment_index), rs_(rs) {
32  rs->setGeoReturnType(ResultSet::GeoReturnType::GeoTargetValue);
33 }
size_t fragment_index_
Definition: Execute.h:366
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:367
FragmentInfoType const & fragment_info_
Definition: Execute.h:365

Member Function Documentation

SQLTypeInfo UpdateLogForFragment::getColumnType ( const size_t  col_idx) const

Definition at line 61 of file ExecuteUpdate.cpp.

References rs_.

Referenced by StorageIOFacility::yieldDeleteCallback(), and StorageIOFacility::yieldUpdateCallback().

61  {
62  return rs_->getColType(col_idx);
63 }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:367

+ Here is the caller graph for this function:

std::vector< TargetValue > UpdateLogForFragment::getEntryAt ( const size_t  index) const
overridevirtual

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 35 of file ExecuteUpdate.cpp.

References rs_.

Referenced by StorageIOFacility::yieldDeleteCallback(), and StorageIOFacility::yieldUpdateCallback().

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

+ Here is the caller graph for this function:

size_t const UpdateLogForFragment::getEntryCount ( ) const
overridevirtual

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 53 of file ExecuteUpdate.cpp.

References rs_.

Referenced by StorageIOFacility::yieldDeleteCallback(), and StorageIOFacility::yieldUpdateCallback().

53  {
54  return rs_->entryCount();
55 }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:367

+ Here is the caller graph for this function:

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

Definition at line 354 of file Execute.h.

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

Referenced by StorageIOFacility::yieldDeleteCallback(), and StorageIOFacility::yieldUpdateCallback().

354  {
355  return fragment_info_.fragmentId;
356  }
FragmentInfoType const & fragment_info_
Definition: Execute.h:365

+ Here is the caller graph for this function:

size_t const UpdateLogForFragment::getFragmentIndex ( ) const

Definition at line 57 of file ExecuteUpdate.cpp.

References fragment_index_.

57  {
58  return fragment_index_;
59 }
size_t fragment_index_
Definition: Execute.h:366
UpdateLogForFragment::FragmentInfoType const & UpdateLogForFragment::getFragmentInfo ( ) const

Definition at line 48 of file ExecuteUpdate.cpp.

References fragment_info_.

Referenced by StorageIOFacility::yieldDeleteCallback(), and StorageIOFacility::yieldUpdateCallback().

49  {
50  return fragment_info_;
51 }
FragmentInfoType const & fragment_info_
Definition: Execute.h:365

+ Here is the caller graph for this function:

StringDictionaryProxy* UpdateLogForFragment::getLiteralDictionary ( ) const
inlineoverridevirtual

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 345 of file Execute.h.

References rs_.

345  {
346  return rs_->getRowSetMemOwner()->getLiteralStringDictProxy();
347  }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:367
decltype(FragmentInfoType::physicalTableId) const UpdateLogForFragment::getPhysicalTableId ( ) const
inline

Definition at line 351 of file Execute.h.

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

Referenced by StorageIOFacility::yieldDeleteCallback(), and StorageIOFacility::yieldUpdateCallback().

351  {
353  }
FragmentInfoType const & fragment_info_
Definition: Execute.h:365

+ Here is the caller graph for this function:

auto UpdateLogForFragment::getResultSet ( ) const
inline

Definition at line 362 of file Execute.h.

References rs_.

Referenced by StorageIOFacility::yieldDeleteCallback(), and StorageIOFacility::yieldUpdateCallback().

362 { return rs_; }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:367

+ Here is the caller graph for this function:

size_t const UpdateLogForFragment::getRowCount ( ) const
overridevirtual

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 44 of file ExecuteUpdate.cpp.

References rs_.

Referenced by StorageIOFacility::yieldDeleteCallback(), and StorageIOFacility::yieldUpdateCallback().

44  {
45  return rs_->rowCount();
46 }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:367

+ Here is the caller graph for this function:

std::vector< TargetValue > UpdateLogForFragment::getTranslatedEntryAt ( const size_t  index) const
overridevirtual

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 39 of file ExecuteUpdate.cpp.

References rs_.

Referenced by StorageIOFacility::yieldUpdateCallback().

40  {
41  return rs_->getRowAt(index);
42 }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:367

+ Here is the caller graph for this function:

Member Data Documentation

size_t UpdateLogForFragment::fragment_index_
private

Definition at line 366 of file Execute.h.

Referenced by getFragmentIndex().

FragmentInfoType const& UpdateLogForFragment::fragment_info_
private

Definition at line 365 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: