Package org.dizitart.no2.store
Interface NitriteRTree<Key,Value>
-
- Type Parameters:
Key- the type parameterValue- the type parameter
- All Superinterfaces:
AutoCloseable
public interface NitriteRTree<Key,Value> extends AutoCloseable
Represents an R-Tree in the nitrite database.- Since:
- 4.0
- Author:
- Anindya Chatterjee.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(Key key, NitriteId nitriteId)Adds a key to the rtree.voidclear()Clears the data.voidclose()Closes thisNitriteRTreeinstance.voiddrop()Drops this instance.RecordStream<NitriteId>findContainedKeys(Key key)Finds the contained keys from the rtree.RecordStream<NitriteId>findIntersectingKeys(Key key)Finds the intersecting keys from the rtree.voidremove(Key key, NitriteId nitriteId)Removes a key from the rtree.longsize()Gets the size of the rtree.
-
-
-
Method Detail
-
add
void add(Key key, NitriteId nitriteId)
Adds a key to the rtree.- Parameters:
key- the keynitriteId- the nitrite id
-
remove
void remove(Key key, NitriteId nitriteId)
Removes a key from the rtree.- Parameters:
key- the keynitriteId- the nitrite id
-
findIntersectingKeys
RecordStream<NitriteId> findIntersectingKeys(Key key)
Finds the intersecting keys from the rtree.- Parameters:
key- the key- Returns:
- the record stream
-
findContainedKeys
RecordStream<NitriteId> findContainedKeys(Key key)
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.
-
-