Class TokenCountPriorityQueue
java.lang.Object
org.apache.tika.eval.core.textstats.TokenCountPriorityQueue
Bounded min-heap that keeps the top-N TokenIntPairs by value.
Replaces the former Lucene PriorityQueue-based implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArray()voidinsertWithOverflow(TokenIntPair element) intsize()top()
-
Constructor Details
-
TokenCountPriorityQueue
public TokenCountPriorityQueue(int maxSize)
-
-
Method Details
-
top
-
size
public int size() -
insertWithOverflow
-
getArray
-