Package elki.database.ids.integer
Interface IntegerArrayDBIDs
-
- All Superinterfaces:
ArrayDBIDs
,DBIDs
,IntegerDBIDs
- All Known Subinterfaces:
IntegerArrayStaticDBIDs
- All Known Implementing Classes:
ArrayModifiableIntegerDBIDs
,ArrayModifiableIntegerDBIDs.Slice
,ArrayStaticIntegerDBIDs
,ArrayStaticIntegerDBIDs.Slice
,IntegerDBIDPair.Slice
,UnmodifiableIntegerArrayDBIDs
public interface IntegerArrayDBIDs extends IntegerDBIDs, ArrayDBIDs
Trivial combination interface.- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IntegerDBIDArrayIter
iter()
Get a DBID iterator (a more efficient API).IntegerArrayDBIDs
slice(int begin, int end)
Slice a subarray (as view, not copy!)-
Methods inherited from interface elki.database.ids.ArrayDBIDs
assignVar, binarySearch, get, size
-
-
-
-
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 interfaceArrayDBIDs
- Specified by:
iter
in interfaceDBIDs
- Specified by:
iter
in interfaceIntegerDBIDs
- 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 interfaceArrayDBIDs
- Parameters:
begin
- Begin (inclusive)end
- End (exclusive)- Returns:
- Array slice.
-
-