org.compass.needle.gigaspaces.service
Class SearchResourceResult

java.lang.Object
  extended by org.compass.needle.gigaspaces.service.SearchResourceResult
All Implemented Interfaces:
Externalizable, Serializable

public class SearchResourceResult
extends Object
implements Externalizable

A serach result for a Resource hit.

Author:
kimchy
See Also:
Serialized Form

Constructor Summary
SearchResourceResult()
           
SearchResourceResult(float score, Resource data)
           
 
Method Summary
 Resource getResource()
          Returns the resource associated with this hit.
 float getScore()
          Returns the score associated with this hit.
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResourceResult

public SearchResourceResult()

SearchResourceResult

public SearchResourceResult(float score,
                            Resource data)
Method Detail

getScore

public float getScore()
Returns the score associated with this hit.


getResource

public Resource getResource()
Returns the resource associated with this hit.


writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


Copyright (c) 2004-2008 The Compass Project.