public class LRFUAnnotator extends Object implements BlockAnnotator<LRFUAnnotator.LRFUSortedField>
BlockAnnotator
implementation of LRFU scheme.Modifier and Type | Class and Description |
---|---|
protected static class |
LRFUAnnotator.LRFUSortedField
Sorted-field for LRFU.
|
BlockAnnotator.Factory
Constructor and Description |
---|
LRFUAnnotator() |
Modifier and Type | Method and Description |
---|---|
boolean |
isOnlineSorter()
LRFU is an offline scheme.
|
BlockSortedField |
updateSortedField(long blockId,
LRFUAnnotator.LRFUSortedField oldValue)
Used to get a new sorted-field for the given block
at the current logical time.
|
void |
updateSortedFields(List<Pair<Long,LRFUAnnotator.LRFUSortedField>> blockList)
Updates sorted-field values for all {block-id, sorted-field} pairs
at the same logical time.
|
public BlockSortedField updateSortedField(long blockId, LRFUAnnotator.LRFUSortedField oldValue)
BlockAnnotator
updateSortedField
in interface BlockAnnotator<LRFUAnnotator.LRFUSortedField>
blockId
- block IdoldValue
- old sorted-field valuepublic void updateSortedFields(List<Pair<Long,LRFUAnnotator.LRFUSortedField>> blockList)
BlockAnnotator
updateSortedFields
in interface BlockAnnotator<LRFUAnnotator.LRFUSortedField>
blockList
- list of {block-id, sorted-field} pairspublic boolean isOnlineSorter()
isOnlineSorter
in interface BlockAnnotator<LRFUAnnotator.LRFUSortedField>
false
Copyright © 2023. All Rights Reserved.