| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| private static long | |
| public static < type of the data T> int | Returns: next estimated or calculated value of the sequenceAtomicLong holding statistical data about the estimated sequence stats, DataType<T> used for calculation of the next sequence value, if necessary dataType, T which size is to be calculated as the next sequence value, if necessary data)Estimates memory size of the data based on previous values. |
| public static < type of the data in the storage T> int | Returns: next estimated or calculated size of the storageAtomicLong holding statistical data about the estimated sequence stats, DataType<T> used for calculation of the next sequence value, if necessary dataType, T[] of the data set, which size is to be calculated storage, int number of data items in the storage count)Estimates memory size of the data set based on previous values. |
| private static int | |
| private static int | |
| private static int | |
| public static int | Returns: sampling percentage in range 0 - 100AtomicLong holding statistical data about the estimated sequence stats)Calculates percentage of how many times actual calculation happened (vs. estimation) |
| private static long | updateStatsData(AtomicLong stats, long statsData, int counter, int skipSum, long initialized, long sum, int itemsCount, int itemsMem)
|
| private static long | updateStatsData(AtomicLong stats, long statsData, long updatedStatsData, int itemsCount, int itemsMem)
|
| COUNTER_MASK | back to summary |
|---|---|
| private static final int COUNTER_MASK | |
| INIT_BIT | back to summary |
|---|---|
| private static final int INIT_BIT | |
| INIT_BIT_SHIFT | back to summary |
|---|---|
| private static final int INIT_BIT_SHIFT | |
| MAGNITUDE_LIMIT | back to summary |
|---|---|
| private static final int MAGNITUDE_LIMIT | |
| SKIP_SUM_MASK | back to summary |
|---|---|
| private static final int SKIP_SUM_MASK | |
| SKIP_SUM_SHIFT | back to summary |
|---|---|
| private static final int SKIP_SUM_SHIFT | |
| SUM_SHIFT | back to summary |
|---|---|
| private static final int SUM_SHIFT | |
| WINDOW_HALF_SIZE | back to summary |
|---|---|
| private static final int WINDOW_HALF_SIZE | |
| WINDOW_SHIFT | back to summary |
|---|---|
| private static final int WINDOW_SHIFT | |
| WINDOW_SIZE | back to summary |
|---|---|
| private static final int WINDOW_SIZE | |
| MemoryEstimator | back to summary |
|---|---|
| private MemoryEstimator() | |
| calculateMagnitude | back to summary |
|---|---|
| private static int calculateMagnitude(long sum, long absDelta) | |
| constructStatsData | back to summary |
|---|---|
| private static long constructStatsData(long sum, long initialized, int skipSum, int counter) | |
| estimateMemory | back to summary |
|---|---|
| public static <T> int estimateMemory(AtomicLong stats, DataType<T> dataType, T data) Estimates memory size of the data based on previous values.
| |
| estimateMemory | back to summary |
|---|---|
| public static <T> int estimateMemory(AtomicLong stats, DataType<T> dataType, T[] storage, int count) Estimates memory size of the data set based on previous values.
| |
| getAverage | back to summary |
|---|---|
| private static int getAverage(long updatedStatsData) | |
| getCounter | back to summary |
|---|---|
| private static int getCounter(long statsData) | |
| getSkipSum | back to summary |
|---|---|
| private static int getSkipSum(long statsData) | |
| samplingPct | back to summary |
|---|---|
| public static int samplingPct(AtomicLong stats) Calculates percentage of how many times actual calculation happened (vs. estimation)
| |
| updateStatsData | back to summary |
|---|---|
| private static long updateStatsData(AtomicLong stats, long statsData, int counter, int skipSum, long initialized, long sum, int itemsCount, int itemsMem) | |
| updateStatsData | back to summary |
|---|---|
| private static long updateStatsData(AtomicLong stats, long statsData, long updatedStatsData, int itemsCount, int itemsMem) | |