Class QueryProfileProperties

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class QueryProfileProperties
    extends Properties
    Properties backed by a query profile. This has the scope of one query and is not multithread safe.
    Author:
    bratseth
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearAll​(com.yahoo.processing.request.CompoundName name, java.util.Map<java.lang.String,​java.lang.String> context)  
      QueryProfileProperties clone()  
      java.lang.Object get​(com.yahoo.processing.request.CompoundName name, java.util.Map<java.lang.String,​java.lang.String> context, com.yahoo.processing.request.Properties substitution)
      Gets a value from the query profile, or from the nested profile if the value is null
      CompiledQueryProfile getQueryProfile()
      Returns the query profile backing this, or null if none
      boolean isComplete​(java.lang.StringBuilder firstMissingName, java.util.Map<java.lang.String,​java.lang.String> context)  
      java.util.Map<java.lang.String,​java.lang.Object> listProperties​(com.yahoo.processing.request.CompoundName path, java.util.Map<java.lang.String,​java.lang.String> context, com.yahoo.processing.request.Properties substitution)  
      void set​(com.yahoo.processing.request.CompoundName name, java.lang.Object value, java.util.Map<java.lang.String,​java.lang.String> context)
      Sets a value in this query profile
      • Methods inherited from class com.yahoo.processing.request.Properties

        asBoolean, asDouble, asInteger, asLong, asString, chain, clearAll, clearAll, clearAll, clone, cloneMap, get, get, get, get, get, get, get, getBoolean, getBoolean, getBoolean, getBoolean, getDouble, getDouble, getDouble, getDouble, getInstance, getInteger, getInteger, getInteger, getInteger, getLong, getLong, getLong, getLong, getString, getString, getString, getString, listProperties, listProperties, listProperties, listProperties, listProperties, listProperties, listProperties, set, set, set
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryProfileProperties

        public QueryProfileProperties​(CompiledQueryProfile profile)
        Creates an instance from a profile, throws an exception if the given profile is null
    • Method Detail

      • getQueryProfile

        public CompiledQueryProfile getQueryProfile()
        Returns the query profile backing this, or null if none
      • get

        public java.lang.Object get​(com.yahoo.processing.request.CompoundName name,
                                    java.util.Map<java.lang.String,​java.lang.String> context,
                                    com.yahoo.processing.request.Properties substitution)
        Gets a value from the query profile, or from the nested profile if the value is null
        Overrides:
        get in class com.yahoo.processing.request.Properties
      • set

        public void set​(com.yahoo.processing.request.CompoundName name,
                        java.lang.Object value,
                        java.util.Map<java.lang.String,​java.lang.String> context)
        Sets a value in this query profile
        Overrides:
        set in class com.yahoo.processing.request.Properties
        Throws:
        java.lang.IllegalArgumentException - if this property cannot be set in the wrapped query profile
      • clearAll

        public void clearAll​(com.yahoo.processing.request.CompoundName name,
                             java.util.Map<java.lang.String,​java.lang.String> context)
        Overrides:
        clearAll in class com.yahoo.processing.request.Properties
      • listProperties

        public java.util.Map<java.lang.String,​java.lang.Object> listProperties​(com.yahoo.processing.request.CompoundName path,
                                                                                     java.util.Map<java.lang.String,​java.lang.String> context,
                                                                                     com.yahoo.processing.request.Properties substitution)
        Overrides:
        listProperties in class com.yahoo.processing.request.Properties
      • isComplete

        public boolean isComplete​(java.lang.StringBuilder firstMissingName,
                                  java.util.Map<java.lang.String,​java.lang.String> context)