public class AggregateResult
extends java.lang.Object
Constructor | Description |
---|---|
AggregateResult() |
Modifier and Type | Method | Description |
---|---|---|
<T> T |
get(java.lang.String type,
java.lang.Class<T> as) |
Returns the value cast to the specified
type.
|
java.lang.String |
getName() |
Returns the name of this aggregate.
|
java.lang.String |
getValue() |
Returns the value of this aggregate as a
string.
|
public java.lang.String getName()
public java.lang.String getValue()
Use get() to convert the string value into a typed value.
public <T> T get(java.lang.String type, java.lang.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 parameterlabel
Copyright © 2013-2019 MarkLogic Corporation.