Class ANetricsQueryBuilderBuilderBase.SimpleQueryField

    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleQueryField​(java.lang.String name, java.lang.Double weight)
      Create a field reference for a simple query.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFieldName()  
      double getFieldWeight()  
      • Methods inherited from class java.lang.Object

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

      • SimpleQueryField

        public SimpleQueryField​(java.lang.String name,
                                java.lang.Double weight)
                         throws java.lang.IllegalArgumentException
        Create a field reference for a simple query.
        Parameters:
        name - the field name. This is the default output field name for the field.
        weight - the weight factor for this field. This may be null, in which case the default 1.0 weight is applied.
        Throws:
        java.lang.IllegalArgumentException - if name is null or empty, or if weight is given and not between 0.0 and 1.0.
    • Method Detail

      • getFieldName

        public java.lang.String getFieldName()
        Returns:
        the default output field name.
      • getFieldWeight

        public double getFieldWeight()
        Returns:
        the field weight.