This adds audit counters around the installed package's normal polygon reader. More...
Public Member Functions | |
| get_tz_polygons ($ids) | |
| This forwards the package's polygon iterator, recording each yielded row. | |
| Public Member Functions inherited from LGV_TZ_Lookup_Database | |
| __construct ( $inDatabase, $inUser=NULL, $inPassword=NULL, $inDriver='mysql', $inHost='127.0.0.1', $inPort=NULL) | |
| get_tz_entities ( $in_id_list) | |
| get_tz_ids ( $in_lng, $in_lat) | |
| reset_database () | |
| store_entity ( $inEntity) | |
Public Attributes | |
| bool | $generatedCall |
| This is true while a generated test is being measured, and false for the known-location tests. | |
| array | $generatedPolygons |
| These row IDs were evaluated by generated calls, and are used to check largest-polygon coverage. | |
| int | $polygonBytes |
| This sums the bytes yielded across lookup calls; repeated evaluations are counted again. | |
| int | $polygonRows |
| This counts polygon rows actually evaluated across all lookup calls. | |
| Public Attributes inherited from LGV_TZ_Lookup_Database | |
| $pdo_instance | |
Additional Inherited Members | |
| Static Public Member Functions inherited from LGV_TZ_Lookup_Database | |
| static | _array_flatten ( $inArray) |
| Protected Attributes inherited from LGV_TZ_Lookup_Database | |
| $_load_table | |
| Destination for schema creation and polygon inserts; updater subclasses can stage a new load. | |
Loading, SQL, decoding, and lookup selection remain in the package. We count the rows and bytes actually yielded to the lookup algorithm, and record the row IDs encountered during generated calls. The package's documented primary-key order lets us associate yielded rows with the requested IDs without fetching another copy of the blobs.
Definition at line 342 of file SystemTests.php.
| DemoTrackedDatabase::get_tz_polygons | ( | $ids | ) |
The parent generator retains responsibility for cursor cleanup, including an early return after a match.
| $ids | Existing row IDs returned by the package's domain-rect query. |
Reimplemented from LGV_TZ_Lookup_Database.
Definition at line 364 of file SystemTests.php.
References $polygonRows.
| bool DemoTrackedDatabase::$generatedCall |
Definition at line 345 of file SystemTests.php.
| array DemoTrackedDatabase::$generatedPolygons |
Definition at line 354 of file SystemTests.php.
| int DemoTrackedDatabase::$polygonBytes |
Definition at line 351 of file SystemTests.php.
| int DemoTrackedDatabase::$polygonRows |
Definition at line 348 of file SystemTests.php.
Referenced by get_tz_polygons().