Record Class FilterPredicate.SignedBinaryColumnPredicate
java.lang.Object
java.lang.Record
dev.hardwood.reader.FilterPredicate.SignedBinaryColumnPredicate
- All Implemented Interfaces:
FilterPredicate
- Enclosing interface:
FilterPredicate
public static record FilterPredicate.SignedBinaryColumnPredicate(String column, FilterPredicate.Operator op, byte[] value)
extends Record
implements FilterPredicate
Predicate for
FIXED_LEN_BYTE_ARRAY columns that require signed (two's complement)
comparison, such as decimals. The value must be padded to the column's fixed length.-
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.IntInPredicate, FilterPredicate.IsNotNullPredicate, FilterPredicate.IsNullPredicate, FilterPredicate.LongColumnPredicate, FilterPredicate.LongInPredicate, FilterPredicate.Not, FilterPredicate.Operator, FilterPredicate.Or, FilterPredicate.SignedBinaryColumnPredicate, FilterPredicate.TimeColumnPredicate -
Constructor Summary
ConstructorsConstructorDescriptionSignedBinaryColumnPredicate(String column, FilterPredicate.Operator op, byte[] value) Creates an instance of aSignedBinaryColumnPredicaterecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumn()Returns the value of thecolumnrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.op()Returns the value of theoprecord component.final StringtoString()Returns a string representation of this record class.byte[]value()Returns the value of thevaluerecord component.
-
Constructor Details
-
SignedBinaryColumnPredicate
Creates an instance of aSignedBinaryColumnPredicaterecord class.- Parameters:
column- the value for thecolumnrecord componentop- the value for theoprecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
-
toString
-
column
Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-
op
Returns the value of theoprecord component.- Returns:
- the value of the
oprecord component
-
value
public byte[] value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-