@Override public void insertAll(DBIDs ids){
  if (ids.isEmpty() || (ids.size() == 1)) {
    return;
  }
  if (canBulkLoad()) {
    List<SpatialEntry> leafs=new ArrayList<>(ids.size());
    for (DBIDIter iter=ids.iter(); iter.valid(); iter.advance()) {
      leafs.add(createNewLeafEntry(iter));
    }
    bulkLoad(leafs);
  }
 else {
    for (DBIDIter iter=ids.iter(); iter.valid(); iter.advance()) {
      insert(DBIDUtil.deref(iter));
    }
  }
  doExtraIntegrityChecks();
}

@ Override public void insertAll ( DBIDs ids ) { if ( ids . isEmpty ( ) || ( ids . size ( ) == 1 ) ) { return ; } if ( canBulkLoad ( ) ) { List < SpatialEntry > leafs = new ArrayList < > ( ids . size ( ) ) ; for ( DBIDIter iter = ids . iter ( ) ; iter . valid ( ) ; iter . advance ( ) ) { leafs . add ( createNewLeafEntry ( iter ) ) ; } bulkLoad ( leafs ) ; } else { for ( DBIDIter iter = ids . iter ( ) ; iter . valid ( ) ; iter . advance ( ) ) { insert ( DBIDUtil . deref ( iter ) ) ; } } doExtraIntegrityChecks ( ) ; }
inserts the specified objects into this index . if a bulk load mode is implemented , the objects are inserted in one bulk .
