Class ChunkRequest
- java.lang.Object
-
- io.github.malteseduck.springframework.data.marklogic.domain.ChunkRequest
-
- All Implemented Interfaces:
Serializable,org.springframework.data.domain.Pageable
public class ChunkRequest extends Object implements org.springframework.data.domain.Pageable, Serializable
A request for a chunk of data options an offset and limit instead of page numbers and page sizes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChunkRequest(long offset, int limit)Deprecated.ChunkRequest(long offset, int limit, org.springframework.data.domain.Sort sort)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)org.springframework.data.domain.Pageablefirst()longgetOffset()intgetPageNumber()intgetPageSize()org.springframework.data.domain.SortgetSort()inthashCode()booleanhasPrevious()org.springframework.data.domain.Pageablenext()static ChunkRequestof(long offset, int limit)static ChunkRequestof(long offset, int limit, org.springframework.data.domain.Sort sort)static ChunkRequestof(long offset, int limit, org.springframework.data.domain.Sort.Direction direction, String... properties)ChunkRequestprevious()org.springframework.data.domain.PageablepreviousOrFirst()StringtoString()
-
-
-
Constructor Detail
-
ChunkRequest
@Deprecated public ChunkRequest(long offset, int limit)
Deprecated.
-
ChunkRequest
@Deprecated public ChunkRequest(long offset, int limit, org.springframework.data.domain.Sort sort)
Deprecated.
-
-
Method Detail
-
getPageNumber
public int getPageNumber()
- Specified by:
getPageNumberin interfaceorg.springframework.data.domain.Pageable
-
getPageSize
public int getPageSize()
- Specified by:
getPageSizein interfaceorg.springframework.data.domain.Pageable
-
next
public org.springframework.data.domain.Pageable next()
- Specified by:
nextin interfaceorg.springframework.data.domain.Pageable
-
previous
public ChunkRequest previous()
-
first
public org.springframework.data.domain.Pageable first()
- Specified by:
firstin interfaceorg.springframework.data.domain.Pageable
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfaceorg.springframework.data.domain.Pageable
-
previousOrFirst
public org.springframework.data.domain.Pageable previousOrFirst()
- Specified by:
previousOrFirstin interfaceorg.springframework.data.domain.Pageable
-
getOffset
public long getOffset()
- Specified by:
getOffsetin interfaceorg.springframework.data.domain.Pageable
-
getSort
public org.springframework.data.domain.Sort getSort()
- Specified by:
getSortin interfaceorg.springframework.data.domain.Pageable
-
of
public static ChunkRequest of(long offset, int limit)
-
of
public static ChunkRequest of(long offset, int limit, org.springframework.data.domain.Sort sort)
-
of
public static ChunkRequest of(long offset, int limit, org.springframework.data.domain.Sort.Direction direction, String... properties)
-
-