org.compass.needle.gigaspaces.service
Class SearchResult

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

public class SearchResult
extends Object
implements Externalizable

A serach result for an object hit.

Author:
kimchy
See Also:
Serialized Form

Constructor Summary
SearchResult()
           
SearchResult(float score, Object data)
           
 
Method Summary
 Object getData()
          Returns the object 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

SearchResult

public SearchResult()

SearchResult

public SearchResult(float score,
                    Object data)
Method Detail

getScore

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


getData

public Object getData()
Returns the object 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-2009 The Compass Project.