T
- sorted-field type for the annotator@PublicApi public interface BlockAnnotator<T extends BlockSortedField>
Modifier and Type | Interface and Description |
---|---|
static class |
BlockAnnotator.Factory
Factory for
BlockAnnotator . |
Modifier and Type | Method and Description |
---|---|
boolean |
isOnlineSorter()
Used to report whether the block annotator is an online sorter.
|
BlockSortedField |
updateSortedField(long blockId,
T oldValue)
Used to get a new sorted-field for the given block
at the current logical time.
|
void |
updateSortedFields(List<Pair<Long,T>> blockList)
Updates sorted-field values for all {block-id, sorted-field} pairs
at the same logical time.
|
BlockSortedField updateSortedField(long blockId, T oldValue)
blockId
- block IdoldValue
- old sorted-field valuevoid updateSortedFields(List<Pair<Long,T>> blockList)
blockList
- list of {block-id, sorted-field} pairsboolean isOnlineSorter()
updateSortedFields(List)
will be called before
acquiring an iterator for a particular location.true
if an online sorterCopyright © 2023. All Rights Reserved.