public class TokenCounter extends Object
Constructor and Description |
---|
TokenCounter(org.apache.lucene.analysis.Analyzer generalAnalyzer) |
Modifier and Type | Method and Description |
---|---|
void |
add(String field,
String content) |
void |
clear(String field) |
Map<String,org.apache.commons.lang3.mutable.MutableInt> |
getTokens(String field) |
TokenStatistics |
getTokenStatistics(String field) |
void |
setTopN(int topN) |
public TokenCounter(org.apache.lucene.analysis.Analyzer generalAnalyzer) throws IOException
IOException
public void add(String field, String content) throws IOException
IOException
public TokenStatistics getTokenStatistics(String field)
public void setTopN(int topN)
public void clear(String field)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.