public class Count extends SearchBase
function lux:count($query as item()) as xs:integer
This function counts the number of results of a search. It is faster and uses less memory
than calling fn:count() on the search results themselves because it does not need to load
the result documents in memory. See Search for an explanation of the supported
$query formats.
SearchBase.SearchCall| Constructor and Description |
|---|
Count() |
| Modifier and Type | Method and Description |
|---|---|
net.sf.saxon.om.StructuredQName |
getFunctionQName() |
net.sf.saxon.value.SequenceType |
getResultType(net.sf.saxon.value.SequenceType[] suppliedArgumentTypes) |
net.sf.saxon.tree.iter.UnfailingIterator<net.sf.saxon.value.Int64Value> |
iterate(org.apache.lucene.search.Query query,
Evaluator saxon,
String sortCriteria,
int start) |
boolean |
trustResultType() |
getArgumentTypes, getEvaluator, getMaximumNumberOfArguments, getMinimumNumberOfArguments, makeCallExpressionpublic net.sf.saxon.om.StructuredQName getFunctionQName()
getFunctionQName in class net.sf.saxon.lib.ExtensionFunctionDefinitionpublic net.sf.saxon.value.SequenceType getResultType(net.sf.saxon.value.SequenceType[] suppliedArgumentTypes)
getResultType in class net.sf.saxon.lib.ExtensionFunctionDefinitionpublic boolean trustResultType()
trustResultType in class net.sf.saxon.lib.ExtensionFunctionDefinitionpublic net.sf.saxon.tree.iter.UnfailingIterator<net.sf.saxon.value.Int64Value> iterate(org.apache.lucene.search.Query query,
Evaluator saxon,
String sortCriteria,
int start)
throws net.sf.saxon.trans.XPathException
iterate in class SearchBasenet.sf.saxon.trans.XPathExceptionCopyright © 2013. All Rights Reserved.