org.eaglei.search.provider
Class SearchCounts

java.lang.Object
  extended by org.eaglei.search.provider.SearchCounts
All Implemented Interfaces:
java.io.Serializable

public class SearchCounts
extends java.lang.Object
implements java.io.Serializable

Holds the number of results for a specific search for a set of eagle-i ontology classes. NOT thread safe.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
SearchCounts(SearchRequest request)
          Creates a new SearchCounts
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getClassCount(org.eaglei.model.EIURI classURI)
          Retrieves the number of search results for the specified class URI.
 java.util.Set<org.eaglei.model.EIURI> getClassesForCounts()
          Returns the URIs (as EIURI instances) of the eagle-i classes for which search result counts have been computed.
 SearchRequest getRequest()
          Gets the search request.
 int hashCode()
           
 void setClassCount(org.eaglei.model.EIURI classURI, int count)
          Sets the search result count for the specified class.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

SearchCounts

public SearchCounts(SearchRequest request)
Creates a new SearchCounts

Parameters:
request - The request
Method Detail

getRequest

public SearchRequest getRequest()
Gets the search request.

Returns:
Search request.

getClassesForCounts

public java.util.Set<org.eaglei.model.EIURI> getClassesForCounts()
Returns the URIs (as EIURI instances) of the eagle-i classes for which search result counts have been computed.

Returns:
Set of EIURIs representing a eagle-i ontology classes for which search result counts have been computed.

setClassCount

public void setClassCount(org.eaglei.model.EIURI classURI,
                          int count)
Sets the search result count for the specified class.

Parameters:
classURI - URI of a class in the eagle-i ontology.
count - Number of results for the associated search request.

getClassCount

public int getClassCount(org.eaglei.model.EIURI classURI)
Retrieves the number of search results for the specified class URI.

Parameters:
classURI - URI of the ontology class whose result count is being retrieved.
Returns:
Number of results of the associated search for the specified class.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009-2011 Eagle-I. All Rights Reserved.