
public abstract class TroveArrayDBIDs extends Object implements IntegerArrayDBIDs
| Modifier and Type | Class and Description | 
|---|---|
protected static class  | 
TroveArrayDBIDs.DBIDItr
Iterate over a Trove IntList, ELKI/C-style. 
 | 
| Constructor and Description | 
|---|
TroveArrayDBIDs()  | 
| 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. 
 | 
boolean | 
contains(DBIDRef o)
Test whether an ID is contained. 
 | 
DBID | 
get(int index)
Get the i'th entry (starting at 0)
 
 If possible, use an  
DBIDArrayIter via ArrayDBIDs.iter() instead! | 
protected abstract gnu.trove.list.TIntList | 
getStore()
Get the array store. 
 | 
boolean | 
isEmpty()
Test for an empty DBID collection. 
 | 
IntegerDBIDArrayMIter | 
iter()
Get a DBID iterator (a more efficient API). 
 | 
int | 
size()
Retrieve the collection / data size. 
 | 
String | 
toString()  | 
protected abstract gnu.trove.list.TIntList getStore()
public IntegerDBIDArrayMIter iter()
DBIDs
 for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) {
   DBID id = iter.getDBID();
 }
 
 iter in interface ArrayDBIDsiter in interface DBIDsiter in interface IntegerArrayDBIDsiter in interface IntegerDBIDspublic DBID get(int index)
ArrayDBIDsDBIDArrayIter via ArrayDBIDs.iter() instead!get in interface ArrayDBIDsindex - Indexpublic void assignVar(int index,
             DBIDVar var)
ArrayDBIDsindex.assignVar in interface ArrayDBIDsindex - Positionvar - Variable to assign the value to.public int size()
DBIDssize in interface ArrayDBIDssize in interface DBIDspublic boolean isEmpty()
DBIDspublic boolean contains(DBIDRef o)
DBIDspublic int binarySearch(DBIDRef key)
ArrayDBIDs-(1+insertion position) is returned, as
 for Java Collections.binarySearch(java.util.List<? extends java.lang.Comparable<? super T>>, T)binarySearch in interface ArrayDBIDskey - Key to search for