Module swim.spatial
Package swim.spatial

Class QTreeContext<K,S,V>

java.lang.Object
swim.spatial.QTreeContext<K,S,V>
All Implemented Interfaces:
Comparator<QTreeEntry<K,S,V>>
Direct Known Subclasses:
QTree, QTreeMap

public abstract class QTreeContext<K,S,V> extends Object implements Comparator<QTreeEntry<K,S,V>>
  • Constructor Details

    • QTreeContext

      public QTreeContext()
  • Method Details

    • compare

      public int compare(QTreeEntry<K,S,V> x, QTreeEntry<K,S,V> y)
      Specified by:
      compare in interface Comparator<K>
    • compareKey

      protected int compareKey(K x, K y)
    • pageSplitSize

      protected int pageSplitSize()
    • pageShouldSplit

      protected boolean pageShouldSplit(QTreePage<K,S,V> page)
    • pageShouldMerge

      protected boolean pageShouldMerge(QTreePage<K,S,V> page)