public class AggregateResult extends Object
A CountedDistinctValue is a value that includes a frequency.
| Constructor and Description |
|---|
AggregateResult() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(String type,
Class<T> as)
Returns the value cast to the specified type.
|
String |
getName()
Returns the name of this aggregate.
|
String |
getValue()
Returns the value of this aggregate as a string.
|
public String getName()
Returns the name of this aggregate.
public String getValue()
Returns the value of this aggregate as a string.
Use get() to convert the string value into a typed 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.