Class TransferManager
java.lang.Object
org.opensearch.index.store.remote.utils.TransferManager
This acts as entry point to fetch
BlobFetchRequest
and return actual IndexInput
. Utilizes the BlobContainer interface to
read snapshot files located within a repository. This basically adapts BlobContainer snapshots files into IndexInput- Opensearch.internal:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Functional interface to get an InputStream for a file at a certain offset and size -
Constructor Summary
ConstructorDescriptionTransferManager
(TransferManager.StreamReader streamReader, FileCache fileCache) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.store.IndexInput
fetchBlob
(BlobFetchRequest blobFetchRequest) Given a blobFetchRequestList, return it's corresponding IndexInput.
-
Constructor Details
-
TransferManager
-
-
Method Details
-
fetchBlob
public org.apache.lucene.store.IndexInput fetchBlob(BlobFetchRequest blobFetchRequest) throws IOException Given a blobFetchRequestList, return it's corresponding IndexInput.- Parameters:
blobFetchRequest
- to fetch- Returns:
- future of IndexInput augmented with internal caching maintenance tasks
- Throws:
IOException
-