Class QueryPropertyAliases

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class QueryPropertyAliases
    extends PropertyAliases
    Property aliases which contains some hardcoded unaliasing of prefixes of rankfeature and rankproperty maps.
    Author:
    bratseth
    • Constructor Summary

      Constructors 
      Constructor Description
      QueryPropertyAliases​(java.util.Map<java.lang.String,​com.yahoo.processing.request.CompoundName> aliases)
      Creates an instance with a set of aliases.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.yahoo.processing.request.CompoundName unalias​(com.yahoo.processing.request.CompoundName nameOrAlias)
      Returns the standard name for an alias, or the given name if it is not a registered alias
      • Methods inherited from class com.yahoo.processing.request.Properties

        asBoolean, asDouble, asInteger, asLong, asString, chain, 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

      • QueryPropertyAliases

        public QueryPropertyAliases​(java.util.Map<java.lang.String,​com.yahoo.processing.request.CompoundName> aliases)
        Creates an instance with a set of aliases. The given aliases will be used directly by this class. To make this class immutable and thread safe, relinquish ownership of the parameter map.
    • Method Detail

      • unalias

        protected com.yahoo.processing.request.CompoundName unalias​(com.yahoo.processing.request.CompoundName nameOrAlias)
        Description copied from class: PropertyAliases
        Returns the standard name for an alias, or the given name if it is not a registered alias
        Overrides:
        unalias in class PropertyAliases
        Parameters:
        nameOrAlias - the name to check if is an alias
        Returns:
        the real name if an alias or the input name itself