Package com.google.appengine.api.datastore.EntityCachingStrategy

Examples of com.google.appengine.api.datastore.EntityCachingStrategy.PreGetCachingResult


    PreGetContext preGetContext = new PreGetContext(this, keyList, resultMap);
    datastoreServiceConfig.getDatastoreCallbacks().executePreGetCallbacks(preGetContext);

    keyList.removeAll(resultMap.keySet());

    PreGetCachingResult preGetCachingResult =
        entityCachingStrategy.preGet(this, keyList, resultMap);
    keyList.removeAll(preGetCachingResult.getKeysToSkipLoading());

    Future<Map<Key, Entity>> result = doBatchGet(txn, Sets.newLinkedHashSet(keyList), resultMap);

    result = entityCachingStrategy.createPostGetFuture(result, preGetCachingResult);
    return new PostLoadFuture(result, datastoreServiceConfig.getDatastoreCallbacks(), this);
View Full Code Here


    PreGetContext preGetContext = new PreGetContext(this, keyList, resultMap);
    getDatastoreServiceConfig().getDatastoreCallbacks().executePreGetCallbacks(preGetContext);
    if (!resultMap.isEmpty()) {
      keyList.removeAll(resultMap.keySet());
    }
    PreGetCachingResult preGetCachingResult =
        getEntityCachingStrategy().preGet(this, keyList, resultMap);
    keyList.removeAll(preGetCachingResult.getKeysToSkipLoading());
    Future<Map<Key, Entity>> result = null;
    if (txn == null && getDatastoreServiceConfig().getReadPolicy().getConsistency() == STRONG &&
        getDatastoreType() == HIGH_REPLICATION) {
      Collection<List<Key>> keysByEntityGroup = KEY_GROUPER.getItemsByEntityGroup(keyList);
      if (keysByEntityGroup.size() > 1) {
View Full Code Here

TOP

Related Classes of com.google.appengine.api.datastore.EntityCachingStrategy.PreGetCachingResult

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.