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 |
moveToIndex(long index)
Randomly select an Excerpt.
|
Excerpt |
toEnd()
Wind to the upper.
|
Excerpt |
toStart()
Replay from the lower.
|
index, readBytes, readBytes, readDocument
prefetch, queue
long findMatch(@NotNull ExcerptComparator comparator)
comparator
- to use for comparison.void findRange(@NotNull long[] startEnd, @NotNull ExcerptComparator comparator)
startEnd
- lower (inclusive) to upper (exclusive). Will be equal if no exact match is
found.comparator
- to use for comparison.boolean moveToIndex(long index) throws IOException
moveToIndex
in interface ExcerptTailer
index
- index to look upIOException
- if not able to read the chronicle file@NotNull Excerpt toStart()
toStart
in interface ExcerptTailer
@NotNull Excerpt toEnd()
toEnd
in interface ExcerptTailer
Copyright © 2016. All rights reserved.