Modifier and Type | Class and Description |
---|---|
protected class |
MaskedDBIDs.DBIDItr
Iterator over set bits.
|
protected class |
MaskedDBIDs.InvDBIDItr
Iterator over set bits.
|
Modifier and Type | Field and Description |
---|---|
protected long[] |
bits
The bitmask used for masking.
|
protected ArrayDBIDs |
data
Data storage.
|
protected boolean |
inverse
Flag whether to iterator over set or unset values.
|
Constructor and Description |
---|
MaskedDBIDs(ArrayDBIDs data,
long[] bits,
boolean inverse)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(DBIDRef o)
Test whether an ID is contained.
|
boolean |
isEmpty()
Test for an empty DBID collection.
|
DBIDIter |
iter()
Get a DBID iterator (a more efficient API).
|
int |
size()
Retrieve the collection / data size.
|
protected ArrayDBIDs data
protected long[] bits
protected boolean inverse
public MaskedDBIDs(ArrayDBIDs data, long[] bits, boolean inverse)
data
- Databits
- Bitset to use as maskinverse
- Flag to inverse the masking rulepublic DBIDIter iter()
DBIDs
for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) {
DBID id = iter.getDBID();
}
public int size()
DBIDs
public boolean contains(DBIDRef o)
DBIDs
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.