Package com.yahoo.search.query.ranking
Class RankProperties
- java.lang.Object
-
- com.yahoo.search.query.ranking.RankProperties
-
- All Implemented Interfaces:
java.lang.Cloneable
public class RankProperties extends java.lang.Object implements java.lang.Cloneable
Contains the properties properties of a query. This is a multimap: Multiple properties may be set for the same key.- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description RankProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.util.List<java.lang.Object>>
asMap()
Returns a modifiable map of the properties of thisRankProperties
clone()
int
encode(java.nio.ByteBuffer buffer, boolean encodeQueryData)
Encodes this in a binary internal representation and returns the number of property maps encoded (0 or 1)boolean
equals(java.lang.Object other)
java.util.List<java.lang.String>
get(java.lang.String name)
Returns a read-only list of properties properties by full name.int
hashCode()
boolean
isEmpty()
void
put(java.lang.String name, java.lang.Object value)
Adds a property by full name to a valuevoid
put(java.lang.String name, java.lang.String value)
void
remove(java.lang.String name)
Removes all properties properties for a given namejava.lang.String
toString()
-
-
-
Method Detail
-
put
public void put(java.lang.String name, java.lang.String value)
-
put
public void put(java.lang.String name, java.lang.Object value)
Adds a property by full name to a value
-
get
public java.util.List<java.lang.String> get(java.lang.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(java.lang.String name)
Removes all properties properties for a given name
-
isEmpty
public boolean isEmpty()
-
asMap
public java.util.Map<java.lang.String,java.util.List<java.lang.Object>> asMap()
Returns a modifiable map of the properties of this
-
encode
public int encode(java.nio.ByteBuffer buffer, boolean encodeQueryData)
Encodes this in a binary internal representation and returns the number of property maps encoded (0 or 1)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
clone
public RankProperties clone()
- Overrides:
clone
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-