org.compass.needle.gigaspaces.service
Class SearchResult
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchResult
public SearchResult()
SearchResult
public SearchResult(float score,
Object data)
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-2008 The Compass Project.