Class AttributeFunction


public class AttributeFunction extends DocumentValue
This class represents a document attribute function in a GroupingExpression. It evaluates to the value of the named attribute in the input Hit.
Author:
Simon Thoresen Hult, bratseth
  • Constructor Details

    • AttributeFunction

      public AttributeFunction(String attributeName)
      Constructs a new instance of this class.
      Parameters:
      attributeName - the attribute name to assign to this.
  • Method Details

    • copy

      public AttributeFunction copy()
      Description copied from class: GroupingExpression
      Returns a deep copy of this
      Specified by:
      copy in class GroupingExpression
    • getAttributeName

      public String getAttributeName()
      Returns the name of the attribute to retrieve from the input hit.
      Returns:
      the attribute name.