Class CompositeIndexUtils

java.lang.Object
com.google.appengine.api.datastore.CompositeIndexUtils

public final class CompositeIndexUtils extends Object
Static utilities for working with composite indexes.
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    generateXmlForIndex(com.google.storage.onestore.v3.OnestoreEntity.Index index, com.google.appengine.api.datastore.CompositeIndexManager.IndexSource source)
    Generate an xml representation of the provided OnestoreEntity.Index.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • generateXmlForIndex

      public static String generateXmlForIndex(com.google.storage.onestore.v3.OnestoreEntity.Index index, com.google.appengine.api.datastore.CompositeIndexManager.IndexSource source)
      Generate an xml representation of the provided OnestoreEntity.Index.
      
       <datastore-indexes autoGenerate="true">
           <datastore-index kind="a" ancestor="false">
               <property name="yam" direction="asc"/>
               <property name="not yam" direction="desc"/>
           </datastore-index>
       </datastore-indexes>
       
      Parameters:
      index - The index for which we want an xml representation.
      source - The source of the provided index.
      Returns:
      The xml representation of the provided index.