MySQL 8.3.0
Source Code Documentation
Point_accumulator Class Reference

Accumulate a geometry's all vertex points into a multipoint. More...

Inheritance diagram for Point_accumulator:
[legend]

Public Member Functions

 Point_accumulator (Gis_multi_point *mpts)
 
void on_wkb_start (Geometry::wkbByteOrder, Geometry::wkbType geotype, const void *wkb, uint32 len, bool) override
 Notified when scanner sees the start of a geometry WKB. More...
 
void on_wkb_end (const void *wkb) override
 Notified when scanner sees the end of a geometry WKB. More...
 
- Public Member Functions inherited from WKB_scanner_event_handler
virtual ~WKB_scanner_event_handler ()=default
 
virtual bool continue_scan () const
 

Private Attributes

Gis_multi_pointm_mpts
 
const void * pt_start
 

Detailed Description

Accumulate a geometry's all vertex points into a multipoint.

It implements the WKB_scanner_event_handler interface so as to be registered into wkb_scanner and be notified of WKB data events.

Constructor & Destructor Documentation

◆ Point_accumulator()

Point_accumulator::Point_accumulator ( Gis_multi_point mpts)
inlineexplicit

Member Function Documentation

◆ on_wkb_end()

void Point_accumulator::on_wkb_end ( const void *  wkb)
inlineoverridevirtual

Notified when scanner sees the end of a geometry WKB.

Parameters
wkbthe position of the first byte after the WKB byte string which the scanner just scanned.

Implements WKB_scanner_event_handler.

◆ on_wkb_start()

void Point_accumulator::on_wkb_start ( Geometry::wkbByteOrder  bo,
Geometry::wkbType  geotype,
const void *  wkb,
uint32  len,
bool  has_hdr 
)
inlineoverridevirtual

Notified when scanner sees the start of a geometry WKB.

Parameters
bobyte order of the WKB.
geotypegeometry type of the WKB;
wkbWKB byte string, the first byte after the WKB header if any.
lenNO. of bytes of the WKB byte string starting from wkb. There can be many geometries in the [wkb, wkb+len) buffer.
has_hdrwhether there is a WKB header right before 'wkb' in the byte string.

Implements WKB_scanner_event_handler.

Member Data Documentation

◆ m_mpts

Gis_multi_point* Point_accumulator::m_mpts
private

◆ pt_start

const void* Point_accumulator::pt_start
private

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