public final class Findex extends Object
| Constructor and Description |
|---|
Findex() |
| Modifier and Type | Method and Description |
|---|---|
static void |
compact(int numberOfReindexingPhasesBeforeFullSet,
byte[] existingKey,
byte[] newKey,
byte[] label,
Database database) |
static String |
get_last_error()
Return the last error in a String that does not exceed 1023 bytes
|
static String |
get_last_error(int maxLen)
Return the last error in a String that does not exceed `max_len` bytes
|
static Map<Keyword,Set<Location>> |
search(byte[] key,
byte[] label,
Set<Keyword> keyWords,
Database db) |
static Map<Keyword,Set<Location>> |
search(byte[] key,
byte[] label,
Set<Keyword> keyWords,
int maxResultsPerKeyword,
int maxDepth,
Database db) |
static Map<Keyword,Set<Location>> |
search(byte[] key,
byte[] label,
Set<Keyword> keyWords,
int maxResultsPerKeyword,
int maxDepth,
int insecureFetchChainsBatchSize,
Database db) |
static void |
set_error(String error_msg)
Set the last error on the native lib
|
static void |
unwrap(int result)
If the result of the last FFI call is in Error, recover the last error from the native code and throw an
exception wrapping it.
|
static void |
upsert(byte[] key,
byte[] label,
Map<IndexedValue,Set<Keyword>> indexedValuesAndWords,
Database db) |
public static String get_last_error() throws CloudproofException
CloudproofException - in case of native library errorpublic static String get_last_error(int maxLen) throws CloudproofException
maxLen - the maximum number of bytes to returnCloudproofException - in case of native library errorpublic static void set_error(String error_msg) throws CloudproofException
error_msg - the last error to set on the native libCloudproofException - n case of native library errorpublic static void upsert(byte[] key,
byte[] label,
Map<IndexedValue,Set<Keyword>> indexedValuesAndWords,
Database db)
throws CloudproofException
CloudproofExceptionpublic static Map<Keyword,Set<Location>> search(byte[] key, byte[] label, Set<Keyword> keyWords, Database db) throws CloudproofException
CloudproofExceptionpublic static Map<Keyword,Set<Location>> search(byte[] key, byte[] label, Set<Keyword> keyWords, int maxResultsPerKeyword, int maxDepth, Database db) throws CloudproofException
CloudproofExceptionpublic static Map<Keyword,Set<Location>> search(byte[] key, byte[] label, Set<Keyword> keyWords, int maxResultsPerKeyword, int maxDepth, int insecureFetchChainsBatchSize, Database db) throws CloudproofException
CloudproofExceptionpublic static void compact(int numberOfReindexingPhasesBeforeFullSet,
byte[] existingKey,
byte[] newKey,
byte[] label,
Database database)
throws CloudproofException
CloudproofExceptionpublic static void unwrap(int result)
throws CloudproofException
result - the result of the FFI callCloudproofException - in case of native library errorCopyright © 2023. All rights reserved.