Class 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 this
      RankProperties 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 value
      void put​(java.lang.String name, java.lang.String value)  
      void remove​(java.lang.String name)
      Removes all properties properties for a given name
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RankProperties

        public RankProperties()
    • 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 class java.lang.Object
      • hashCode

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object