public interface Indexing
SingleChronicleQueue
. This interface will be expanded over
time to clarify the API contract of SCQIndexing
.Modifier and Type | Method and Description |
---|---|
boolean |
indexable(long index) |
int |
indexCount() |
int |
indexSpacing() |
long |
lastSequenceNumber(ExcerptContext ex)
Get the sequence number of the last entry present in the cycle.
|
default long |
lastSequenceNumber(ExcerptContext ec,
boolean approximate)
Deprecated.
Use
lastSequenceNumber(ExcerptContext) instead |
int |
linearScanByPositionCount() |
int |
linearScanCount() |
long |
nextEntryToBeIndexed() |
int indexCount()
int indexSpacing()
long nextEntryToBeIndexed()
boolean indexable(long index)
@Deprecated default long lastSequenceNumber(ExcerptContext ec, boolean approximate) throws StreamCorruptedException
lastSequenceNumber(ExcerptContext)
insteadStreamCorruptedException
long lastSequenceNumber(ExcerptContext ex) throws StreamCorruptedException
Note: If you're not holding the write lock when you call this and there are concurrent writers, the value may be stale by the time it's returned. If you're holding the write lock it is guaranteed to be accurate.
ex
- An ExcerptContext
used to scan the roll cycle if necssaryStreamCorruptedException
int linearScanCount()
int linearScanByPositionCount()
Copyright © 2024. All rights reserved.