This project is based on the zran sample tool from the zlib distribution, written by Mark Adler.
It provides a shared library, a command line tool which can generate an "index" of a zlib/gzip
... [More]
stream, and a MySQL user defined function (UDF).
It can be used for example to index directly into a gzip compressed log file from a MySQL database.
mysql> CREATE FUNCTION ze RETURNS STRING SONAME "zran.so";
mysql> DROP FUNCTION ze;
mysql> SELECT ze(filename, offset, "line") FROM log_index WHERE ipaddr=INET_ATON("192.168.0.1") ORDER BY offset; [Less]