Class OOCMatrixIOHandler
java.lang.Object
org.apache.sysds.runtime.ooc.cache.io.OOCMatrixIOHandler
- All Implemented Interfaces:
OOCIOHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.sysds.runtime.ooc.cache.io.OOCIOHandler
OOCIOHandler.GroupSourceBlockDescriptor, OOCIOHandler.SourceBlockDescriptor, OOCIOHandler.SourceReadContinuation, OOCIOHandler.SourceReadRequest, OOCIOHandler.SourceReadResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontinueSourceRead(OOCIOHandler.SourceReadContinuation continuation, long maxBytesInFlight) Continue a previously throttled source read using the provided continuation token.voidprioritizeRead(BlockKey key, double priority) Increase priority for a pending scheduled read if it has not started yet.voidregisterSourceLocation(BlockKey key, OOCIOHandler.SourceBlockDescriptor descriptor) Registers the source location of a block for future direct reads.scheduleDeletion(BlockEntry block) scheduleEviction(BlockEntry block) scheduleRead(BlockEntry block) Schedule an asynchronous read from an external source into the provided target stream.voidshutdown()
-
Constructor Details
-
OOCMatrixIOHandler
public OOCMatrixIOHandler()
-
-
Method Details
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceOOCIOHandler
-
scheduleEviction
- Specified by:
scheduleEvictionin interfaceOOCIOHandler
-
scheduleRead
- Specified by:
scheduleReadin interfaceOOCIOHandler
-
prioritizeRead
Description copied from interface:OOCIOHandlerIncrease priority for a pending scheduled read if it has not started yet.- Specified by:
prioritizeReadin interfaceOOCIOHandler
-
scheduleDeletion
- Specified by:
scheduleDeletionin interfaceOOCIOHandler
-
registerSourceLocation
Description copied from interface:OOCIOHandlerRegisters the source location of a block for future direct reads.- Specified by:
registerSourceLocationin interfaceOOCIOHandler
-
scheduleSourceRead
public CompletableFuture<OOCIOHandler.SourceReadResult> scheduleSourceRead(OOCIOHandler.SourceReadRequest request) Description copied from interface:OOCIOHandlerSchedule an asynchronous read from an external source into the provided target stream. The returned future completes when either EOF is reached or the requested byte budget is exhausted. When the budget is reached and keepOpenOnLimit is true, the target stream is kept open and a continuation token is provided so the caller can resume.- Specified by:
scheduleSourceReadin interfaceOOCIOHandler
-
continueSourceRead
public CompletableFuture<OOCIOHandler.SourceReadResult> continueSourceRead(OOCIOHandler.SourceReadContinuation continuation, long maxBytesInFlight) Description copied from interface:OOCIOHandlerContinue a previously throttled source read using the provided continuation token.- Specified by:
continueSourceReadin interfaceOOCIOHandler
-