public List<T> findAll() throws DataAccessException {
  DynamoDBScanExpression dynamoDBScanExpression=new DynamoDBScanExpression();
  DynamoDBMapperConfig config=new DynamoDBMapperConfig(DynamoDBMapperConfig.PaginationLoadingStrategy.EAGER_LOADING);
  PaginatedScanList<T> paginatedScanList=dynamoDBMapper.scan(getType(),dynamoDBScanExpression,config);
  paginatedScanList.loadAllResults();
  List<T> list=new ArrayList<T>(paginatedScanList.size());
  Iterator<T> iterator=paginatedScanList.iterator();
  while (iterator.hasNext()) {
    T element=iterator.next();
    list.add(element);
  }
  return list;
}

public List < T > findAll ( ) throws DataAccessException { DynamoDBScanExpression dynamoDBScanExpression = new DynamoDBScanExpression ( ) ; DynamoDBMapperConfig config = new DynamoDBMapperConfig ( DynamoDBMapperConfig . PaginationLoadingStrategy . EAGER_LOADING ) ; PaginatedScanList < T > paginatedScanList = dynamoDBMapper . scan ( getType ( ) , dynamoDBScanExpression , config ) ; paginatedScanList . loadAllResults ( ) ; List < T > list = new ArrayList < T > ( paginatedScanList . size ( ) ) ; Iterator < T > iterator = paginatedScanList . iterator ( ) ; while ( iterator . hasNext ( ) ) { T element = iterator . next ( ) ; list . add ( element ) ; } return list ; }
find all rows in table given the entity object
