Class TermData

java.lang.Object
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

    Constructors
    Constructor
    Description
    TermData(int termCount, int docCount)
    Constructor for the TermData object
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Number of documents (records) in the index in which the term resides in the given field(s).
    int
    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 Details

    • 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 Details

    • 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