diff options
author | Andrej Shadura <andrewsh@debian.org> | 2019-03-09 22:30:29 +0000 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2019-03-09 22:30:29 +0000 |
commit | 6160961591bfbfeab2ea5f7c249f58c78e893347 (patch) | |
tree | ae6898c52d4f697964996fb00e23e7f784ce1b47 /src/de/lmu/ifi/dbs/elki/database/datastore/memory/ArrayRecordStore.java | |
parent | cde76aeb42240f7270bc6605c606ae07d2dc5a7d (diff) |
Import Upstream version 0.4.0~beta2
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.java | 49 |
1 files changed, 25 insertions, 24 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 701429df..507fe15b 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 @@ -1,26 +1,27 @@ package de.lmu.ifi.dbs.elki.database.datastore.memory; -/* -This file is part of ELKI: -Environment for Developing KDD-Applications Supported by Index-Structures - -Copyright (C) 2011 -Ludwig-Maximilians-Universität München -Lehr- und Forschungseinheit für Datenbanksysteme -ELKI Development Team - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU Affero General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU Affero General Public License for more details. - -You should have received a copy of the GNU Affero General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ +/* + This file is part of ELKI: + Environment for Developing KDD-Applications Supported by Index-Structures + + Copyright (C) 2011 + Ludwig-Maximilians-Universität München + Lehr- und Forschungseinheit für Datenbanksysteme + ELKI Development Team + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + */ import de.lmu.ifi.dbs.elki.database.datastore.DataStoreIDMap; import de.lmu.ifi.dbs.elki.database.datastore.WritableDataStore; @@ -59,7 +60,7 @@ public class ArrayRecordStore implements WritableRecordStore { } @Override - public <T> WritableDataStore<T> getStorage(int col, @SuppressWarnings("unused") Class<? super T> datatype) { + public <T> WritableDataStore<T> getStorage(int col, Class<? super T> datatype) { // TODO: add type checking safety? return new StorageAccessor<T>(col); } @@ -142,7 +143,7 @@ public class ArrayRecordStore implements WritableRecordStore { } @Override - public void delete(@SuppressWarnings("unused") DBID id) { + public void delete(DBID id) { throw new UnsupportedOperationException("ArrayStore record values cannot be deleted."); } @@ -158,7 +159,7 @@ public class ArrayRecordStore implements WritableRecordStore { } @Override - public boolean remove(@SuppressWarnings("unused") DBID id) { + public boolean remove(DBID id) { throw new UnsupportedOperationException("ArrayStore records cannot be removed."); } }
\ No newline at end of file |