@@ -49,8 +49,9 @@ public DefaultIVFVectorsReader(SegmentReadState state, FlatVectorsReader rawVect
4949
5050 CentroidIterator getPostingListPrefetchIterator (CentroidIterator centroidIterator , IndexInput postingListSlice ) throws IOException {
5151 return new CentroidIterator () {
52- CentroidOffsetAndLength nextOffsetAndLength =
53- centroidIterator .hasNext () ? centroidIterator .nextPostingListOffsetAndLength () : null ;
52+ CentroidOffsetAndLength nextOffsetAndLength = centroidIterator .hasNext ()
53+ ? centroidIterator .nextPostingListOffsetAndLength ()
54+ : null ;
5455
5556 private void prefetch (CentroidOffsetAndLength offsetAndLength ) throws IOException {
5657 postingListSlice .prefetch (offsetAndLength .offset (), offsetAndLength .length ());
@@ -78,8 +79,12 @@ public CentroidOffsetAndLength nextPostingListOffsetAndLength() throws IOExcepti
7879
7980 @ Override
8081 CentroidIterator getCentroidIterator (
81- FieldInfo fieldInfo , int numCentroids , IndexInput centroids , float [] targetQuery , IndexInput postingListSlice )
82- throws IOException {
82+ FieldInfo fieldInfo ,
83+ int numCentroids ,
84+ IndexInput centroids ,
85+ float [] targetQuery ,
86+ IndexInput postingListSlice
87+ ) throws IOException {
8388 final FieldEntry fieldEntry = fields .get (fieldInfo .number );
8489 final float globalCentroidDp = fieldEntry .globalCentroidDp ();
8590 final OptimizedScalarQuantizer scalarQuantizer = new OptimizedScalarQuantizer (fieldInfo .getVectorSimilarityFunction ());
@@ -114,7 +119,15 @@ CentroidIterator getCentroidIterator(
114119 globalCentroidDp
115120 );
116121 } else {
117- centroidIterator = getCentroidIteratorNoParent (fieldInfo , centroids , numCentroids , scorer , quantized , queryParams , globalCentroidDp );
122+ centroidIterator = getCentroidIteratorNoParent (
123+ fieldInfo ,
124+ centroids ,
125+ numCentroids ,
126+ scorer ,
127+ quantized ,
128+ queryParams ,
129+ globalCentroidDp
130+ );
118131 }
119132 return getPostingListPrefetchIterator (centroidIterator , postingListSlice );
120133 }
0 commit comments