
public class ArrayIntegerStore extends Object implements WritableIntegerDataStore
| Modifier and Type | Field and Description |
|---|---|
private int[] |
data
Data array
|
private DataStoreIDMap |
idmap
DBID to index map
|
| Constructor and Description |
|---|
ArrayIntegerStore(int size,
DataStoreIDMap idmap)
Constructor.
|
ArrayIntegerStore(int size,
DataStoreIDMap idmap,
int def)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(DBIDRef id)
Delete the contents for a particular ID and notifies the registered
listeners.
|
void |
destroy()
Deallocate the storage, freeing the memory and notifies the registered
listeners.
|
Integer |
get(DBIDRef id)
Deprecated.
|
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
String |
getShortName()
A short name for the result, useful for file names.
|
int |
intValue(DBIDRef id)
Retrieves an object from the storage.
|
int |
put(DBIDRef id,
int value)
Associates the specified value with the specified id in this storage.
|
Integer |
put(DBIDRef id,
Integer value)
Deprecated.
|
int |
putInt(DBIDRef id,
int value)
Associates the specified value with the specified id in this storage.
|
private int[] data
private DataStoreIDMap idmap
public ArrayIntegerStore(int size,
DataStoreIDMap idmap)
size - Sizeidmap - ID mappublic ArrayIntegerStore(int size,
DataStoreIDMap idmap,
int def)
size - Sizeidmap - ID mapdef - Default value@Deprecated public Integer get(DBIDRef id)
IntegerDataStoreget in interface DataStore<Integer>get in interface IntegerDataStoreid - Database ID.null@Deprecated public Integer put(DBIDRef id, Integer value)
WritableIntegerDataStoreput in interface WritableDataStore<Integer>put in interface WritableIntegerDataStoreid - Database ID.value - Value to store.public int intValue(DBIDRef id)
IntegerDataStoreintValue in interface IntegerDataStoreid - Database ID.public int putInt(DBIDRef id, int value)
WritableIntegerDataStoreputInt in interface WritableIntegerDataStoreid - Database ID.value - Value to store.public int put(DBIDRef id, int value)
WritableIntegerDataStoreput in interface WritableIntegerDataStoreid - Database ID.value - Value to store.public void destroy()
WritableDataStoredestroy in interface WritableDataStore<Integer>public void delete(DBIDRef id)
WritableDataStoredelete in interface WritableDataStore<Integer>id - Database ID.public String getLongName()
ResultgetLongName in interface Resultpublic String getShortName()
ResultgetShortName in interface Result