|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.database.datastore.memory.ArrayRecordStore
public class ArrayRecordStore
A class to answer representation queries using the stored Array.
Nested Class Summary | |
---|---|
protected class |
ArrayRecordStore.StorageAccessor<T>
Access a single record in the given data. |
Field Summary | |
---|---|
private Object[][] |
data
Data array |
private DataStoreIDMap |
idmap
DBID to index map |
Constructor Summary | |
---|---|
ArrayRecordStore(Object[][] data,
DataStoreIDMap idmap)
Constructor with existing data |
Method Summary | ||
---|---|---|
protected
|
get(DBID id,
int index)
Actual getter |
|
|
getStorage(int col,
Class<? super T> datatype)
Get a WritableDataStore instance for a particular record column. |
|
boolean |
remove(DBID id)
Remove an object from the store, all columns. |
|
protected
|
set(DBID id,
int index,
T value)
Actual setter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Object[][] data
private final DataStoreIDMap idmap
Constructor Detail |
---|
public ArrayRecordStore(Object[][] data, DataStoreIDMap idmap)
data
- Existing dataidmap
- Map for array offsetsMethod Detail |
---|
public <T> WritableDataStore<T> getStorage(int col, Class<? super T> datatype)
WritableRecordStore
WritableDataStore
instance for a particular record column.
getStorage
in interface RecordStore
getStorage
in interface WritableRecordStore
T
- Data typecol
- Column numberdatatype
- data class
protected <T> T get(DBID id, int index)
id
- Database IDindex
- column index
protected <T> T set(DBID id, int index, T value)
id
- Database IDindex
- column indexvalue
- New value
public boolean remove(DBID id)
WritableRecordStore
remove
in interface WritableRecordStore
id
- object ID to remove
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |