Class RankProperties

  • All Implemented Interfaces:
    Cloneable

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

      • RankProperties

        public RankProperties()
    • Method Detail

      • 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 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object