Class TermsInfo
java.lang.Object
org.dlese.dpc.services.dds.toolkit.TermsInfo
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a list of the fields in which the terms reside.Returns version of the index at the time the request was made.getTerms()Returns a Map ofTermDataObjects, keyed by term String.intReturns the total number of terms found in the given field(s).toString()Debugging
-
Constructor Details
-
TermsInfo
Constructor for the TermsInfo object- Parameters:
fields- Fieldsterms- TermsindexVersion- Index versiontotalNumTerms- Total num terms in given fields
-
-
Method Details
-
getFields
Gets a list of the fields in which the terms reside.- Returns:
- The fields value
-
getTerms
Returns a Map ofTermDataObjects, keyed by term String.- Returns:
- The terms value
-
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
Debugging
-