public interface Excerpt extends ExcerptTailer
ChronicleQueue, an extended version of ExcerptTailer which also facilitates
random access.| Modifier and Type | Method and Description |
|---|---|
long |
findMatch(ExcerptComparator comparator)
Find any entry which return a match i.e.
|
void |
findRange(long[] startEnd,
ExcerptComparator comparator)
Find entries which return a match.
|
boolean |
index(int cycle,
long index)
Randomly select an Excerpt.
|
boolean |
index(long index)
Randomly select an Excerpt.
|
Excerpt |
toEnd()
Wind to the upper.
|
Excerpt |
toStart()
Replay from the lower.
|
cycle, index, index, readDocumentqueuelong findMatch(@NotNull
ExcerptComparator comparator)
comparator - to use for comparison.void findRange(@NotNull
long[] startEnd,
@NotNull
ExcerptComparator comparator)
startEnd - lower (inclusive) to upper (enclusive). Will be equal if no exact match is found.comparator - to use for comparison.boolean index(long index)
throws IOException
index in interface ExcerptTailerindex - index to look upIOException - if not able to read the chronicle fileboolean index(int cycle,
long index)
throws IOException
cycle - cycleindex - index to look upIOException@NotNull Excerpt toStart()
toStart in interface ExcerptTailer@NotNull Excerpt toEnd()
toEnd in interface ExcerptTailerCopyright © 2015. All rights reserved.