Package org.apache.solr.update
Class UpdateLog.RecentUpdates
- java.lang.Object
-
- org.apache.solr.update.UpdateLog.RecentUpdates
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- UpdateLog
public class UpdateLog.RecentUpdates extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description RecentUpdates(Deque<TransactionLog> logList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Set<Long>getBufferUpdates()List<Object>getDeleteByQuery(long afterVersion)Returns the list of deleteByQueries that happened after the given versionlonggetMaxRecentVersion()List<Long>getVersions(int n)List<Long>getVersions(int n, long maxVersion)Objectlookup(long version)
-
-
-
Constructor Detail
-
RecentUpdates
public RecentUpdates(Deque<TransactionLog> logList)
-
-
Method Detail
-
lookup
public Object lookup(long version)
-
getDeleteByQuery
public List<Object> getDeleteByQuery(long afterVersion)
Returns the list of deleteByQueries that happened after the given version
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getMaxRecentVersion
public long getMaxRecentVersion()
-
-