//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2012 EMC Corp. // // @filename: // CParseHandlerPhysicalDML.h // // @doc: // Parse handler for parsing a physical DML operator // //--------------------------------------------------------------------------- #ifndef GPDXL_CParseHandlerPhysicalDML_H #define GPDXL_CParseHandlerPhysicalDML_H #include "gpos/base.h" #include "naucrates/dxl/operators/CDXLPhysicalDML.h" #include "naucrates/dxl/parser/CParseHandlerPhysicalOp.h" namespace gpdxl { using namespace gpos; XERCES_CPP_NAMESPACE_USE //--------------------------------------------------------------------------- // @class: // CParseHandlerPhysicalDML // // @doc: // Parse handler for parsing a physical DML operator // //--------------------------------------------------------------------------- class CParseHandlerPhysicalDML : public CParseHandlerPhysicalOp { private: // operator type EdxlDmlType m_dxl_dml_type; // source col ids ULongPtrArray *m_src_colids_array; // action column id ULONG m_action_colid; // ctid column id ULONG m_ctid_colid; // segmentId column id ULONG m_segid_colid; // Split Update BOOL m_fSplit; // process the start of an element void StartElement( const XMLCh *const element_uri, // URI of element's namespace const XMLCh *const element_local_name, // local part of element's name const XMLCh *const element_qname, // element's qname const Attributes &attr // element's attributes ) override; // process the end of an element void EndElement( const XMLCh *const element_uri, // URI of element's namespace const XMLCh *const element_local_name, // local part of element's name const XMLCh *const element_qname // element's qname ) override; // parse the dml type from the attribute value static EdxlDmlType GetDmlOpType(const XMLCh *xmlszDmlType); public: CParseHandlerPhysicalDML(const CParseHandlerPhysicalDML &) = delete; // ctor CParseHandlerPhysicalDML(CMemoryPool *mp, CParseHandlerManager *parse_handler_mgr, CParseHandlerBase *parse_handler_root); }; } // namespace gpdxl #endif // !GPDXL_CParseHandlerPhysicalDML_H // EOF