public UpdateStatistics(XQueryContext context) {
super(context, signature);
}
public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException {
final IndexStatisticsWorker index = (IndexStatisticsWorker)
context.getBroker().getIndexController().getWorkerByIndexId(IndexStatistics.ID);
if (index != null) {
index.updateIndex(context.getBroker());
} else {
logger.error("The module may not be enabled!");
}
return Sequence.EMPTY_SEQUENCE;
}