Class PersistedLinkedList
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.flatfile.linkedList.PersistedLinkedList
-
- All Implemented Interfaces:
NodeStateEntryList
public class PersistedLinkedList extends Object implements NodeStateEntryList
A persistent linked list that internally uses the MVStore.
-
-
Constructor Summary
Constructors Constructor Description PersistedLinkedList(String fileName, NodeStateEntryWriter writer, NodeStateEntryReader reader, int cacheSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(@NotNull NodeStateEntry item)Add an item at the tail of the list.voidclose()longestimatedMemoryUsage()booleanisEmpty()Iterator<NodeStateEntry>iterator()Get an iterator to iterate over the whole listNodeStateEntryremove()Remove the first item from the list.intsize()
-
-
-
Constructor Detail
-
PersistedLinkedList
public PersistedLinkedList(String fileName, NodeStateEntryWriter writer, NodeStateEntryReader reader, int cacheSize)
-
-
Method Detail
-
add
public void add(@NotNull @NotNull NodeStateEntry item)Description copied from interface:NodeStateEntryListAdd an item at the tail of the list.- Specified by:
addin interfaceNodeStateEntryList
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceNodeStateEntryList
-
iterator
public Iterator<NodeStateEntry> iterator()
Description copied from interface:NodeStateEntryListGet an iterator to iterate over the whole list- Specified by:
iteratorin interfaceNodeStateEntryList
-
remove
public NodeStateEntry remove()
Description copied from interface:NodeStateEntryListRemove the first item from the list.- Specified by:
removein interfaceNodeStateEntryList- Returns:
- the removed item
-
size
public int size()
- Specified by:
sizein interfaceNodeStateEntryList
-
close
public void close()
- Specified by:
closein interfaceNodeStateEntryList
-
estimatedMemoryUsage
public long estimatedMemoryUsage()
- Specified by:
estimatedMemoryUsagein interfaceNodeStateEntryList
-
-