Package com.google.appengine.tools.mapreduce

Examples of com.google.appengine.tools.mapreduce.DatastoreMutationPool


     
      Entity city = new Entity("City", cityName);
      city.setProperty("state", state);
      city.setUnindexedProperty("zip", zipcode);
     
      DatastoreMutationPool mutationPool = this.getAppEngineContext(context)
          .getMutationPool();
      mutationPool.put(zip);
      mutationPool.put(city);
    }

  }
View Full Code Here


      .getName());

  @Override
  public void map(Key key, Entity value, Context context) {
    log.info("Adding key to deletion pool: " + key);
    DatastoreMutationPool mutationPool = this.getAppEngineContext(context)
        .getMutationPool();
    mutationPool.delete(value.getKey());
  }
View Full Code Here

      String comment = (String) value.getProperty("comment");
      comment = comment.toLowerCase();
      value.setProperty("comment", comment);
      value.setProperty("updatedAt", new Date());

      DatastoreMutationPool mutationPool = this.getAppEngineContext(
          context).getMutationPool();
      mutationPool.put(value);
    }
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.tools.mapreduce.DatastoreMutationPool

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.