Interface BTreeIndex.Prefixer<Key>

  • All Known Implementing Classes:
    BTreeIndex.StringPrefixer
    Enclosing class:
    BTreeIndex<Key,​Value>

    public static interface BTreeIndex.Prefixer<Key>
    Interface used to determine the simple prefix of two keys. , $Date$
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Key getSimplePrefix​(Key value1, Key value2)
      This methods should return shortest prefix of value2 where the following still holds:
      value1 <= prefix <= value2.

      When this method is called, the following is guaranteed:
      value1 < value2

    • Method Detail

      • getSimplePrefix

        Key getSimplePrefix​(Key value1,
                            Key value2)
        This methods should return shortest prefix of value2 where the following still holds:
        value1 <= prefix <= value2.

        When this method is called, the following is guaranteed:
        value1 < value2

        Parameters:
        value1 -
        value2 -
        Returns: