trinity.buffer.reader package#
Submodules#
Module contents#
- class trinity.buffer.reader.FileReader(config: StorageConfig)[source]#
Bases:
BaseFileReaderProvide a unified interface for Experience and Task file readers.
- __init__(config: StorageConfig)[source]#
- async read_with_indices_async(indices: List[int]) List[source]#
Read tasks with indices asynchronously.
- class trinity.buffer.reader.QueueReader(config: StorageConfig)[source]#
Bases:
BufferReaderReader of the Queue buffer.
- __init__(config: StorageConfig)[source]#
- class trinity.buffer.reader.SQLReader(config: StorageConfig)[source]#
Bases:
BufferReaderReader of the SQL buffer.
- __init__(config: StorageConfig) None[source]#