Class RankProperties

java.lang.Object
com.yahoo.search.query.ranking.RankProperties
All Implemented Interfaces:
Cloneable

public class RankProperties extends Object implements Cloneable
Contains the properties of a query. This is a multimap: Multiple properties may be set for the same key.
Author:
bratseth
  • Constructor Details

    • RankProperties

      public RankProperties()
  • Method Details

    • put

      public void put(String name, String value)
    • put

      public void put(String name, Object value)
      Adds a property by full name to a value
    • 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 for a given name
    • isEmpty

      public boolean isEmpty()
    • asMap

      public Map<String,List<Object>> asMap()
      Returns a modifiable map of the properties of this
    • 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)
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public RankProperties clone()
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object