T
- Options typeTCallable
- Callable typepublic class LongValueCallable<T extends Options,TCallable extends AbstractQueryCallable<T>> extends AbstractScalarValueCallable<T,TCallable>
Usually used in conjunction with custom operations like
DatasetSizeOperation
which calculate some aggregate on the data using
a SELECT
query and want to return that aggregate value as the number
of results rather than the number of results rows as the basic
RemoteQueryCallable
would return.
Constructor and Description |
---|
LongValueCallable(Runner<T> runner,
T options,
TCallable callable,
String var)
Creates a new callable
|
Modifier and Type | Method and Description |
---|---|
protected long |
nodeToLong(Node n)
Method that should be implemented by derived classes to convert the node
into an integer
|
countResults
call, countResults, countResults, createQueryExecution, customizeRequest, getQuery
cancel, getOptions, getRunner, isCancelled
protected long nodeToLong(Node n)
AbstractScalarValueCallable
nodeToLong
in class AbstractScalarValueCallable<T extends Options,TCallable extends AbstractQueryCallable<T>>
n
- NodeCopyright © 2015. All rights reserved.