public static enum DynamoDBMapperConfig.PaginationLoadingStrategy extends Enum<DynamoDBMapperConfig.PaginationLoadingStrategy>
Enum Constant and Description |
---|
EAGER_LOADING
Paginated list will eagerly load all the paginated results from DynamoDB as soon as the list is initialized.
|
ITERATION_ONLY
Only supports using iterator to read from the paginated list.
|
LAZY_LOADING
Paginated list is lazily loaded when possible, and all loaded results are kept in the memory.
|
Modifier and Type | Method and Description |
---|---|
DynamoDBMapperConfig |
config() |
static DynamoDBMapperConfig.PaginationLoadingStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DynamoDBMapperConfig.PaginationLoadingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DynamoDBMapperConfig.PaginationLoadingStrategy LAZY_LOADING
EAGER_LOADING
when not all
data is used. Calls to methods such as List.size()
will cause all results to be fetched from
the service.
By default, the mapper uses LAZY_LOADING.
public static final DynamoDBMapperConfig.PaginationLoadingStrategy ITERATION_ONLY
Use this configuration to reduce the memory overhead when handling large DynamoDB items. This is the most performant option when you only need to iterate the results of a query.
public static final DynamoDBMapperConfig.PaginationLoadingStrategy EAGER_LOADING
public static DynamoDBMapperConfig.PaginationLoadingStrategy[] values()
for (DynamoDBMapperConfig.PaginationLoadingStrategy c : DynamoDBMapperConfig.PaginationLoadingStrategy.values()) System.out.println(c);
public static DynamoDBMapperConfig.PaginationLoadingStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final DynamoDBMapperConfig config()
Copyright © 2021. All rights reserved.