Class RdKNNTreeHeader

  • All Implemented Interfaces:
    PageHeader

    class RdKNNTreeHeader
    extends TreeIndexHeader
    Encapsulates the header information of a RDkNN-Tree. This information is needed for persistent storage.
    Since:
    0.1
    Author:
    Elke Achtert
    • Field Detail

      • SIZE

        private static int SIZE
        The size of this header in Bytes, which is 4 Bytes (for k_max).
      • k_max

        int k_max
        The maximum number k of reverse kNN queries to be supported.
    • Constructor Detail

      • RdKNNTreeHeader

        public RdKNNTreeHeader()
        Empty constructor for serialization.
      • RdKNNTreeHeader

        public RdKNNTreeHeader​(int pageSize,
                               int dirCapacity,
                               int leafCapacity,
                               int dirMinimum,
                               int leafMinimum,
                               int k_max)
        Creates a new header with the specified parameters.
        Parameters:
        pageSize - the size of a page in bytes
        dirCapacity - the maximum number of entries in a directory node
        leafCapacity - the maximum number of entries in a leaf node
        dirMinimum - the minimum number of entries in a directory node
        leafMinimum - the minimum number of entries in a leaf node
        k_max - the maximum number k of reverse kNN queries to be supported