public class LongStatistics extends Statistics<Long>
| Constructor and Description |
|---|
LongStatistics() |
| Modifier and Type | Method and Description |
|---|---|
Long |
genericGetMax() |
Long |
genericGetMin() |
long |
getMax() |
byte[] |
getMaxBytes()
Abstract method to return the max value as a byte array
|
long |
getMin() |
byte[] |
getMinBytes()
Abstract method to return the min value as a byte array
|
void |
initializeStats(long min_value,
long max_value) |
boolean |
isSmallerThan(long size)
Abstract method to return whether the min and max values fit in the given
size.
|
void |
mergeStatisticsMinMax(Statistics stats)
Abstract method to merge this statistics min and max with the values
of the parameter object.
|
void |
setMinMax(long min,
long max) |
void |
setMinMaxFromBytes(byte[] minBytes,
byte[] maxBytes)
Abstract method to set min and max values from byte arrays.
|
String |
toString()
toString() to display min, max, num_nulls in a string
|
void |
updateStats(long value)
updates statistics min and max using the passed value
|
void |
updateStats(long min_value,
long max_value) |
equals, getNumNulls, getStatsBasedOnType, hashCode, hasNonNullValue, incrementNumNulls, incrementNumNulls, isEmpty, markAsNotEmpty, mergeStatistics, setNumNulls, updateStats, updateStats, updateStats, updateStats, updateStatspublic void updateStats(long value)
StatisticsupdateStats in class Statistics<Long>value - value to use to update min and maxpublic void mergeStatisticsMinMax(Statistics stats)
StatisticsmergeStatisticsMinMax in class Statistics<Long>stats - Statistics object to merge withpublic void setMinMaxFromBytes(byte[] minBytes,
byte[] maxBytes)
StatisticssetMinMaxFromBytes in class Statistics<Long>minBytes - byte array to set the min value tomaxBytes - byte array to set the max value topublic byte[] getMaxBytes()
StatisticsgetMaxBytes in class Statistics<Long>public byte[] getMinBytes()
StatisticsgetMinBytes in class Statistics<Long>public boolean isSmallerThan(long size)
StatisticsisSmallerThan in class Statistics<Long>size - a size in bytespublic String toString()
StatisticstoString in class Statistics<Long>public void updateStats(long min_value,
long max_value)
public void initializeStats(long min_value,
long max_value)
public Long genericGetMin()
genericGetMin in class Statistics<Long>public Long genericGetMax()
genericGetMax in class Statistics<Long>public long getMax()
public long getMin()
public void setMinMax(long min,
long max)
Copyright © 2016 The Apache Software Foundation. All rights reserved.