Class MatrixObjectFuture

    • Method Detail

      • acquireRead

        public MatrixBlock acquireRead()
        Description copied from class: CacheableData
        Acquires a shared "read-only" lock, produces the reference to the cache block, restores the cache block to main memory, reads from HDFS if needed. Synchronized because there might be parallel threads (parfor local) that access the same object (in case it was created before the loop). In-Status: EMPTY, EVICTABLE, EVICTED, READ; Out-Status: READ(+1).
        Overrides:
        acquireRead in class CacheableData<MatrixBlock>
        Returns:
        cacheable data
      • release

        public void release()
        Description copied from class: CacheableData
        Releases the shared ("read-only") or exclusive ("write") lock. Updates size information, last-access time, metadata, etc. Synchronized because there might be parallel threads (parfor local) that access the same object (in case it was created before the loop). In-Status: READ, MODIFY; Out-Status: READ(-1), EVICTABLE, EMPTY.
        Overrides:
        release in class CacheableData<MatrixBlock>
      • clearData

        public void clearData​(long tid)
        Description copied from class: CacheableData
        Sets the cache block reference to null, abandons the old block. Makes the "envelope" empty. Run it to finalize the object (otherwise the evicted cache block file may remain undeleted). In-Status: EMPTY, EVICTABLE, EVICTED; Out-Status: EMPTY.
        Overrides:
        clearData in class CacheableData<MatrixBlock>
        Parameters:
        tid - thread ID