Package com.yahoo.search.query.ranking
Class RankProperties
- java.lang.Object
-
- com.yahoo.search.query.ranking.RankProperties
-
-
Constructor Summary
Constructors Constructor Description RankProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<Object>>
asMap()
Returns a modifiable map of the properties of thisRankProperties
clone()
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
equals(Object other)
List<String>
get(String name)
Returns a read-only list of properties properties by full name.int
hashCode()
boolean
isEmpty()
void
put(String name, Object value)
Adds a property by full name to a valuevoid
put(String name, String value)
void
remove(String name)
Removes all properties properties for a given nameString
toString()
-
-
-
Method Detail
-
get
public List<String> get(String name)
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
public void remove(String name)
Removes all properties properties for a given name
-
isEmpty
public boolean isEmpty()
-
encode
public int encode(ByteBuffer buffer, boolean encodeQueryData)
Encodes this in a binary internal representation and returns the number of property maps encoded (0 or 1)
-
clone
public RankProperties clone()
-
-