Create a new segment file (surrogates default to 0) and open it.
(path: &Path, dim: usize, vectors: &[&[f32]])
| 46 | |
| 47 | /// Create a new segment file (surrogates default to 0) and open it. |
| 48 | pub fn create(path: &Path, dim: usize, vectors: &[&[f32]]) -> std::io::Result<Self> { |
| 49 | write_segment(path, dim, vectors, &[])?; |
| 50 | Self::open_with_policy(path, VectorSegmentDropPolicy::default()) |
| 51 | } |
| 52 | |
| 53 | /// Create a new segment file with explicit surrogate IDs and open it. |
| 54 | pub fn create_with_surrogates( |
no test coverage detected