
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)
Get the i'th entry (starting at 0)
If possible, use an
DBIDArrayIter via iter() instead! |
DBIDArrayIter |
iter()
Iterable
|
int |
size()
Size of the DBID "collection".
|
ArrayDBIDs |
slice(int begin,
int end)
Slice a subarray (as view, not copy!)
|
DBID get(int i)
DBIDArrayIter via iter() instead!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)