diskann_disk/utils/aligned_file_reader/traits/aligned_file_reader.rs
1/*
2 * Copyright (c) Microsoft Corporation.
3 * Licensed under the MIT license.
4 */
5
6use diskann::ANNResult;
7
8use crate::utils::aligned_file_reader::AlignedRead;
9
10pub trait AlignedFileReader: Send + Sync {
11 /// Read the data from the file by sending concurrent io requests in batches.
12 fn read(&mut self, read_requests: &mut [AlignedRead<u8>]) -> ANNResult<()>;
13}