Use eclipselink.cursor.page-size to configure the query to return a CursoredStream with the specified page size.
Values
Table 4-7 describes this query hint's values.
Table 4-7 Valid Values for cursor.page-size
| Value | Description | 
|---|---|
| 
 
  | 
 The number of objects that are fetched from the stream on a   | 
Examples
Example 4-15 Using cursor.page-size in a JPA Query
import org.eclipse.persistence.config.HintValues;
 import org.eclipse.persistence.config.QueryHints;
 query.setHint("eclipselink.CURSOR_PAGE_SIZE", "10");
Example 4-16 Using cursor.page-size in a @QueryHint Annotation
import org.eclipse.persistence.config.HintValues; import org.eclipse.persistence.config.QueryHints; @QueryHint(name=QueryHints.CURSOR_PAGE_SIZE, value="10");
See Also
For more information, see: