Class OptimizedGraphArrayHolder

    • Constructor Detail

      • OptimizedGraphArrayHolder

        public OptimizedGraphArrayHolder​(ArrayHolder underlyingHolder)
    • Method Detail

      • hasArray

        public boolean hasArray​(String name)
        Specified by:
        hasArray in interface ArrayHolder
        Returns:
        True if an array by that name exists
      • getArray

        public INDArray getArray​(String name)
        Specified by:
        getArray in interface ArrayHolder
        Parameters:
        name - Name of the array to get
        Returns:
        The array, or null if no array with that name exists
      • setArray

        public void setArray​(String name,
                             INDArray array)
        Description copied from interface: ArrayHolder
        Set the array for the specified name (new array, or replace if it already exists)
        Specified by:
        setArray in interface ArrayHolder
        Parameters:
        name - Name of the array
        array - Array to set
      • removeArray

        public INDArray removeArray​(String name)
        Description copied from interface: ArrayHolder
        Remove the array from the ArrayHolder, returning it (if it exists)
        Specified by:
        removeArray in interface ArrayHolder
        Parameters:
        name - Name of the array to return
        Returns:
        The now-removed array
      • size

        public int size()
        Specified by:
        size in interface ArrayHolder
        Returns:
        Number of arrays in the ArrayHolder
      • initFrom

        public void initFrom​(ArrayHolder arrayHolder)
        Description copied from interface: ArrayHolder
        Initialize from the specified array holder. This clears all internal arrays, and adds all arrays from the specified array holder
        Specified by:
        initFrom in interface ArrayHolder
        Parameters:
        arrayHolder - Array holder to initialize this based on
      • rename

        public void rename​(String from,
                           String to)
        Description copied from interface: ArrayHolder
        Rename the entry with the specified name
        Specified by:
        rename in interface ArrayHolder
        Parameters:
        from - Original name
        to - New name