Class InMemoryUpdateStorage

    • Constructor Detail

      • InMemoryUpdateStorage

        public InMemoryUpdateStorage()
    • Method Detail

      • addUpdate

        public void addUpdate​(NDArrayMessage array)
        Add an ndarray to the storage
        Parameters:
        array - the array to add
      • numUpdates

        public int numUpdates()
        The number of updates added to the update storage
        Returns:
      • clear

        public void clear()
        Clear the array storage
      • doGetUpdate

        public NDArrayMessage doGetUpdate​(int index)
        A method for actually performing the implementation of retrieving the ndarray
        Specified by:
        doGetUpdate in class BaseUpdateStorage
        Parameters:
        index - the index of the INDArray to get
        Returns:
        the ndarray at the specified index