public class CountedDistinctValue extends Object
A CountedDistinctValue is a value that includes a frequency.
| Constructor and Description |
|---|
CountedDistinctValue() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(String type,
Class<T> as)
Returns the value cast to the specified type.
|
long |
getCount()
Returns the frequency associated with this value.
|
public long getCount()
Returns the frequency associated with this value.
public <T> T get(String type, Class<T> as)
Returns the value cast to the specified type.
This method converts the value according to the supplied type and then casts it to the specified class.
The following types are supported:
xs:anySimpleType,
xs:base64Binary, xs:boolean,
xs:byte, xs:date,
xs:dateTime, xs:dayTimeDuration,
xs:decimal, xs:double,
xs:duration, xs:float,
xs:int, xs:integer,
xs:long, xs:short,
xs:string, xs:time,
xs:unsignedInt, xs:unsignedLong,
xs:unsignedShort, and
xs:yearMonthDuration.
T - The class to cast totype - The name of the XSD type to use for conversion.as - The class parameterlabelCopyright © 2013-2017 MarkLogic Corporation.