Class BaseUpdateStorage
- java.lang.Object
-
- org.nd4j.parameterserver.updater.storage.BaseUpdateStorage
-
- All Implemented Interfaces:
UpdateStorage
- Direct Known Subclasses:
InMemoryUpdateStorage,NoUpdateStorage
public abstract class BaseUpdateStorage extends Object implements UpdateStorage
-
-
Constructor Summary
Constructors Constructor Description BaseUpdateStorage()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()Close the databaseabstract NDArrayMessagedoGetUpdate(int index)A method for actually performing the implementation of retrieving the ndarrayNDArrayMessagegetUpdate(int index)Get the update at the specified index-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nd4j.parameterserver.updater.storage.UpdateStorage
addUpdate, clear, numUpdates
-
-
-
-
Method Detail
-
getUpdate
public NDArrayMessage getUpdate(int index)
Get the update at the specified index- Specified by:
getUpdatein interfaceUpdateStorage- Parameters:
index- the update to get- Returns:
- the update at the specified index
-
doGetUpdate
public abstract NDArrayMessage doGetUpdate(int index)
A method for actually performing the implementation of retrieving the ndarray- Parameters:
index- the index of theINDArrayto get- Returns:
- the ndarray at the specified index
-
close
public void close()
Close the database- Specified by:
closein interfaceUpdateStorage
-
-