public static final class IndexSpec.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
IndexSpec |
build()
Builds a valid IndexSpec.
|
IndexSpec.Builder |
setConsistency(Consistency consistency)
Deprecated.
As of 1.7.3, consistency setting is no longer required,
since PER_DOCUMENT is the only mode supported.
|
IndexSpec.Builder |
setName(java.lang.String name)
Sets the unique name of the index.
|
public IndexSpec.Builder setName(java.lang.String name)
name - the name of the indexjava.lang.IllegalArgumentException - if the index name length is not between 1
and IndexChecker#MAXIMUM_INDEX_NAME_LENGTH@Deprecated public IndexSpec.Builder setConsistency(Consistency consistency)
consistency - the consistency mode in which the index operatespublic IndexSpec build()
java.lang.IllegalArgumentException - if the IndexSpec built is not valid