super();
this.termFreqsArgs = termFreqsArgs;
}
public Object doInCompass(CompassSession session) throws CompassException {
CompassTermFreqsBuilder builder = session.termFreqsBuilder(termFreqsArgs.getProperties());
if (termFreqsArgs.getNormalizeRange() != null) {
builder.normalize(termFreqsArgs.getNormalizeRange().getFromInt(), termFreqsArgs.getNormalizeRange().getToInt());
}
if (termFreqsArgs.getSize() != null) {
builder.setSize(termFreqsArgs.getSize().intValue());
}
if (termFreqsArgs.getSort() != null) {
builder.setSort(termFreqsArgs.getSort());
}
if (termFreqsArgs.getAliases() != null) {
builder.setAliases(termFreqsArgs.getAliases());
}
return builder.toTermFreqs();
}