Package org.apache.lucene.util
Class RollingBuffer<T extends RollingBuffer.Resettable>
- java.lang.Object
-
- org.apache.lucene.util.RollingBuffer<T>
-
public abstract class RollingBuffer<T extends RollingBuffer.Resettable> extends Object
Acts like forever growing T[], but internally uses a circular buffer to reuse instances of T.- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRollingBuffer.Resettable
-
Constructor Summary
Constructors Constructor Description RollingBuffer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidfreeBefore(int pos)Tget(int pos)Get T instance for this absolute position; this is allowed to be arbitrarily far "in the future" but cannot be before the last freeBefore.protected abstract TnewInstance()voidreset()
-