MySQL 9.1.0
Source Code Documentation
geometry_index_range_scan.h
Go to the documentation of this file.
1/* Copyright (c) 2000, 2024, 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 designed to work 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 either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef SQL_RANGE_OPTIMIZER_GEOMETRY_INDEX_RANGE_SCAN_H_
25#define SQL_RANGE_OPTIMIZER_GEOMETRY_INDEX_RANGE_SCAN_H_
26
27#include <sys/types.h>
28
30
31class THD;
32struct MEM_ROOT;
33struct TABLE;
34
36 public:
38 double expected_rows, uint index_arg,
39 bool need_rows_in_rowid_order_arg,
40 bool reuse_handler_arg,
41 MEM_ROOT *return_mem_root, uint mrr_flags_arg,
42 uint mrr_buf_size_arg,
44 : IndexRangeScanIterator(thd, table, examined_rows, expected_rows,
45 index_arg, need_rows_in_rowid_order_arg,
46 reuse_handler_arg, return_mem_root,
47 mrr_flags_arg, mrr_buf_size_arg, ranges_arg),
48 m_examined_rows(examined_rows) {}
49 int Read() override;
50
51 private:
53};
54
55#endif // SQL_RANGE_OPTIMIZER_GEOMETRY_INDEX_RANGE_SCAN_H_
A wrapper class which provides array bounds checking.
Definition: sql_array.h:47
Definition: geometry_index_range_scan.h:35
ha_rows * m_examined_rows
Definition: geometry_index_range_scan.h:52
int Read() override
Read a single row.
Definition: geometry_index_range_scan.cc:35
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:37
Definition: index_range_scan.h:61
THD * thd() const
Definition: row_iterator.h:228
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
TABLE * table() const
Definition: row_iterator.h:246
my_off_t ha_rows
Definition: my_base.h:1141
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:83
Definition: table.h:1421