Class OOCCacheManager.CachedGroupCallback<T>
java.lang.Object
org.apache.sysds.runtime.ooc.cache.OOCCacheManager.CachedGroupCallback<T>
- All Implemented Interfaces:
AutoCloseable,OOCStream.GroupQueueCallback<T>,OOCStream.QueueCallback<T>
- Enclosing class:
- OOCCacheManager
public static class OOCCacheManager.CachedGroupCallback<T>
extends Object
implements OOCStream.GroupQueueCallback<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidfail(DMLRuntimeException failure) get()get(int idx) getCallback(int idx) booleanisEos()booleankeepOpen()Keeps the callback item pinned in memory until the returned callback is also closed.voidintsize()
-
Method Details
-
getCallback
- Specified by:
getCallbackin interfaceOOCStream.GroupQueueCallback<T>
-
registerQueueCallback
public void registerQueueCallback() -
get
- Specified by:
getin interfaceOOCStream.QueueCallback<T>
-
size
public int size()- Specified by:
sizein interfaceOOCStream.GroupQueueCallback<T>
-
get
-
keepOpen
Description copied from interface:OOCStream.QueueCallbackKeeps the callback item pinned in memory until the returned callback is also closed.- Specified by:
keepOpenin interfaceOOCStream.QueueCallback<T>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceOOCStream.QueueCallback<T>
-
fail
- Specified by:
failin interfaceOOCStream.QueueCallback<T>
-
isEos
public boolean isEos()- Specified by:
isEosin interfaceOOCStream.QueueCallback<T>
-
isFailure
public boolean isFailure()- Specified by:
isFailurein interfaceOOCStream.QueueCallback<T>
-
getBlockKey
-