public class C4Query extends C4NativePeer
Modifier and Type | Method and Description |
---|---|
void |
close() |
static void |
createIndex(C4Database db,
String name,
String queryExpression,
AbstractIndex.QueryLanguage queryLanguage,
AbstractIndex.IndexType indexType,
String language,
boolean ignoreDiacritics) |
static void |
deleteIndex(C4Database db,
String name) |
String |
explain() |
int |
getColumnCount() |
String |
getColumnNameForIndex(int idx) |
byte[] |
getFullTextMatched(C4FullTextMatch match) |
static FLValue |
getIndexInfo(C4Database db) |
C4QueryEnumerator |
run(C4QueryOptions opts,
FLSliceResult params) |
toString
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
LiteCoreException
@NonNull public static FLValue getIndexInfo(@NonNull C4Database db) throws LiteCoreException
LiteCoreException
public static void deleteIndex(@NonNull C4Database db, String name) throws LiteCoreException
LiteCoreException
@CallSuper public void close()
@Nullable public String explain()
@Nullable public C4QueryEnumerator run(@NonNull C4QueryOptions opts, @NonNull FLSliceResult params) throws LiteCoreException
LiteCoreException
@Nullable public byte[] getFullTextMatched(@NonNull C4FullTextMatch match) throws LiteCoreException
LiteCoreException
public int getColumnCount()
@Nullable public String getColumnNameForIndex(int idx)