public final class Accumulator
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Accumulator.Counts<T extends java.lang.Enum<T>> |
| Constructor and Description |
|---|
Accumulator() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends java.lang.Enum<T>> |
count(java.util.Iterator<PartitionedCount<T>> intervals,
T type) |
static <T extends java.lang.Enum<T>> |
countForPeriod(IntervalIterator<PartitionedCount<T>> intervals,
T type,
long duration,
java.util.concurrent.TimeUnit unit) |
static <T extends java.lang.Enum<T>> |
counts(java.util.Iterator<PartitionedCount<T>> intervals) |
static <T extends java.lang.Enum<T>> |
countsForPeriod(IntervalIterator<PartitionedCount<T>> intervals,
long duration,
java.util.concurrent.TimeUnit unit) |
public static <T extends java.lang.Enum<T>> long count(java.util.Iterator<PartitionedCount<T>> intervals, T type)
public static <T extends java.lang.Enum<T>> long countForPeriod(IntervalIterator<PartitionedCount<T>> intervals, T type, long duration, java.util.concurrent.TimeUnit unit)
public static <T extends java.lang.Enum<T>> Accumulator.Counts<T> counts(java.util.Iterator<PartitionedCount<T>> intervals)
public static <T extends java.lang.Enum<T>> Accumulator.Counts<T> countsForPeriod(IntervalIterator<PartitionedCount<T>> intervals, long duration, java.util.concurrent.TimeUnit unit)
Copyright © 2014 Tim Brooks. All Rights Reserved.