/**
 * Copyright (c) 2021 OceanBase
 * OceanBase CE is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */

#ifndef OB_VIRTUAL_SQL_MONITOR_STATNAME_H_
#define OB_VIRTUAL_SQL_MONITOR_STATNAME_H_

#include "share/ob_virtual_table_scanner_iterator.h"

namespace oceanbase {
namespace observer {

class ObVirtualSqlMonitorStatname : public common::ObVirtualTableScannerIterator {
public:
  ObVirtualSqlMonitorStatname();
  virtual ~ObVirtualSqlMonitorStatname();
  virtual int inner_get_next_row(common::ObNewRow*& row);
  virtual void reset();

private:
  enum SYS_COLUMN {
    ID = common::OB_APP_MIN_COLUMN_ID,
    GROUP_ID,
    NAME,
    DESCRIPTION,
  };
  int32_t stat_iter_;
  common::ObObj cells_[common::OB_ROW_MAX_COLUMNS_COUNT];
  DISALLOW_COPY_AND_ASSIGN(ObVirtualSqlMonitorStatname);
};

} /* namespace observer */
} /* namespace oceanbase */

#endif /* OB_VIRTUAL_SQL_MONITOR_STATNAME_H_ */
