IndexSpec (Google App Engine API for Java)

Class IndexSpec

  • java.lang.Object

  • public class IndexSpec
    extends java.lang.Object
    Represents information about an index. This class is used to fully specify the index you want to retrieve from the SearchService. To build an instance use the newBuilder() method and set all required parameters, plus optional values different than the defaults.
       SearchService searchService = SearchServiceFactory.getSearchService();
       IndexSpec spec = IndexSpec.newBuilder()
       Index index = searchService.getIndex(spec);
    • Method Detail

      • getName

        public java.lang.String getName()
        the name of the index
      • newBuilder

        public static IndexSpec.Builder newBuilder()
        Creates a new IndexSpec builder. You must use this method to obtain a new builder. The returned builder must be used to specify all properties of the IndexSpec. To obtain the IndexSpec call the method on the returned builder.
        a builder which constructs a IndexSpec object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object