Package org.nuxeo.ecm.core.scroll
Class GenericScrollRequest
- java.lang.Object
-
- org.nuxeo.ecm.core.scroll.GenericScrollRequest
-
- All Implemented Interfaces:
ScrollRequest
public class GenericScrollRequest extends Object implements ScrollRequest
Generic Scroll Request.- Since:
- 11.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GenericScrollRequest.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Serializable>
options
protected String
query
protected String
reference
static String
SCROLL_TYPE
protected String
scrollName
protected int
size
-
Constructor Summary
Constructors Modifier Constructor Description protected
GenericScrollRequest(GenericScrollRequest.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GenericScrollRequest.Builder
builder(String scrollName, String query)
String
getName()
The Scroll implementation name.Map<String,Serializable>
getOptions()
String
getQuery()
String
getReference()
Gets a reference associated with the scroll request.int
getSize()
The number of items to return per iteration.String
getType()
The type of Scroll.String
toString()
-
-
-
Field Detail
-
SCROLL_TYPE
public static final String SCROLL_TYPE
- See Also:
- Constant Field Values
-
size
protected final int size
-
reference
protected final String reference
-
query
protected final String query
-
scrollName
protected final String scrollName
-
options
protected final Map<String,Serializable> options
-
-
Constructor Detail
-
GenericScrollRequest
protected GenericScrollRequest(GenericScrollRequest.Builder builder)
-
-
Method Detail
-
getType
public String getType()
Description copied from interface:ScrollRequest
The type of Scroll.- Specified by:
getType
in interfaceScrollRequest
-
getName
public String getName()
Description copied from interface:ScrollRequest
The Scroll implementation name. Returnsnull
for default implementation.- Specified by:
getName
in interfaceScrollRequest
-
getSize
public int getSize()
Description copied from interface:ScrollRequest
The number of items to return per iteration.- Specified by:
getSize
in interfaceScrollRequest
-
getReference
public String getReference()
Description copied from interface:ScrollRequest
Gets a reference associated with the scroll request.- Specified by:
getReference
in interfaceScrollRequest
-
getQuery
public String getQuery()
-
getOptions
public Map<String,Serializable> getOptions()
-
builder
public static GenericScrollRequest.Builder builder(String scrollName, String query)
-
-