public class SearchResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SearchResult(Result result,
java.lang.String[] includeAttributes,
boolean aggregate)
Deprecated.
Use com.wm.app.b2b.server.cache.config.SearchResult
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Object> |
getAggregatorResults()
Returns the aggregator results.
|
java.lang.Object |
getAttribute(java.lang.String attribute)
Returns the value of the given attribute with an individual search
result.
|
java.lang.Object |
getKey()
Returns the key of an individual search result.
|
java.lang.Object |
getValue()
Returns the value of an individual search result.
|
public SearchResult(Result result, java.lang.String[] includeAttributes, boolean aggregate)
result
- - Search result to wrap.includeAttributes
- - Array of attribute names to include in the search result.aggregate
- - A boolean indicating inclusion of aggregator resultspublic java.lang.Object getKey()
public java.lang.Object getValue()
public java.util.List<java.lang.Object> getAggregatorResults()
public java.lang.Object getAttribute(java.lang.String attribute)
attribute
- - The name of the attribute.