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