public class IndexSpec
extends java.lang.Object
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() .setName("docs") .build(); Index index = searchService.getIndex(spec);
Modifier and Type | Class and Description |
---|---|
static class
|
IndexSpec.Builder
A builder of IndexSpec.
|
Modifier and Type | Method and Description |
---|---|
boolean
|
equals
(java.lang.Object obj)
|
java.lang.String
|
getName
()
|
int
|
hashCode
()
|
static
IndexSpec.Builder
|
newBuilder
()
Creates a new IndexSpec builder.
|
java.lang.String
|
toString
()
|
public java.lang.String getName()
public static IndexSpec.Builder newBuilder()
IndexSpec.Builder.build()
method on the returned builder.
public int hashCode()
hashCode
in class
java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class
java.lang.Object
public java.lang.String toString()
toString
in class
java.lang.Object