Class TotalScopeFrequency

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public final class TotalScopeFrequency
    extends FieldExpression
    FieldExpression that returns the total number of occurrences for a specified scope across all documents for a specified field.

    NOTE: this number will include frequency information for deleted documents that have not been purged yet.

    See Also:
    Serialized Form
    • Constructor Detail

      • TotalScopeFrequency

        public TotalScopeFrequency​(java.lang.String fieldName,
                                   java.lang.String scope)
    • Method Detail

      • getFieldName

        public java.lang.String getFieldName()
        Description copied from class: FieldExpression
        Get the field name for this expression.

        This is used as a hint to the search engine to tie back to the schema. null may be returned if this expression contains no field. If this expression is composed of many fields, this can be either the "primary" field for the expression, or null.

        Overrides:
        getFieldName in class FieldExpression
      • setFieldName

        public void setFieldName​(java.lang.String value)
      • getScope

        public java.lang.String getScope()
      • setScope

        public void setScope​(java.lang.String value)
      • hasChildren

        public boolean hasChildren()
        Returns true if this field expression has any sub FieldExpressions.
        Specified by:
        hasChildren in class FieldExpression
      • isConstant

        public boolean isConstant()
        Returns true if this field expression evaluates to a constant value.
        Specified by:
        isConstant in class FieldExpression
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object