Class Filter.PropertyRestriction

java.lang.Object
org.apache.jackrabbit.oak.spi.query.Filter.PropertyRestriction
Enclosing interface:
Filter

public static class Filter.PropertyRestriction extends Object
A restriction for a property.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    org.apache.jackrabbit.oak.api.PropertyValue
    The first value to read, or null to read from the beginning.
    boolean
    Whether values that match the first should be returned.
    boolean
    Whether this is a like constraint.
    boolean
    Whether this is a not constraint
    org.apache.jackrabbit.oak.api.PropertyValue
    The last value to read, or null to read until the end.
    boolean
    Whether values that match the last should be returned.
    List<org.apache.jackrabbit.oak.api.PropertyValue>
    A list of possible values, for conditions of the type "x=1 or x=2 or x=3".
    org.apache.jackrabbit.oak.api.PropertyValue
    The property value to NOT match
    The name of the property.
    int
    The property type, if restricted.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    boolean
     
    boolean
     
    int
    How restrictive a condition is.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • propertyName

      public String propertyName
      The name of the property.
    • first

      public org.apache.jackrabbit.oak.api.PropertyValue first
      The first value to read, or null to read from the beginning.
    • firstIncluding

      public boolean firstIncluding
      Whether values that match the first should be returned.
    • last

      public org.apache.jackrabbit.oak.api.PropertyValue last
      The last value to read, or null to read until the end.
    • lastIncluding

      public boolean lastIncluding
      Whether values that match the last should be returned.
    • isNot

      public boolean isNot
      Whether this is a not constraint
    • not

      public org.apache.jackrabbit.oak.api.PropertyValue not
      The property value to NOT match
    • isLike

      public boolean isLike
      Whether this is a like constraint. in this case only the 'first' value should be taken into consideration
    • list

      public List<org.apache.jackrabbit.oak.api.PropertyValue> list
      A list of possible values, for conditions of the type "x=1 or x=2 or x=3".
    • propertyType

      public int propertyType
      The property type, if restricted. If not restricted, this field is set to PropertyType.UNDEFINED.
  • Constructor Details

    • PropertyRestriction

      public PropertyRestriction()
  • Method Details

    • isNullRestriction

      public boolean isNullRestriction()
    • isNotNullRestriction

      public boolean isNotNullRestriction()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • sortOrder

      public int sortOrder()
      How restrictive a condition is.
      Returns:
      0 for "is not null", 10 for equality, and 5 for everything else
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object