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
-
-
Field Summary
Fields Modifier and Type Field Description List<UpdateLog.Update>deleteByQueryListList<UpdateLog.DeleteUpdate>deleteList
-
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, LongSet updateVersions)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)
-
-
-
Field Detail
-
deleteByQueryList
public List<UpdateLog.Update> deleteByQueryList
-
deleteList
public List<UpdateLog.DeleteUpdate> deleteList
-
-
Constructor Detail
-
RecentUpdates
public RecentUpdates(Deque<TransactionLog> logList)
-
-
Method Detail
-
lookup
public Object lookup(long version)
-
getDeleteByQuery
public List<Object> getDeleteByQuery(long afterVersion, LongSet updateVersions)
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()
-
-