Examples of prefetchSize()


Examples of com.google.appengine.api.datastore.FetchOptions.prefetchSize()

  private FetchOptions cloneFetchOptionsPrefetchAndChunkSize(FetchOptions fetchOptions) {
    checkNotNull(fetchOptions);
    FetchOptions clonedOptions = withDefaults();
    Integer prefetchSize = fetchOptions.getPrefetchSize();
    if (prefetchSize != null) {
      clonedOptions.prefetchSize(prefetchSize);
    }
    Integer chunkSize = fetchOptions.getChunkSize();
    if (chunkSize != null) {
      clonedOptions.chunkSize(chunkSize);
    }
View Full Code Here

Examples of com.google.appengine.api.datastore.FetchOptions.prefetchSize()

      FetchOptions opts, Integer chunkSize, Integer prefetchSize) {
    FetchOptions optsWithoutOffsetAndLimit = null;
    if (chunkSize != null) {
      optsWithoutOffsetAndLimit = FetchOptions.Builder.withChunkSize(opts.getChunkSize());
      if (prefetchSize != null) {
        optsWithoutOffsetAndLimit.prefetchSize(opts.getPrefetchSize());
      }
    } else if (prefetchSize != null) {
      optsWithoutOffsetAndLimit = FetchOptions.Builder.withPrefetchSize(prefetchSize);
    }
    return optsWithoutOffsetAndLimit;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.