AbstractNode class abstract

A node of an {@link AbstractSTRtree}. A node is one of:

  • empty
  • an interior node containing child {@link AbstractNode}s
  • a leaf node containing data items ({@link ItemBoundable}s).
A node stores the bounds of its children, and its level within the index tree.

@version 1.7

Implemented types
Implementers

Constructors

AbstractNode()
Default constructor required for serialization.
AbstractNode.withLevel(int level)
Constructs an AbstractNode at the given level in the tree @param level 0 if this node is a leaf, 1 if a parent of a leaf, and so on; the root node will have the highest level

Properties

bounds Object?
getter/setter pair
childBoundables List
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
level int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addChildBoundable(Boundable childBoundable) → void
Adds either an AbstractNode, or if this is a leaf node, a data object (wrapped in an ItemBoundable)
computeBounds() Object
Returns a representation of space that encloses this Boundable, preferably not much bigger than this Boundable's boundary yet fast to test for intersection with the bounds of other Boundables. The class of object returned depends on the subclass of AbstractSTRtree.
getBounds() Object
Gets the bounds of this node
override
getChildBoundables() List
Returns either child {@link AbstractNode}s, or if this is a leaf node, real data (wrapped in {@link ItemBoundable}s).
getLevel() int
Returns 0 if this node is a leaf, 1 if a parent of a leaf, and so on; the root node will have the highest level
isEmpty() bool
Tests whether there are any {@link Boundable}s at this node.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
size() int
Gets the count of the {@link Boundable}s at this node.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited