public final class DistributionUpdate extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Dataflow API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
DistributionUpdate() |
Modifier and Type | Method and Description |
---|---|
DistributionUpdate |
clone() |
SplitInt64 |
getCount()
The count of the number of elements present in the distribution.
|
List<LogBucket> |
getLogBuckets()
(Optional) Logarithmic histogram of values.
|
SplitInt64 |
getMax()
The maximum value present in the distribution.
|
SplitInt64 |
getMin()
The minimum value present in the distribution.
|
SplitInt64 |
getSum()
Use an int64 since we'd prefer the added precision.
|
Double |
getSumOfSquares()
Use a double since the sum of squares is likely to overflow int64.
|
DistributionUpdate |
set(String fieldName,
Object value) |
DistributionUpdate |
setCount(SplitInt64 count)
The count of the number of elements present in the distribution.
|
DistributionUpdate |
setLogBuckets(List<LogBucket> logBuckets)
(Optional) Logarithmic histogram of values.
|
DistributionUpdate |
setMax(SplitInt64 max)
The maximum value present in the distribution.
|
DistributionUpdate |
setMin(SplitInt64 min)
The minimum value present in the distribution.
|
DistributionUpdate |
setSum(SplitInt64 sum)
Use an int64 since we'd prefer the added precision.
|
DistributionUpdate |
setSumOfSquares(Double sumOfSquares)
Use a double since the sum of squares is likely to overflow int64.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public SplitInt64 getCount()
null
for nonepublic DistributionUpdate setCount(SplitInt64 count)
count
- count or null
for nonepublic List<LogBucket> getLogBuckets()
null
for nonepublic DistributionUpdate setLogBuckets(List<LogBucket> logBuckets)
logBuckets
- logBuckets or null
for nonepublic SplitInt64 getMax()
null
for nonepublic DistributionUpdate setMax(SplitInt64 max)
max
- max or null
for nonepublic SplitInt64 getMin()
null
for nonepublic DistributionUpdate setMin(SplitInt64 min)
min
- min or null
for nonepublic SplitInt64 getSum()
null
for nonepublic DistributionUpdate setSum(SplitInt64 sum)
sum
- sum or null
for nonepublic Double getSumOfSquares()
null
for nonepublic DistributionUpdate setSumOfSquares(Double sumOfSquares)
sumOfSquares
- sumOfSquares or null
for nonepublic DistributionUpdate set(String fieldName, Object value)
set
in class GenericJson
public DistributionUpdate clone()
clone
in class GenericJson