Class QueryProfileProperties

  • All Implemented Interfaces:
    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
    • Constructor Detail

      • QueryProfileProperties

        public QueryProfileProperties​(CompiledQueryProfile profile,
                                      com.yahoo.language.process.Embedder embedder)
        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 Object get​(com.yahoo.processing.request.CompoundName name,
                          Map<String,​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,
                        Object value,
                        Map<String,​String> context)
        Sets a value in this query profile
        Overrides:
        set in class com.yahoo.processing.request.Properties
        Throws:
        IllegalArgumentException - if this property cannot be set in the wrapped query profile
      • clearAll

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

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