DLESE Tools
v1.6.0

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

java.lang.Object
  extended by 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 Summary
TermsInfo(List fields, Map terms, String indexVersion, int totalNumTerms)
          Constructor for the TermsInfo object
 
Method Summary
 List getFields()
          Gets a list of the fields in which the terms reside.
 String getIndexVersion()
          Returns version of the index at the time the request was made.
 Map getTerms()
          Returns a Map of TermData Objects, keyed by term String.
 int getTotalNumTerms()
          Returns the total number of terms found in the given field(s).
 String toString()
          Debugging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

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

DLESE Tools
v1.6.0