public class CountFragment extends Object
The query should use the COUNT_ALIAS, eg.: SELECT COUNT(*) AS count FROM default;
This ensures that the framework will be able to map the JSON result to this CountFragment class so that it
can be used.
| Modifier and Type | Field and Description |
|---|---|
long |
count
The value for a COUNT that used
COUNT_ALIAS as an alias. |
static String |
COUNT_ALIAS
Use this alias for the COUNT part of a N1QL query so that the framework can extract the count result.
|
| Constructor and Description |
|---|
CountFragment() |
public static final String COUNT_ALIAS
public long count
COUNT_ALIAS as an alias.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.