Class DiskValuesBuilder


public final class DiskValuesBuilder extends ValuesBuilder

This class builds an index for attribute values and text contents in a tree structure and stores the result to disk.

The data is stored on disk in the following format:

  • DATATXT/ATV + 'l': contains the index values, which are dense id lists to all text nodes/attribute values, stored in the Num format: [size0, id1, id2, ...]. The number of index keys is stored in the first 4 bytes of the file.
  • DATATXT/ATV + 'r': contains 5-byte references to the id lists for all keys. To save space, the keys itself are not stored in the index structure. Instead, they can be found by following the id references to the main table.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • DiskValuesBuilder

      public DiskValuesBuilder(Data data, IndexType type)
      Constructor.
      Parameters:
      data - data reference
      type - index type
  • Method Details