Package com.googlecode.objectify.util
Class Values
java.lang.Object
com.googlecode.objectify.util.Values
Some static utility methods for interacting with
Value<?>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
homogenizeIndexes
(List<com.google.cloud.datastore.Value<?>> list) The datastore has a weird behavior of reordering values in a list so that indexed ones come before nonindexed ones.static <D> com.google.cloud.datastore.Value
<D> index
(com.google.cloud.datastore.Value<D> original, boolean index)
-
Constructor Details
-
Values
public Values()
-
-
Method Details
-
index
public static <D> com.google.cloud.datastore.Value<D> index(com.google.cloud.datastore.Value<D> original, boolean index) - Returns:
- a value that has the specified index flag (possibly the original itself)
-
homogenizeIndexes
The datastore has a weird behavior of reordering values in a list so that indexed ones come before nonindexed ones. This can really mess up ordered lists. So if we find a heterogeneous list, we need to force index everything.
-