void setTransactionRowLookups(DoubleIntIndex pointerLookup) {

    for (int i = 0, size = transactionRowLookup.size(); i < size; i++) {
      int key = transactionRowLookup.getKey(i);
      int lookupIndex = pointerLookup.findFirstEqualKeyIndex(key);

      if (lookupIndex != -1) {
        transactionRowLookup.setValue(i, pointerLookup.getValue(lookupIndex));
      }
    }
  }
  void writeTransactionRows() {

    for (int i = 0, size = transactionRowLookup.size(); i < size; i++) {
      if (transactionRowLookup.getValue(i) != 0) {
        continue;
      }

      int key = transactionRowLookup.getKey(i);

      try {
        transactionRowLookup.setValue(i, (int) (fileOffset / scale));

        RowInputInterface rowIn = cache.readObject(key);

        fileStreamOut.write(rowIn.getBuffer(), 0, rowIn.getSize());

        fileOffset += rowIn.getSize();
      } catch (HsqlException e) {
      } catch (IOException e) {
      }
    }
  }