MySQL 9.1.0
Source Code Documentation
window.cc File Reference
#include "sql/window.h"
#include <sys/types.h>
#include <algorithm>
#include <cstring>
#include <initializer_list>
#include <limits>
#include <memory>
#include <unordered_set>
#include <vector>
#include "field_types.h"
#include "my_alloc.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_sys.h"
#include "my_table_map.h"
#include "my_time.h"
#include "mysql/strings/m_ctype.h"
#include "mysql/udf_registration_types.h"
#include "mysqld_error.h"
#include "sql/derror.h"
#include "sql/enum_query_type.h"
#include "sql/field.h"
#include "sql/handler.h"
#include "sql/item.h"
#include "sql/item_cmpfunc.h"
#include "sql/item_func.h"
#include "sql/item_sum.h"
#include "sql/item_timefunc.h"
#include "sql/join_optimizer/finalize_plan.h"
#include "sql/join_optimizer/replace_item.h"
#include "sql/key_spec.h"
#include "sql/mem_root_array.h"
#include "sql/mysqld_cs.h"
#include "sql/parse_location.h"
#include "sql/parse_tree_nodes.h"
#include "sql/parse_tree_window.h"
#include "sql/sql_array.h"
#include "sql/sql_class.h"
#include "sql/sql_const.h"
#include "sql/sql_error.h"
#include "sql/sql_exception_handler.h"
#include "sql/sql_lex.h"
#include "sql/sql_list.h"
#include "sql/sql_optimizer.h"
#include "sql/sql_resolver.h"
#include "sql/sql_show.h"
#include "sql/sql_tmp_table.h"
#include "sql/table.h"
#include "sql/temp_table_param.h"
#include "sql/window_lex.h"
#include "sql_string.h"
#include "template_utils.h"

Classes

class  AdjacencyList
 Simplified adjacency list: a window can maximum reference (depends on) one other window due to syntax restrictions. More...
 

Functions

static ORDERclone (THD *thd, ORDER *order)
 Shallow clone the list of ORDER objects using mem_root and return the cloned list. More...
 
static void append_to_back (ORDER **first_next, ORDER *column)
 Append order expressions at the end of *first_next ordering list representing the partitioning columns. More...
 
static Item_cachemake_result_item (Item *value)
 
static ORDERelt (const SQL_I_List< ORDER > &list, uint i)
 Return element with index i from list. More...
 
static Item_cacheFindCacheInComparator (const Arg_comparator &cmp)
 

Function Documentation

◆ append_to_back()

static void append_to_back ( ORDER **  first_next,
ORDER column 
)
static

Append order expressions at the end of *first_next ordering list representing the partitioning columns.

◆ clone()

static ORDER * clone ( THD thd,
ORDER order 
)
static

Shallow clone the list of ORDER objects using mem_root and return the cloned list.

◆ elt()

static ORDER * elt ( const SQL_I_List< ORDER > &  list,
uint  i 
)
static

Return element with index i from list.

Parameters
listList of ORDER elements
izero-based index
Returns
element at index i, or nullptr if i out of range

◆ FindCacheInComparator()

static Item_cache * FindCacheInComparator ( const Arg_comparator cmp)
static

◆ make_result_item()

static Item_cache * make_result_item ( Item value)
static