Class TermsInfo

java.lang.Object
org.dlese.dpc.services.dds.toolkit.TermsInfo

public class TermsInfo extends Object
Class that holds data about the terms in one or more fields in the index. Wraps the data returned from the ListTerms request to Java Maps and Objects.
Author:
John Weatherley
  • Constructor Details

    • TermsInfo

      public TermsInfo(List fields, Map terms, String indexVersion, int totalNumTerms)
      Constructor for the TermsInfo object
      Parameters:
      fields - Fields
      terms - Terms
      indexVersion - Index version
      totalNumTerms - Total num terms in given fields
  • Method Details

    • getFields

      public List getFields()
      Gets a list of the fields in which the terms reside.
      Returns:
      The fields value
    • getTerms

      public Map getTerms()
      Returns a Map of TermData Objects, keyed by term String.
      Returns:
      The terms value
    • getIndexVersion

      public String getIndexVersion()
      Returns version of the index at the time the request was made.
      Returns:
      The indexVersion value
    • getTotalNumTerms

      public int getTotalNumTerms()
      Returns the total number of terms found in the given field(s).
      Returns:
      The totalNumTerms value
    • toString

      public String toString()
      Debugging
      Overrides:
      toString in class Object
      Returns:
      Stringi representation of the TermsInfo object