Package com.couchbase.lite.internal.core
Class C4Query
- java.lang.Object
-
- com.couchbase.lite.internal.core.C4NativePeer
-
- com.couchbase.lite.internal.core.C4Query
-
- All Implemented Interfaces:
AutoCloseable
public class C4Query extends C4NativePeer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static voidcreateIndex(C4Database db, String name, String queryExpression, AbstractIndex.QueryLanguage queryLanguage, AbstractIndex.IndexType indexType, String language, boolean ignoreDiacritics)static voiddeleteIndex(C4Database db, String name)Stringexplain()intgetColumnCount()StringgetColumnNameForIndex(int idx)byte[]getFullTextMatched(C4FullTextMatch match)static FLValuegetIndexInfo(C4Database db)C4QueryEnumeratorrun(C4QueryOptions opts, FLSliceResult params)-
Methods inherited from class com.couchbase.lite.internal.core.C4NativePeer
toString
-
-
-
-
Method Detail
-
createIndex
public static void createIndex(@NonNull C4Database db, @NonNull String name, @NonNull String queryExpression, @NonNull AbstractIndex.QueryLanguage queryLanguage, @NonNull AbstractIndex.IndexType indexType, @Nullable String language, boolean ignoreDiacritics) throws LiteCoreException- Throws:
LiteCoreException
-
getIndexInfo
@NonNull public static FLValue getIndexInfo(@NonNull C4Database db) throws LiteCoreException
- Throws:
LiteCoreException
-
deleteIndex
public static void deleteIndex(@NonNull C4Database db, String name) throws LiteCoreException- Throws:
LiteCoreException
-
close
@CallSuper public void close()
-
explain
@Nullable public String explain()
-
run
@Nullable public C4QueryEnumerator run(@NonNull C4QueryOptions opts, @NonNull FLSliceResult params) throws LiteCoreException
- Throws:
LiteCoreException
-
getFullTextMatched
@Nullable public byte[] getFullTextMatched(@NonNull C4FullTextMatch match) throws LiteCoreException- Throws:
LiteCoreException
-
getColumnCount
public int getColumnCount()
-
getColumnNameForIndex
@Nullable public String getColumnNameForIndex(int idx)
-
-