Package com.yahoo.search.query.ranking
Class RankProperties
java.lang.Object
com.yahoo.search.query.ranking.RankProperties
- All Implemented Interfaces:
Cloneable
Contains the properties of a query.
This is a multimap: Multiple properties may be set for the same key.
- Author:
- bratseth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasMap()
Returns a modifiable map of the properties of thisclone()
int
encode
(ByteBuffer buffer, boolean encodeQueryData) Encodes this in a binary internal representation and returns the number of property maps encoded (0 or 1)boolean
Returns a read-only list of properties properties by full name.int
hashCode()
boolean
isEmpty()
void
Adds a property by full name to a valuevoid
void
Removes all properties for a given nametoString()
-
Constructor Details
-
RankProperties
public RankProperties()
-
-
Method Details
-
put
-
put
Adds a property by full name to a value -
get
Returns a read-only list of properties properties by full name. If this is not set, null is returned. If this is explicitly set to have no values, and empty list is returned. -
remove
Removes all properties for a given name -
isEmpty
public boolean isEmpty() -
asMap
Returns a modifiable map of the properties of this -
encode
Encodes this in a binary internal representation and returns the number of property maps encoded (0 or 1) -
equals
-
hashCode
public int hashCode() -
clone
-
toString
-