Skip to content

Commit ac1226f

Browse files
Add AbstractGraphIndexWriter::getDimension
1 parent 0913256 commit ac1226f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

jvector-base/src/main/java/io/github/jbellis/jvector/graph/disk/AbstractGraphIndexWriter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ public Set<FeatureId> getFeatureSet() {
8282
return featureMap.keySet();
8383
}
8484

85+
public int getDimension() {
86+
return dimension;
87+
}
88+
8589
long featureOffsetForOrdinal(long startOffset, int ordinal) {
8690
int edgeSize = Integer.BYTES * (1 + graph.getDegree(0));
8791
long inlineBytes = ordinal * (long) (Integer.BYTES + inlineFeatures.stream().mapToInt(Feature::featureSize).sum() + edgeSize);

0 commit comments

Comments
 (0)