Package com.couchbase.lite
Class IndexBuilder
- java.lang.Object
-
- com.couchbase.lite.IndexBuilder
-
public final class IndexBuilder extends java.lang.ObjectIndexBuilder used for building database index objects.
-
-
Constructor Summary
Constructors Constructor Description IndexBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FullTextIndexfullTextIndex(FullTextIndexItem... items)Create a full-text search index with the given index item and options.static ValueIndexvalueIndex(ValueIndexItem... items)Create a value index with the given index items.
-
-
-
Method Detail
-
valueIndex
@NonNull public static ValueIndex valueIndex(@NonNull ValueIndexItem... items)
Create a value index with the given index items. The index items are a list of the properties or expressions to be indexed.- Parameters:
items- The index items- Returns:
- The value index
-
fullTextIndex
@NonNull public static FullTextIndex fullTextIndex(@NonNull FullTextIndexItem... items)
Create a full-text search index with the given index item and options. Typically the index item is the property that is used to perform the match operation against with.- Parameters:
items- The index items.- Returns:
- The full-text search index.
-
-