Package com.ibm.cloud.cloudant.v1.model
Class PostIndexOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.cloudant.v1.model.PostIndexOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class PostIndexOptions extends com.ibm.cloud.sdk.core.service.model.GenericModelThe postIndex options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPostIndexOptions.BuilderBuilder.static interfacePostIndexOptions.TypeSchema for the type of an index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdb()Gets the db.Stringddoc()Gets the ddoc.IndexDefinitiondef()Gets the def.IndexDefinitionindex()Gets the index.Stringname()Gets the name.PostIndexOptions.BuildernewBuilder()New builder.Booleanpartitioned()Gets the partitioned.Stringtype()Gets the type.
-
-
-
Method Detail
-
newBuilder
public PostIndexOptions.Builder newBuilder()
New builder.- Returns:
- a PostIndexOptions builder
-
db
public String db()
Gets the db. Path parameter to specify the database name.- Returns:
- the db
-
index
public IndexDefinition index()
Gets the index. Schema for a `json` or `text` query index definition. Indexes of type `text` have additional configuration properties that do not apply to `json` indexes, these are: * `default_analyzer` - the default text analyzer to use * `default_field` - whether to index the text in all document fields and what analyzer to use for that purpose.- Returns:
- the index
-
ddoc
public String ddoc()
Gets the ddoc. Name of the design document in which the index will be created.- Returns:
- the ddoc
-
def
public IndexDefinition def()
Gets the def. Schema for a `json` or `text` query index definition. Indexes of type `text` have additional configuration properties that do not apply to `json` indexes, these are: * `default_analyzer` - the default text analyzer to use * `default_field` - whether to index the text in all document fields and what analyzer to use for that purpose.- Returns:
- the def
-
name
public String name()
Gets the name. name.- Returns:
- the name
-
partitioned
public Boolean partitioned()
Gets the partitioned. The default value is `true` for databases with `partitioned: true` and `false` otherwise. For databases with `partitioned: false` if this option is specified the value must be `false`.- Returns:
- the partitioned
-
type
public String type()
Gets the type. Schema for the type of an index.- Returns:
- the type
-
-