Record Class StandardPageRequest
java.lang.Object
java.lang.Record
org.apache.nifi.database.dialect.service.api.StandardPageRequest
- Record Components:
offset- Offset starting index of requested page of resultslimit- Limit total number of resultsindexColumnName- Column Name for indexing results or empty
- All Implemented Interfaces:
PageRequest
public record StandardPageRequest(long offset, OptionalLong limit, Optional<String> indexColumnName)
extends Record
implements PageRequest
Standard record implementation of Page Request
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theindexColumnNamerecord component.private final OptionalLongThe field for thelimitrecord component.private final longThe field for theoffsetrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStandardPageRequest(long offset, OptionalLong limit, Optional<String> indexColumnName) Creates an instance of aStandardPageRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theindexColumnNamerecord component.limit()Returns the value of thelimitrecord component.longoffset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
offset
private final long offsetThe field for theoffsetrecord component. -
limit
The field for thelimitrecord component. -
indexColumnName
The field for theindexColumnNamerecord component.
-
-
Constructor Details
-
StandardPageRequest
Creates an instance of aStandardPageRequestrecord class.- Parameters:
offset- the value for theoffsetrecord componentlimit- the value for thelimitrecord componentindexColumnName- the value for theindexColumnNamerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
offset
public long offset()Returns the value of theoffsetrecord component.- Specified by:
offsetin interfacePageRequest- Returns:
- the value of the
offsetrecord component
-
limit
Returns the value of thelimitrecord component.- Specified by:
limitin interfacePageRequest- Returns:
- the value of the
limitrecord component
-
indexColumnName
Returns the value of theindexColumnNamerecord component.- Specified by:
indexColumnNamein interfacePageRequest- Returns:
- the value of the
indexColumnNamerecord component
-