Class SortedStream
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.tree.store.utils.SortedStream
-
- All Implemented Interfaces:
Comparable<SortedStream>
public class SortedStream extends Object implements Comparable<SortedStream>
A helper class to iterate over key-value pairs in a tree store, in ascending key order. The class helps merging multiple streams of key-value pairs. Internally, it is backed by an iterator over positions in the key-value pair.
-
-
Constructor Summary
Constructors Constructor Description SortedStream(int priority, String rootFileName, Iterator<Position> it)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SortedStream o)
String
currentKeyOrNull()
String
currentValue()
void
next()
String
toString()
-
-
-
Method Detail
-
currentKeyOrNull
public String currentKeyOrNull()
-
currentValue
public String currentValue()
-
next
public void next()
-
compareTo
public int compareTo(SortedStream o)
- Specified by:
compareTo
in interfaceComparable<SortedStream>
-
-