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
IOExceptionpublic void add(String field, String content) throws IOException
IOExceptionpublic TokenStatistics getTokenStatistics(String field)
public void setTopN(int topN)
public void clear(String field)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.