public static final class IndexSpec.BuilderA builder of IndexSpec.
Methods
build()
public IndexSpec build()Builds a valid IndexSpec. The builder must have set a valid index name.
| Returns | |
|---|---|
| Type | Description |
IndexSpec |
the IndexSpec built by this builder |
setName(String name)
public IndexSpec.Builder setName(String name)Sets the unique name of the index.
| Parameter | |
|---|---|
| Name | Description |
name |
Stringthe name of the index |
| Returns | |
|---|---|
| Type | Description |
IndexSpec.Builder |
this Builder |