@@ -168,10 +168,6 @@ func (i *unadornedPostingsIterator1Hit) BytesWritten() uint64 {
168168
169169func (i * unadornedPostingsIterator1Hit ) ResetBytesRead (uint64 ) {}
170170
171- // Implement OptimizablePostingsIterator so a 1-hit iterator produced by one
172- // optimization pass (e.g. the unadorned conjunction/disjunction Finish) can be
173- // re-optimized when it feeds into a nested conjunction/disjunction, rather than
174- // aborting the outer optimization on a failed type assertion.
175171func (i * unadornedPostingsIterator1Hit ) ActualBitmap () * roaring.Bitmap { return nil }
176172
177173func (i * unadornedPostingsIterator1Hit ) DocNum1Hit () (uint64 , bool ) {
@@ -198,23 +194,6 @@ type ResetablePostingsIterator interface {
198194 ResetIterator ()
199195}
200196
201- // Compile-time guarantee that every postings-iterator type placed into an
202- // optimized termFieldReader's per-segment iterator slice implements
203- // OptimizablePostingsIterator, so a nested conjunction/disjunction optimization
204- // composes it instead of silently aborting on a failed type assertion.
205- //
206- // The two stateful iterators must additionally be resettable so termFieldReader
207- // reuse rewinds them; the empty iterator is stateless and intentionally opts out
208- // (ResetIterator is invoked via an optional type assertion).
209- var (
210- _ segment.OptimizablePostingsIterator = (* emptyPostingsIterator )(nil )
211- _ segment.OptimizablePostingsIterator = (* unadornedPostingsIteratorBitmap )(nil )
212- _ segment.OptimizablePostingsIterator = (* unadornedPostingsIterator1Hit )(nil )
213-
214- _ ResetablePostingsIterator = (* unadornedPostingsIteratorBitmap )(nil )
215- _ ResetablePostingsIterator = (* unadornedPostingsIterator1Hit )(nil )
216- )
217-
218197type UnadornedPosting struct {
219198 docNum uint64
220199}
0 commit comments