Learn the different methods and options available in DynamoDBMapper for scan operations, including basic scans, filtered scans, and paginated scans.
// Basic scan (all items)
PaginatedScanList<User> allUsers = mapper.scan(User.class, new DynamoDBScanExpression());
// Scan with attribute projection (specific attributes only)
DynamoDBScanExpression scanExpression = new DynamoDBScanExpression()
.withProjectionExpression("id, username, email");
// Parallel scan (for large tables)
DynamoDBScanExpression parallelScanExpression = new DynamoDBScanExpression()
.withSegment(0) // Current segment
.withTotalSegments(4); // Total segments