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>
deleteByQueryList
List<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 void
close()
Set<Long>
getBufferUpdates()
List<Object>
getDeleteByQuery(long afterVersion, LongSet updateVersions)
Returns the list of deleteByQueries that happened after the given versionlong
getMaxRecentVersion()
List<Long>
getVersions(int n)
List<Long>
getVersions(int n, long maxVersion)
Object
lookup(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getMaxRecentVersion
public long getMaxRecentVersion()
-
-