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 void
add(@NotNull NodeStateEntry item)
Add an item at the tail of the list.void
close()
long
estimatedMemoryUsage()
boolean
isEmpty()
Iterator<NodeStateEntry>
iterator()
Get an iterator to iterate over the whole listNodeStateEntry
remove()
Remove the first item from the list.int
size()
-
-
-
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:NodeStateEntryList
Add an item at the tail of the list.- Specified by:
add
in interfaceNodeStateEntryList
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceNodeStateEntryList
-
iterator
public Iterator<NodeStateEntry> iterator()
Description copied from interface:NodeStateEntryList
Get an iterator to iterate over the whole list- Specified by:
iterator
in interfaceNodeStateEntryList
-
remove
public NodeStateEntry remove()
Description copied from interface:NodeStateEntryList
Remove the first item from the list.- Specified by:
remove
in interfaceNodeStateEntryList
- Returns:
- the removed item
-
size
public int size()
- Specified by:
size
in interfaceNodeStateEntryList
-
close
public void close()
- Specified by:
close
in interfaceNodeStateEntryList
-
estimatedMemoryUsage
public long estimatedMemoryUsage()
- Specified by:
estimatedMemoryUsage
in interfaceNodeStateEntryList
-
-