Trait rstar::RTreeParams

source ·
pub trait RTreeParams {
    type DefaultInsertionStrategy: InsertionStrategy;

    const MIN_SIZE: usize;
    const MAX_SIZE: usize;
}
Expand description

Defines static parameters for an r-tree.

Internally, an r-tree contains several nodes, similar to a b-tree. These parameters change the size of these nodes and can be used to fine tune the tree’s performance.

Required Associated Types

The insertion strategy which is used when calling insert.

Required Associated Constants

The minimum size of an internal node. Must be at most half as large as MAX_SIZE. Choosing a value around one half or one third of MAX_SIZE is recommended. Higher values should yield slightly better tree quality while lower values may benefit insertion performance.

The maximum size of an internal node. Larger values will improve insertion performance but increase the average query time.

Implementors