public static interface DistributionSchedule.WriteSet
| Modifier and Type | Method and Description |
|---|---|
void |
addMissingIndices(int maxIndex)
If we want a write set to cover all bookies in an ensemble
of size X, then all of the index from 0..X must exist in the
write set.
|
boolean |
contains(int i)
Whether the set contains the given index.
|
DistributionSchedule.WriteSet |
copy()
Make a deep copy of this write set.
|
int |
get(int i)
Get the index at index i.
|
int |
indexOf(int index)
Index of a specified bookie index.
|
void |
moveAndShift(int from,
int to)
Move an index from one position to another,
shifting the other indices accordingly.
|
void |
recycle()
Recycle write set object when not in use.
|
int |
set(int i,
int index)
Set the index at index i.
|
int |
size()
The number of indexes in the write set.
|
void |
sort()
Sort the indices.
|
int size()
boolean contains(int i)
int get(int i)
int set(int i,
int index)
void sort()
int indexOf(int index)
void addMissingIndices(int maxIndex)
void moveAndShift(int from,
int to)
void recycle()
DistributionSchedule.WriteSet copy()
Copyright © 2011–2024 The Apache Software Foundation. All rights reserved.