summaryrefslogtreecommitdiff
path: root/src/main/java/com/android/vts/util/DatastoreHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/android/vts/util/DatastoreHelper.java')
-rw-r--r--src/main/java/com/android/vts/util/DatastoreHelper.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/java/com/android/vts/util/DatastoreHelper.java b/src/main/java/com/android/vts/util/DatastoreHelper.java
index ec10194..b738df7 100644
--- a/src/main/java/com/android/vts/util/DatastoreHelper.java
+++ b/src/main/java/com/android/vts/util/DatastoreHelper.java
@@ -61,8 +61,15 @@ import java.util.logging.Logger;
public class DatastoreHelper {
protected static final Logger logger = Logger.getLogger(DatastoreHelper.class.getName());
public static final int MAX_WRITE_RETRIES = 5;
- public static final FetchOptions LARGE_BATCH_OPTIONS =
- FetchOptions.Builder.withChunkSize(1000).prefetchSize(1000);
+
+ /**
+ * Get query fetch options for large batches of entities.
+ *
+ * @return FetchOptions with a large chunk and prefetch size.
+ */
+ public static FetchOptions getLargeBatchOptions() {
+ return FetchOptions.Builder.withChunkSize(1000).prefetchSize(1000);
+ }
/**
* Returns true if there are data points newer than lowerBound in the results table.