Class FieldLength

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

    public class FieldLength
    extends FieldExpression
    FieldExpression for returning an approximate number of tokenized terms for a field for each document.

    NOTE: The value returned is lossy and does not exactly represent the number of tokenized terms for a field.

    See Also:
    Serialized Form
    • Constructor Detail

      • FieldLength

        public FieldLength​(java.lang.String fieldName)
        Construct a new field source for fieldName
    • Method Detail

      • isConstant

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

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

        public java.lang.String getFieldName()
        Get the name of the field to return a field length for.
        Overrides:
        getFieldName in class FieldExpression
      • setFieldName

        public void setFieldName​(java.lang.String value)
        Set the name of the field to return.
      • equals

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