Class BackgroundMemoryList<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- de.uka.ipd.sdq.sensorframework.storage.lists.BackgroundMemoryList<T>
-
- Type Parameters:
T- The generic type parameter of the list's elements
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>,RandomAccess
public class BackgroundMemoryList<T> extends AbstractList<T> implements List<T>, RandomAccess
Deprecated.Superseded by EDP2.
-
-
Field Summary
Fields Modifier and Type Field Description static intMEMORY_CHUNKS_SIZEDeprecated.Number of list elements per list chunk-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description BackgroundMemoryList(File f, ISerialiser<T> serialiser)Deprecated.Constructor of a background memory listBackgroundMemoryList(String filename, ISerialiser<T> serialiser)Deprecated.Constructor of a background memory list
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(int index, T e)Deprecated.voidclose()Deprecated.Closes the background storage.voidflush()Deprecated.Writes all buffered data to the background storage and clears the current chunk.Tget(int index)Deprecated.intsize()Deprecated.-
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
-
-
-
-
Field Detail
-
MEMORY_CHUNKS_SIZE
public static final int MEMORY_CHUNKS_SIZE
Deprecated.Number of list elements per list chunk- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BackgroundMemoryList
public BackgroundMemoryList(String filename, ISerialiser<T> serialiser) throws IOException
Deprecated.Constructor of a background memory list- Parameters:
filename- The file used as background storageserialiser- The serialiser used to serialise the elements of the list- Throws:
IOException- Thrown if file IO fails
-
BackgroundMemoryList
public BackgroundMemoryList(File f, ISerialiser<T> serialiser) throws IOException
Deprecated.Constructor of a background memory list- Parameters:
f- The file used as background storageserialiser- The serialiser used to serialise the elements of the list- Throws:
IOException- Thrown if file IO fails
-
-
Method Detail
-
add
public void add(int index, T e)Deprecated.
-
get
public T get(int index)
Deprecated.
-
size
public int size()
Deprecated.- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
close
public void close() throws IOExceptionDeprecated.Closes the background storage. The list is inaccessible afterwards- Throws:
IOException
-
flush
public void flush() throws IOExceptionDeprecated.Writes all buffered data to the background storage and clears the current chunk.- Throws:
IOException
-
-