Class StoredField

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

    public class StoredField
    extends FieldExpression
    FieldExpression for returning the values for a stored field.

    NOTE: The special field "*" will return all stored fields. This is useful if you are requesting specific FieldExpressions and still want all stored fields returned.
    EX: StoredField field = new StoredField("*");

    See Also:
    Serialized Form
    • Constructor Detail

      • StoredField

        public StoredField​(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
      • getFieldName

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

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

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

        protected static void quoteFieldName​(java.lang.StringBuilder buffer,
                                             java.lang.String fieldName)
      • equals

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