Class CrossEntityResult
java.lang.Object
dev.hogwai.dynamodb.simplified.entity.CrossEntityResult
Groups items retrieved from a cross-entity query by their entity type.
Each entity type included in the query has its matching items collected in a separate list, accessible by the entity class.
-
Method Summary
Modifier and TypeMethodDescription<T> @NonNull List<T> Returns the list of items for the given entity type.getAll()Returns the raw map of entity class to item lists.booleanisEmpty()Returns whether all entity type lists in this result are empty.intsize()Returns the total number of items across all entity types.
-
Method Details
-
get
-
getAll
-
isEmpty
public boolean isEmpty()Returns whether all entity type lists in this result are empty.- Returns:
trueif no items of any type were returned
-
size
public int size()Returns the total number of items across all entity types.- Returns:
- the total item count
-