MySQL 8.4.0
Source Code Documentation
Cached_item_json Class Reference

Cached_item subclass for JSON values. More...

#include <item.h>

Inheritance diagram for Cached_item_json:
[legend]

Public Member Functions

 Cached_item_json (Item *item)
 
 ~Cached_item_json () override
 
bool cmp () override
 Compare the new JSON value in member 'item' with the previous value. More...
 
- Public Member Functions inherited from Cached_item
virtual ~Cached_item ()=default
 
Itemget_item () const
 
Item ** get_item_ptr ()
 

Private Attributes

Json_wrapperm_value
 The cached JSON value. More...
 

Additional Inherited Members

- Public Attributes inherited from Cached_item
bool null_value {true}
 
- Protected Member Functions inherited from Cached_item
 Cached_item (Item *i)
 
- Protected Attributes inherited from Cached_item
Itemitem
 The item whose value to cache. More...
 

Detailed Description

Cached_item subclass for JSON values.

Constructor & Destructor Documentation

◆ Cached_item_json()

Cached_item_json::Cached_item_json ( Item item)
explicit

◆ ~Cached_item_json()

Cached_item_json::~Cached_item_json ( )
override

Member Function Documentation

◆ cmp()

bool Cached_item_json::cmp ( )
overridevirtual

Compare the new JSON value in member 'item' with the previous value.

Return values
trueif the new value is different from the previous value, or if there is no previously cached value
falseif the new value is the same as the already cached value

Implements Cached_item.

Member Data Documentation

◆ m_value

Json_wrapper* Cached_item_json::m_value
private

The cached JSON value.


The documentation for this class was generated from the following files: