public Iterator<V> iterator() { return vToId.keySet().iterator(); }
- public RTree() {
- Properties props = new Properties();
+ private static final Properties props = new Properties();
+ static {
props.put("MinNodeEntries", "1");
props.put("MaxNodeEntries", "5");
+ }
+
+ public RTree() { clear(); }
+
+ public void clear() {
+ idToV.clear();
+ vToId.clear();
rtree.init(props);
}