public static final class FetchOptions.Builder
extends java.lang.Object
FetchOptions
.
Modifier and Type | Method and Description |
---|---|
static
FetchOptions
|
withChunkSize
(int chunkSize)
Create a
FetchOptions
with the given chunk size.
|
static
FetchOptions
|
withCursor
(
Cursor
cursor)
Deprecated.
|
static
FetchOptions
|
withDefaults
()
Helper method for creating a
FetchOptions
instance with
default values.
|
static
FetchOptions
|
withEndCursor
(
Cursor
endCursor)
Create a
FetchOptions
with the given end cursor.
|
static
FetchOptions
|
withLimit
(int limit)
Create a
FetchOptions
with the given limit.
|
static
FetchOptions
|
withOffset
(int offset)
Create a
FetchOptions
with the given offset.
|
static
FetchOptions
|
withPrefetchSize
(int prefetchSize)
Create a
FetchOptions
with the given prefetch size.
|
static
FetchOptions
|
withStartCursor
(
Cursor
startCursor)
Create a
FetchOptions
with the given start cursor.
|
public static FetchOptions withLimit(int limit)
FetchOptions
with the given limit. Shorthand for
FetchOptions.withDefaults().limit(...);
Please read the
FetchOptions
class javadoc for an explanation of how limit
is used.
limit
- the limit to set.
public static FetchOptions withOffset(int offset)
FetchOptions
with the given offset. Shorthand for
FetchOptions.withDefaults().offset(...);
Please read the
FetchOptions
class javadoc for an explanation of how offset
is used.
offset
- the offset to set.
public static FetchOptions withChunkSize(int chunkSize)
FetchOptions
with the given chunk size. Shorthand for
FetchOptions.withDefaults().chunkSize(...);
Please read the
FetchOptions
class javadoc for an explanation of how chunk size
is used.
chunkSize
- the chunkSize to set.
public static FetchOptions withPrefetchSize(int prefetchSize)
FetchOptions
with the given prefetch size.
Shorthand for
FetchOptions.withDefaults().prefetchSize(...);
.
Please read the
FetchOptions
class javadoc for an explanation of
how prefetch size is used.
prefetchSize
- the prefetchSize to set.
@Deprecated public static FetchOptions withCursor(Cursor cursor)
withStartCursor(com.google.appengine.api.datastore.Cursor)
instead.
FetchOptions
with the given cursor.
Shorthand for
FetchOptions.withDefaults().cursor(cursor);
.
Please read the
FetchOptions
class javadoc for an explanation of
how cursors are used.
cursor
- the cursor to set.
public static FetchOptions withStartCursor(Cursor startCursor)
FetchOptions
with the given start cursor.
Shorthand for
FetchOptions.withDefaults().startCursor(cursor);
.
Please read the
FetchOptions
class javadoc for an explanation of
how cursors are used.
startCursor
- the cursor to set.
public static FetchOptions withEndCursor(Cursor endCursor)
FetchOptions
with the given end cursor.
Shorthand for
FetchOptions.withDefaults().endCursor(cursor);
.
Please read the
FetchOptions
class javadoc for an explanation of
how cursors are used.
endCursor
- the cursor to set.
public static FetchOptions withDefaults()
FetchOptions
instance with
default values. The defaults are
null
for all values.