Class IndexSpec.Builder (2.0.0)

public static final class IndexSpec.Builder

A builder of IndexSpec.

Inheritance

java.lang.Object > IndexSpec.Builder

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 String

the name of the index

Returns
Type Description
IndexSpec.Builder

this Builder