Record Class BlockfileRowKeyRangeReader.BlockfileKeyRange
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.io.read.query.BlockfileRowKeyRangeReader.BlockfileKeyRange
- Enclosing class:
BlockfileRowKeyRangeReader<T>
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileKeyRange(Optional<byte[]> from, boolean fromInclusive, Optional<byte[]> to, boolean toInclusive) Creates an instance of aBlockfileKeyRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(BlockfileRow row) final booleanIndicates whether some other object is "equal to" this one.Optional<byte[]> from()Returns the value of thefromrecord component.booleanReturns the value of thefromInclusiverecord component.final inthashCode()Returns a hash code value for this object.booleanOptional<byte[]> to()Returns the value of thetorecord component.booleanReturns the value of thetoInclusiverecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockfileKeyRange
public BlockfileKeyRange(Optional<byte[]> from, boolean fromInclusive, Optional<byte[]> to, boolean toInclusive) Creates an instance of aBlockfileKeyRangerecord class.- Parameters:
from- the value for thefromrecord componentfromInclusive- the value for thefromInclusiverecord componentto- the value for thetorecord componenttoInclusive- the value for thetoInclusiverecord component
-
-
Method Details
-
everything
-
isEverything
public boolean isEverything() -
toInclusiveExclusive
-
contains
-
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 '=='. -
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
fromInclusive
public boolean fromInclusive()Returns the value of thefromInclusiverecord component.- Returns:
- the value of the
fromInclusiverecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
toInclusive
public boolean toInclusive()Returns the value of thetoInclusiverecord component.- Returns:
- the value of the
toInclusiverecord component
-