Package com.google.appengine.api.search
Class IndexSpec
- java.lang.Object
-
- com.google.appengine.api.search.IndexSpec
-
public class IndexSpec extends Object
Represents information about an index. This class is used to fully specify the index you want to retrieve from theSearchService. To build an instance use thenewBuilder()method and set all required parameters, plus optional values different than the defaults.SearchService searchService = SearchServiceFactory.getSearchService(); IndexSpec spec = IndexSpec.newBuilder() .setName("docs") .build(); Index index = searchService.getIndex(spec);
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndexSpec.BuilderA builder of IndexSpec.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetName()inthashCode()static IndexSpec.BuildernewBuilder()Creates a new IndexSpec builder.StringtoString()
-
-
-
Method Detail
-
getName
public String getName()
- Returns:
- 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 theIndexSpec.Builder.build()method on the returned builder.- Returns:
- a builder which constructs a IndexSpec object
-
-