Serializable
, Comparable<DynamoDbMapperConfig.PaginationLoadingStrategy>
public static enum DynamoDbMapperConfig.PaginationLoadingStrategy extends Enum<DynamoDbMapperConfig.PaginationLoadingStrategy>
Enum Constant | 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 | 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
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.
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 © 2017 Amazon Web Services, Inc. All Rights Reserved.