
public interface ArrayDBIDs extends DBIDs
| Modifier and Type | Method and Description |
|---|---|
void |
assignVar(int index,
DBIDVar var)
Assign a DBID variable the value of position
index. |
int |
binarySearch(DBIDRef key)
Search for the position of the given key, assuming that the data set is
sorted.
|
DBID |
get(int i)
Deprecated.
Preferably use a
DBIDArrayIter or a DBIDVar
instead of materializing expensive DBID objects. |
DBIDArrayIter |
iter()
Iterable
|
int |
size()
Size of the DBID "collection".
|
ArrayDBIDs |
slice(int begin,
int end)
Slice a subarray (as view, not copy!)
|
@Deprecated DBID get(int i)
DBIDArrayIter or a DBIDVar
instead of materializing expensive DBID objects.DBIDArrayIter via iter() instead, or
an DBIDVar via assignVar(int, de.lmu.ifi.dbs.elki.database.ids.DBIDVar)i - Indexvoid assignVar(int index,
DBIDVar var)
index.index - Positionvar - Variable to assign the value to.DBIDArrayIter iter()
int binarySearch(DBIDRef key)
-(1+insertion position) is returned, as
for Java Collections.binarySearch(java.util.List<? extends java.lang.Comparable<? super T>>, T)key - Key to search forArrayDBIDs slice(int begin, int end)
begin - Begin (inclusive)end - End (exclusive)Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.