DLESE Tools
v1.6.0

org.dlese.dpc.services.dds.toolkit
Class TermData

java.lang.Object
  extended by org.dlese.dpc.services.dds.toolkit.TermData

public class TermData
extends Object

Class that holds data about term in one or more fields in the index.

Author:
John Weatherley

Constructor Summary
TermData(int termCount, int docCount)
          Constructor for the TermData object
 
Method Summary
 int getDocCount()
          Number of documents (records) in the index in which the term resides in the given field(s).
 int getTermCount()
          Number of times the term appears in the given field(s).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TermData

public TermData(int termCount,
                int docCount)
Constructor for the TermData object

Parameters:
termCount - Number of times the term appears in the given field(s)
doccount - Number of documents (records) in the index in which the term resides in the given field(s)
Method Detail

getTermCount

public int getTermCount()
Number of times the term appears in the given field(s).

Returns:
The termCount value

getDocCount

public int getDocCount()
Number of documents (records) in the index in which the term resides in the given field(s).

Returns:
The docCount value

DLESE Tools
v1.6.0