HSQLDB Binary import

Desktop / LibreOffice - Tamas Bunth [collabora.co.uk] - 5 March 2018 09:18 EST

C++ implementation of reading HSQL's binary file format. This file contains the actual rows for the tables, represented in an AVL tree.

Import starts from HsqlImporter, which calls to SchemaParser for some metadata (the positions of the trees in "data" file). After that it goes through the tree and read up the rows using HsqlRowInputStream.

Finally, it uses sdbc's XPreparedStatement to insert the rows to the actual database.

Change-Id: If4b17572e5989c218d45880bc3fd5a8820bb4101 Reviewed-on: https://gerrit.libreoffice.org/50536

60ac74187475 HSQLDB Binary import
dbaccess/Library_dbahsql.mk | 5 +
dbaccess/source/filter/hsqldb/columndef.hxx | 10 -
dbaccess/source/filter/hsqldb/createparser.hxx | 10 -
dbaccess/source/filter/hsqldb/fbcreateparser.hxx | 10 -
dbaccess/source/filter/hsqldb/hsqlbinarynode.cxx | 61 ++++++
dbaccess/source/filter/hsqldb/hsqlbinarynode.hxx | 39 ++++
dbaccess/source/filter/hsqldb/hsqlimport.cxx | 241 +++++++++++++++++++++-
dbaccess/source/filter/hsqldb/hsqlimport.hxx | 20 +-
dbaccess/source/filter/hsqldb/parseschema.cxx | 26 ++-
dbaccess/source/filter/hsqldb/parseschema.hxx | 17 +-
dbaccess/source/filter/hsqldb/rowinputbinary.cxx | 246 +++++++++++++++++++++++
dbaccess/source/filter/hsqldb/rowinputbinary.hxx | 46 +++++
12 files changed, 670 insertions(+), 61 deletions(-)

Upstream: cgit.freedesktop.org


  • Share