Interface IntegerArrayDBIDs

    • Method Detail

      • iter

        IntegerDBIDArrayIter iter()
        Description copied from interface: DBIDs
        Get a DBID iterator (a more efficient API).

        Example:

         
         for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) {
           NumberVector vec = relation.get(iter); // iter is a temporary object reference
         }
         
         
        Specified by:
        iter in interface ArrayDBIDs
        Specified by:
        iter in interface DBIDs
        Specified by:
        iter in interface IntegerDBIDs
        Returns:
        iterator
      • slice

        IntegerArrayDBIDs slice​(int begin,
                                int end)
        Description copied from interface: ArrayDBIDs
        Slice a subarray (as view, not copy!)
        Specified by:
        slice in interface ArrayDBIDs
        Parameters:
        begin - Begin (inclusive)
        end - End (exclusive)
        Returns:
        Array slice.