public class FindexBase extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
FindexBase.IndexRequest<SELF extends FindexBase.IndexRequest<SELF>> |
protected static class |
FindexBase.SearchRequest<SELF extends FindexBase.SearchRequest<SELF>> |
| Constructor and Description |
|---|
FindexBase() |
| Modifier and Type | Method and Description |
|---|---|
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
|
protected static String |
indexedValuesToJson(Map<IndexedValue,Set<Keyword>> indexedValuesAndWords) |
protected static String |
keywordsToJson(Set<Keyword> keyWords) |
static void |
set_error(String error_msg)
Set the last error on the native lib
|
protected 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.
|
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 errorprotected static String indexedValuesToJson(Map<IndexedValue,Set<Keyword>> indexedValuesAndWords) throws CloudproofException
CloudproofExceptionprotected static String keywordsToJson(Set<Keyword> keyWords) throws CloudproofException
CloudproofExceptionprotected static void unwrap(int result)
throws CloudproofException
result - the result of the FFI callCloudproofException - in case of native library errorCopyright © 2023. All rights reserved.