Package org.dizitart.no2.store
Interface NitriteRTree<Key,Value>
- Type Parameters:
Key- the type parameterValue- the type parameter
- All Superinterfaces:
AutoCloseable
Represents an R-Tree in the nitrite database.
- Since:
- 4.0
- Author:
- Anindya Chatterjee.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a key to the rtree.voidclear()Clears the data.voidclose()Closes thisNitriteRTreeinstance.voiddrop()Drops this instance.findContainedKeys(Key key) Finds the contained keys from the rtree.findIntersectingKeys(Key key) Finds the intersecting keys from the rtree.voidRemoves a key from the rtree.longsize()Gets the size of the rtree.
-
Method Details
-
add
Adds a key to the rtree.- Parameters:
key- the keynitriteId- the nitrite id
-
remove
Removes a key from the rtree.- Parameters:
key- the keynitriteId- the nitrite id
-
findIntersectingKeys
Finds the intersecting keys from the rtree.- Parameters:
key- the key- Returns:
- the record stream
-
findContainedKeys
Finds the contained keys from the rtree.- Parameters:
key- the key- Returns:
- the record stream
-
size
long size()Gets the size of the rtree.- Returns:
- the size
-
close
void close()Closes thisNitriteRTreeinstance.- Specified by:
closein interfaceAutoCloseable
-
clear
void clear()Clears the data. -
drop
void drop()Drops this instance.
-