org.exist.util
Class Occurrences
java.lang.Object
org.exist.util.Occurrences
- All Implemented Interfaces:
- Comparable
public class Occurrences
- extends Object
- implements Comparable
Class to count element and word frequencies.
Occurrences
public Occurrences(Comparable name)
getTerm
public Comparable getTerm()
getOccurrences
public int getOccurrences()
- Returns the overall frequency of this term
in the document set.
addOccurrences
public void addOccurrences(int count)
addDocument
public void addDocument(DocumentImpl doc)
add
public void add(Occurrences other)
getDocuments
public int getDocuments()
- Returns the number of documents from the set in
which the term has been found.
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
Copyright (C) Wolfgang Meier. All rights reserved.