lux.functions
Class Count

java.lang.Object
  extended by net.sf.saxon.lib.ExtensionFunctionDefinition
      extended by lux.functions.SearchBase
          extended by lux.functions.Count
All Implemented Interfaces:
Serializable

public class Count
extends SearchBase

function lux:count($query as item(), $hints as xs:int?) 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.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class lux.functions.SearchBase
SearchBase.SearchCall
 
Constructor Summary
Count()
           
 
Method Summary
 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, long facts, String sortCriteria, int start)
           
 boolean trustResultType()
           
 
Methods inherited from class lux.functions.SearchBase
getArgumentTypes, getEvaluator, getMaximumNumberOfArguments, getMinimumNumberOfArguments, makeCallExpression
 
Methods inherited from class net.sf.saxon.lib.ExtensionFunctionDefinition
dependsOnFocus, hasSideEffects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Count

public Count()
Method Detail

getFunctionQName

public net.sf.saxon.om.StructuredQName getFunctionQName()
Specified by:
getFunctionQName in class net.sf.saxon.lib.ExtensionFunctionDefinition

getResultType

public net.sf.saxon.value.SequenceType getResultType(net.sf.saxon.value.SequenceType[] suppliedArgumentTypes)
Specified by:
getResultType in class net.sf.saxon.lib.ExtensionFunctionDefinition

trustResultType

public boolean trustResultType()
Overrides:
trustResultType in class net.sf.saxon.lib.ExtensionFunctionDefinition

iterate

public net.sf.saxon.tree.iter.UnfailingIterator<net.sf.saxon.value.Int64Value> iterate(org.apache.lucene.search.Query query,
                                                                                       Evaluator saxon,
                                                                                       long facts,
                                                                                       String sortCriteria,
                                                                                       int start)
                                                                                throws net.sf.saxon.trans.XPathException
Specified by:
iterate in class SearchBase
Throws:
net.sf.saxon.trans.XPathException


Copyright © 2013. All Rights Reserved.