Class ScopeFrequency

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

    public final class ScopeFrequency
    extends FieldExpression
    FieldExpression that returns the number of occurrences for a specified scope in the specified field for a document.
    See Also:
    Serialized Form
    • Constructor Detail

      • ScopeFrequency

        public ScopeFrequency​(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