public class AggregateResult extends Object
| 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()
public String getValue()
Use get() to convert the string value into a typed value.
public <T> T get(String type, Class<T> as)
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-2016 MarkLogic Corporation.