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