Class Values


  • public class Values
    extends Object
    Some static utility methods for interacting with Value<?>
    • Constructor Detail

      • Values

        public Values()
    • Method Detail

      • 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

        public static 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. This can really mess up ordered lists. So if we find a heterogeneous list, we need to force index everything.