Record Class FilterPredicate.IntersectsPredicate
java.lang.Object
java.lang.Record
dev.hardwood.reader.FilterPredicate.IntersectsPredicate
- All Implemented Interfaces:
FilterPredicate
- Enclosing interface:
FilterPredicate
public static record FilterPredicate.IntersectsPredicate(String column, double xmin, double ymin, double xmax, double ymax)
extends Record
implements FilterPredicate
Predicate for spatial bounding box.
-
Nested Class Summary
Nested classes/interfaces inherited from interface FilterPredicate
FilterPredicate.And, FilterPredicate.BinaryColumnPredicate, FilterPredicate.BinaryInPredicate, FilterPredicate.BooleanColumnPredicate, FilterPredicate.DateColumnPredicate, FilterPredicate.DecimalColumnPredicate, FilterPredicate.DoubleColumnPredicate, FilterPredicate.FloatColumnPredicate, FilterPredicate.InstantColumnPredicate, FilterPredicate.IntColumnPredicate, FilterPredicate.IntersectsPredicate, FilterPredicate.IntInPredicate, FilterPredicate.IsNotNullPredicate, FilterPredicate.IsNullPredicate, FilterPredicate.LongColumnPredicate, FilterPredicate.LongInPredicate, FilterPredicate.Not, FilterPredicate.Operator, FilterPredicate.Or, FilterPredicate.SignedBinaryColumnPredicate, FilterPredicate.TimeColumnPredicate, FilterPredicate.UUIDColumnPredicate -
Constructor Summary
ConstructorsConstructorDescriptionIntersectsPredicate(String column, double xmin, double ymin, double xmax, double ymax) Creates an instance of aIntersectsPredicaterecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumn()Returns the value of thecolumnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.doublexmax()Returns the value of thexmaxrecord component.doublexmin()Returns the value of thexminrecord component.doubleymax()Returns the value of theymaxrecord component.doubleymin()Returns the value of theyminrecord component.
-
Constructor Details
-
IntersectsPredicate
Creates an instance of aIntersectsPredicaterecord class.- Parameters:
column- the value for thecolumnrecord componentxmin- the value for thexminrecord componentymin- the value for theyminrecord componentxmax- the value for thexmaxrecord componentymax- the value for theymaxrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
column
Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-
xmin
public double xmin()Returns the value of thexminrecord component.- Returns:
- the value of the
xminrecord component
-
ymin
public double ymin()Returns the value of theyminrecord component.- Returns:
- the value of the
yminrecord component
-
xmax
public double xmax()Returns the value of thexmaxrecord component.- Returns:
- the value of the
xmaxrecord component
-
ymax
public double ymax()Returns the value of theymaxrecord component.- Returns:
- the value of the
ymaxrecord component
-