public abstract class DenseStore extends java.lang.Object implements Store
| Modifier and Type | Method and Description |
|---|---|
void |
add(Bin bin)
Updates the counter at the specified index.
|
void |
add(int index)
Increments the counter at the specified index.
|
void |
add(int index,
double count)
Updates the counter at the specified index.
|
java.util.Iterator<Bin> |
getAscendingIterator() |
java.util.stream.Stream<Bin> |
getAscendingStream() |
java.util.Iterator<Bin> |
getDescendingIterator() |
java.util.stream.Stream<Bin> |
getDescendingStream() |
int |
getMaxIndex() |
int |
getMinIndex() |
double |
getTotalCount() |
boolean |
isEmpty() |
com.datadoghq.sketch.ddsketch.proto.Store |
toProto()
Generates a protobuf representation of this
Store. |
public void add(int index)
Storepublic void add(int index,
double count)
Storepublic void add(Bin bin)
Storepublic boolean isEmpty()
public int getMinIndex()
getMinIndex in interface Storepublic int getMaxIndex()
getMaxIndex in interface Storepublic double getTotalCount()
getTotalCount in interface Storepublic java.util.stream.Stream<Bin> getAscendingStream()
getAscendingStream in interface Storepublic java.util.stream.Stream<Bin> getDescendingStream()
getDescendingStream in interface Storepublic java.util.Iterator<Bin> getAscendingIterator()
getAscendingIterator in interface Storepublic java.util.Iterator<Bin> getDescendingIterator()
getDescendingIterator in interface Store