MySQL 8.3.0
Source Code Documentation
geometry_index_range_scan.h
Go to the documentation of this file.
1/* Copyright (c) 2000, 2023, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is also distributed with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef SQL_RANGE_OPTIMIZER_GEOMETRY_INDEX_RANGE_SCAN_H_
24#define SQL_RANGE_OPTIMIZER_GEOMETRY_INDEX_RANGE_SCAN_H_
25
26#include <sys/types.h>
27
29
30class THD;
31struct MEM_ROOT;
32struct TABLE;
33
35 public:
37 double expected_rows, uint index_arg,
38 bool need_rows_in_rowid_order_arg,
39 bool reuse_handler_arg,
40 MEM_ROOT *return_mem_root, uint mrr_flags_arg,
41 uint mrr_buf_size_arg,
43 : IndexRangeScanIterator(thd, table, examined_rows, expected_rows,
44 index_arg, need_rows_in_rowid_order_arg,
45 reuse_handler_arg, return_mem_root,
46 mrr_flags_arg, mrr_buf_size_arg, ranges_arg),
47 m_examined_rows(examined_rows) {}
48 int Read() override;
49
50 private:
52};
53
54#endif // SQL_RANGE_OPTIMIZER_GEOMETRY_INDEX_RANGE_SCAN_H_
A wrapper class which provides array bounds checking.
Definition: sql_array.h:46
Definition: geometry_index_range_scan.h:34
ha_rows * m_examined_rows
Definition: geometry_index_range_scan.h:51
int Read() override
Read a single row.
Definition: geometry_index_range_scan.cc:34
GeometryIndexRangeScanIterator(THD *thd, TABLE *table, ha_rows *examined_rows, double expected_rows, uint index_arg, bool need_rows_in_rowid_order_arg, bool reuse_handler_arg, MEM_ROOT *return_mem_root, uint mrr_flags_arg, uint mrr_buf_size_arg, Bounds_checked_array< QUICK_RANGE * > ranges_arg)
Definition: geometry_index_range_scan.h:36
Definition: index_range_scan.h:60
THD * thd() const
Definition: row_iterator.h:227
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:35
TABLE * table() const
Definition: row_iterator.h:245
my_off_t ha_rows
Definition: my_base.h:1140
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:82
Definition: table.h:1403