OmniSciDB  06b3bd477c
 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
 
auto getResultSet () const
 

Private Attributes

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

Detailed Description

Definition at line 252 of file Execute.h.

Member Typedef Documentation

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

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

References ResultSet::GeoTargetValue.

28  : fragment_info_(fragment_info), fragment_index_(fragment_index), rs_(rs) {
29  rs->setGeoReturnType(ResultSet::GeoReturnType::GeoTargetValue);
30 }
size_t fragment_index_
Definition: Execute.h:285
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:286
FragmentInfoType const & fragment_info_
Definition: Execute.h:284

Member Function Documentation

SQLTypeInfo UpdateLogForFragment::getColumnType ( const size_t  col_idx) const

Definition at line 58 of file ExecuteUpdate.cpp.

References rs_.

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

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 32 of file ExecuteUpdate.cpp.

References rs_.

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

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 50 of file ExecuteUpdate.cpp.

References rs_.

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

Definition at line 273 of file Execute.h.

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

273  {
274  return fragment_info_.fragmentId;
275  }
FragmentInfoType const & fragment_info_
Definition: Execute.h:284
size_t const UpdateLogForFragment::getFragmentIndex ( ) const

Definition at line 54 of file ExecuteUpdate.cpp.

References fragment_index_.

54  {
55  return fragment_index_;
56 }
size_t fragment_index_
Definition: Execute.h:285
UpdateLogForFragment::FragmentInfoType const & UpdateLogForFragment::getFragmentInfo ( ) const

Definition at line 45 of file ExecuteUpdate.cpp.

References fragment_info_.

46  {
47  return fragment_info_;
48 }
FragmentInfoType const & fragment_info_
Definition: Execute.h:284
StringDictionaryProxy* UpdateLogForFragment::getLiteralDictionary ( ) const
inlineoverridevirtual

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 264 of file Execute.h.

References rs_.

264  {
265  return rs_->getRowSetMemOwner()->getLiteralStringDictProxy();
266  }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:286
decltype(FragmentInfoType::physicalTableId) const UpdateLogForFragment::getPhysicalTableId ( ) const
inline

Definition at line 270 of file Execute.h.

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

270  {
272  }
FragmentInfoType const & fragment_info_
Definition: Execute.h:284
auto UpdateLogForFragment::getResultSet ( ) const
inline

Definition at line 281 of file Execute.h.

References rs_.

281 { return rs_; }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:286
size_t const UpdateLogForFragment::getRowCount ( ) const
overridevirtual

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 41 of file ExecuteUpdate.cpp.

References rs_.

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

Implements Fragmenter_Namespace::RowDataProvider.

Definition at line 36 of file ExecuteUpdate.cpp.

References rs_.

37  {
38  return rs_->getRowAt(index);
39 }
std::shared_ptr< ResultSet > rs_
Definition: Execute.h:286

Member Data Documentation

size_t UpdateLogForFragment::fragment_index_
private

Definition at line 285 of file Execute.h.

Referenced by getFragmentIndex().

FragmentInfoType const& UpdateLogForFragment::fragment_info_
private

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