Package com.amazonaws.services.simpledb.model

Examples of com.amazonaws.services.simpledb.model.DeletableItem


      if (ids.iterator().hasNext()) {
        String domainName = getDomainName(entityClass);
       
      List<DeletableItem> deleteList = new ArrayList<DeletableItem>();
      for (ID id : ids) {
        deleteList.add(new DeletableItem().withName((String) id));
      }
      // max allowed batch size is 25
      List<DeletableItem> batch = new ArrayList<DeletableItem>(MAX_BATCH_SIZE);
      for (int i = 0; i < deleteList.size(); i += MAX_BATCH_SIZE) {
        int batchIndex = ((i + MAX_BATCH_SIZE) < deleteList.size()) ? (i + MAX_BATCH_SIZE)
View Full Code Here


    {
        String  table = jsoda.getModelTable(modelName);
        List<DeletableItem> items = new ArrayList<DeletableItem>();
        for (int i = 0; i < idList.size(); i++) {
            String  idValue = makeIdValue(modelName, idList.get(i), rangeKeyList == null ? null : rangeKeyList.get(i));
            items.add(new DeletableItem().withName(idValue));
        }
        sdbClient.batchDeleteAttributes(new BatchDeleteAttributesRequest(table, items));
    }
View Full Code Here

TOP

Related Classes of com.amazonaws.services.simpledb.model.DeletableItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.