summaryrefslogtreecommitdiff
path: root/src/de/lmu/ifi/dbs/elki/database/datastore/memory/ArrayRecordStore.java
diff options
context:
space:
mode:
authorErich Schubert <erich@debian.org>2012-06-30 00:55:33 +0200
committerAndrej Shadura <andrewsh@debian.org>2019-03-09 22:30:34 +0000
commit4343785ebed9d4145f417d86d581f18a0d31e4ac (patch)
tree546b0aa227d50caf4246be12f89ffcbae924f8e0 /src/de/lmu/ifi/dbs/elki/database/datastore/memory/ArrayRecordStore.java
parent593eae6c91717eb9f4ff5088ba460dd4210509c0 (diff)
parentace5fa7f57d49756c0e1b111a30f3b6a9436c1cb (diff)
Import Debian changes 0.5.0-1
elki (0.5.0-1) unstable; urgency=low * New upstream release: 0.5.0 final.
Diffstat (limited to 'src/de/lmu/ifi/dbs/elki/database/datastore/memory/ArrayRecordStore.java')
-rw-r--r--src/de/lmu/ifi/dbs/elki/database/datastore/memory/ArrayRecordStore.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/de/lmu/ifi/dbs/elki/database/datastore/memory/ArrayRecordStore.java b/src/de/lmu/ifi/dbs/elki/database/datastore/memory/ArrayRecordStore.java
index 7be68c97..6e578b61 100644
--- a/src/de/lmu/ifi/dbs/elki/database/datastore/memory/ArrayRecordStore.java
+++ b/src/de/lmu/ifi/dbs/elki/database/datastore/memory/ArrayRecordStore.java
@@ -26,7 +26,7 @@ package de.lmu.ifi.dbs.elki.database.datastore.memory;
import de.lmu.ifi.dbs.elki.database.datastore.DataStoreIDMap;
import de.lmu.ifi.dbs.elki.database.datastore.WritableDataStore;
import de.lmu.ifi.dbs.elki.database.datastore.WritableRecordStore;
-import de.lmu.ifi.dbs.elki.database.ids.DBID;
+import de.lmu.ifi.dbs.elki.database.ids.DBIDRef;
/**
* A class to answer representation queries using the stored Array.
@@ -73,7 +73,7 @@ public class ArrayRecordStore implements WritableRecordStore {
* @return current value
*/
@SuppressWarnings("unchecked")
- protected <T> T get(DBID id, int index) {
+ protected <T> T get(DBIDRef id, int index) {
try {
return (T) data[idmap.map(id)][index];
}
@@ -97,7 +97,7 @@ public class ArrayRecordStore implements WritableRecordStore {
* @return old value
*/
@SuppressWarnings("unchecked")
- protected <T> T set(DBID id, int index, T value) {
+ protected <T> T set(DBIDRef id, int index, T value) {
T ret = (T) data[idmap.map(id)][index];
data[idmap.map(id)][index] = value;
return ret;
@@ -128,12 +128,12 @@ public class ArrayRecordStore implements WritableRecordStore {
@SuppressWarnings("unchecked")
@Override
- public T get(DBID id) {
+ public T get(DBIDRef id) {
return (T) ArrayRecordStore.this.get(id, index);
}
@Override
- public T put(DBID id, T value) {
+ public T put(DBIDRef id, T value) {
return ArrayRecordStore.this.set(id, index, value);
}
@@ -143,7 +143,7 @@ public class ArrayRecordStore implements WritableRecordStore {
}
@Override
- public void delete(DBID id) {
+ public void delete(DBIDRef id) {
throw new UnsupportedOperationException("ArrayStore record values cannot be deleted.");
}
@@ -159,7 +159,7 @@ public class ArrayRecordStore implements WritableRecordStore {
}
@Override
- public boolean remove(DBID id) {
+ public boolean remove(DBIDRef id) {
throw new UnsupportedOperationException("ArrayStore records cannot be removed.");
}
} \ No newline at end of file