Package com.ibm.cloud.cloudant.v1.model
Class IndexDefinition.Builder
java.lang.Object
com.ibm.cloud.cloudant.v1.model.IndexDefinition.Builder
- Enclosing class:
IndexDefinition
Builder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddFields
(IndexField fields) Adds a new element to fields.build()
Builds a IndexDefinition.defaultAnalyzer
(Analyzer defaultAnalyzer) Set the defaultAnalyzer.defaultField
(IndexTextOperatorDefaultField defaultField) Set the defaultField.fields
(List<IndexField> fields) Set the fields.indexArrayLengths
(Boolean indexArrayLengths) Set the indexArrayLengths.partialFilterSelector
(Map<String, Object> partialFilterSelector) Set the partialFilterSelector.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a IndexDefinition.- Returns:
- the new IndexDefinition instance
-
addFields
Adds a new element to fields.- Parameters:
fields
- the new element to be added- Returns:
- the IndexDefinition builder
-
defaultAnalyzer
Set the defaultAnalyzer.- Parameters:
defaultAnalyzer
- the defaultAnalyzer- Returns:
- the IndexDefinition builder
-
defaultField
Set the defaultField.- Parameters:
defaultField
- the defaultField- Returns:
- the IndexDefinition builder
-
fields
Set the fields. Existing fields will be replaced.- Parameters:
fields
- the fields- Returns:
- the IndexDefinition builder
-
indexArrayLengths
Set the indexArrayLengths.- Parameters:
indexArrayLengths
- the indexArrayLengths- Returns:
- the IndexDefinition builder
-
partialFilterSelector
Set the partialFilterSelector.- Parameters:
partialFilterSelector
- the partialFilterSelector- Returns:
- the IndexDefinition builder
-