diff --git a/Makefile.am b/Makefile.am index 5de7f8ce..f7033c6d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -636,6 +636,7 @@ EXTRA_DIST += bindings/java/org/hyperdex/client/LengthLessEqual.java EXTRA_DIST += bindings/java/org/hyperdex/client/LessEqual.java EXTRA_DIST += bindings/java/org/hyperdex/client/LessThan.java EXTRA_DIST += bindings/java/org/hyperdex/client/Microtransaction.java +EXTRA_DIST += bindings/java/org_hyperdex_client_Microtransaction.definitions.c EXTRA_DIST += bindings/java/org/hyperdex/client/Operation.java EXTRA_DIST += bindings/java/org/hyperdex/client/Predicate.java EXTRA_DIST += bindings/java/org/hyperdex/client/Range.java @@ -658,6 +659,7 @@ noinst_HEADERS += bindings/java/org_hyperdex_client_Range.h noinst_HEADERS += bindings/java/org_hyperdex_client_Regex.h libhyperdex_client_java_la_SOURCES = +libhyperdex_client_java_la_SOURCES += bindings/java/org_hyperdex_client_Microtransaction.c libhyperdex_client_java_la_SOURCES += bindings/java/org_hyperdex_client_Client.c libhyperdex_client_java_la_CPPFLAGS = $(JNI_CPPFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) libhyperdex_client_java_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS) -Wmissing-prototypes diff --git a/bindings/java.py b/bindings/java.py index 6e3a0c52..5f407cf6 100644 --- a/bindings/java.py +++ b/bindings/java.py @@ -71,41 +71,11 @@ def CTYPEOF(x): raise RuntimeError('Unknown type: ' + str(x)) def generate_microtransaction_prototype(x): - if x.form is not bindings.MicrotransactionCall: - return '' - - args_list = ', '.join([JTYPEOF(arg) + ' ' + arg.__name__.lower() for arg in x.args_in]) - if x.form == bindings.AsyncCall: - if x.args_out == (bindings.Status, bindings.Attributes): - ret = 'Map' - elif x.args_out == (bindings.Status, bindings.Description): - ret = 'String' - elif x.args_out == (bindings.Status, bindings.Count): - ret = 'Long' - elif x.args_out == (bindings.Status,): - ret = 'Boolean' - else: - print x.args_out - assert False - proto = ' public native Deferred async_{0}({1}) throws HyperDexClientException;\n'.format(x.name, args_list) - proto += ' public {1} {0}('.format(x.name, ret) - proto += args_list - proto += ') throws HyperDexClientException\n {\n' - args_list = ', '.join([arg.__name__.lower() for arg in x.args_in]) - proto += ' return ({2}) async_{0}({1}).waitForIt();\n'.format(x.name, args_list, ret) - proto += ' }\n' - return proto - elif (x.form == bindings.MicrotransactionCall or x.form == bindings.Iterator): - return ' public native Iterator {0}({1});\n'.format(x.name, args_list) - else: - assert False + return ' public native Integer {0}(Map attrs) throws HyperDexClientException;\n'.format(x.name) def generate_client_prototype(x): - if x.form is bindings.MicrotransactionCall: - return '' - args_list = ', '.join([JTYPEOF(arg) + ' ' + arg.__name__.lower() for arg in x.args_in]) - if x.form == bindings.AsyncCall: + if x.form is bindings.AsyncCall: if x.args_out == (bindings.Status, bindings.Attributes): ret = 'Map' elif x.args_out == (bindings.Status, bindings.Description): @@ -115,8 +85,8 @@ def generate_client_prototype(x): elif x.args_out == (bindings.Status,): ret = 'Boolean' else: - print x.args_out - assert False + raise RuntimeError('Cannot handle args: ' + str(x.args_out)) + proto = ' public native Deferred async_{0}({1}) throws HyperDexClientException;\n'.format(x.name, args_list) proto += ' public {1} {0}('.format(x.name, ret) proto += args_list @@ -125,10 +95,10 @@ def generate_client_prototype(x): proto += ' return ({2}) async_{0}({1}).waitForIt();\n'.format(x.name, args_list, ret) proto += ' }\n' return proto - elif (x.form == bindings.MicrotransactionCall or x.form == bindings.Iterator): + elif x.form is bindings.Iterator: return ' public native Iterator {0}({1});\n'.format(x.name, args_list) else: - assert False + raise RuntimeError('Unknown function type: ' + str(x.form)) def generate_worker(call, x): if x.form == bindings.AsyncCall: @@ -136,7 +106,7 @@ def generate_worker(call, x): elif x.form == bindings.Iterator: cls = 'iterator' else: - assert False + raise RuntimeError('Unknown function type: ' + str(x.form)) fptr = bindings.c.generate_func_ptr(x, 'client') func = 'JNIEXPORT HYPERDEX_API jobject JNICALL\n' @@ -187,25 +157,19 @@ def generate_workers(xs): calls.add(call) def generate_microtransaction_definition(x): - if not (x.form is bindings.MicrotransactionCall): - return '' - func = 'JNIEXPORT HYPERDEX_API jint JNICALL\n' - func += 'Java_org_hyperdex_client_Client_{0}(JNIEnv* env, jobject obj'.format(x.name.replace('_', '_1')) + func += 'Java_org_hyperdex_client_Microtransaction_{0}(JNIEnv* env '.format(x.name.replace('_', '_1')) for arg in x.args_in: func += ', ' + CTYPEOF(arg) + ' ' + arg.__name__.lower() func += ')\n{\n' - func += ' return hyperdex_java_client_{0}(env, obj, hyperdex_client_{1}'.format(bindings.call_name(x), x.name) + func += ' return hyperdex_java_uactx_{0}(env, hyperdex_client_{1}'.format(bindings.call_name(x), x.name) for arg in x.args_in: func += ', ' + arg.__name__.lower() func += ');\n}\n' return func def generate_client_definition(x): - if x.form is bindings.MicrotransactionCall: - return '' - func = 'JNIEXPORT HYPERDEX_API jobject JNICALL\n' if x.form == bindings.AsyncCall: func += 'Java_org_hyperdex_client_Client_async_1{0}(JNIEnv* env, jobject obj'.format(x.name.replace('_', '_1')) @@ -306,7 +270,7 @@ def generate_client_java(): fout = open(os.path.join(BASE, 'bindings/java/org/hyperdex/client/Client.java'), 'w') fout.write(bindings.copyright('*', '2013-2015')) fout.write(bindings.java.JAVA_HEAD) - fout.write('\n'.join([generate_client_prototype(c) for c in bindings.Client])) + fout.write('\n'.join([generate_client_prototype(c) for c in bindings.Client if c.form is not bindings.MicrotransactionCall])) fout.write('}\n') fout.flush() fout = open(os.path.join(BASE, 'bindings/java/org/hyperdex/client/Microtransaction.java'), 'w') @@ -337,19 +301,19 @@ def generate_client_java(): fout.write(bindings.copyright('*', '2013-2015')) fout.write(bindings.java.DEFINITIONS_HEAD) fout.write('\n'.join(generate_workers(bindings.Client))) - fout.write('\n'.join([generate_client_definition(c) for c in bindings.Client])) + fout.write('\n'.join([generate_client_definition(c) for c in bindings.Client if c.form is not bindings.MicrotransactionCall])) fout = open(os.path.join(BASE, 'bindings/java/org_hyperdex_client_Microtransaction.definitions.c'), 'w') fout.write(bindings.copyright('*', '2015')) fout.write(bindings.java.DEFINITIONS_HEAD) fout.write('\n'.join(generate_workers(bindings.Client))) - fout.write('\n'.join([generate_microtransaction_definition(c) for c in bindings.Client])) + fout.write('\n'.join([generate_microtransaction_definition(c) for c in bindings.Client if c.form is bindings.MicrotransactionCall])) def generate_client_doc(): fout = open(os.path.join(BASE, 'doc/java/client/ops.tex'), 'w') fout.write(bindings.copyright('%', '2014-2015')) fout.write('\n% This LaTeX file is generated by bindings/java.py\n\n') fout.write('\n'.join([generate_api_block(c, 'client') for c in bindings.Client - if c.name not in (bindings.DoNotDocument, bindings.MicrotransactionCall)])) + if c.form not in (bindings.DoNotDocument, bindings.MicrotransactionCall)])) if __name__ == '__main__': generate_client_java() diff --git a/bindings/java/org/hyperdex/client/ByteString.java b/bindings/java/org/hyperdex/client/ByteString.java index cc02dc31..c10bb949 100644 --- a/bindings/java/org/hyperdex/client/ByteString.java +++ b/bindings/java/org/hyperdex/client/ByteString.java @@ -90,7 +90,8 @@ public String decode(String encoding) public String toString(String encoding) throws UnsupportedEncodingException { - return decode(encoding); + // Terminating NULL character is redundant in string representation + return decode(encoding).replace("\0", ""); } public static String toString(byte[] bytes, String encoding) diff --git a/bindings/java/org/hyperdex/client/Client.java b/bindings/java/org/hyperdex/client/Client.java index 95711973..106ba9d2 100644 --- a/bindings/java/org/hyperdex/client/Client.java +++ b/bindings/java/org/hyperdex/client/Client.java @@ -131,7 +131,6 @@ public Boolean put(String spacename, Object key, Map attributes) return (Boolean) async_put(spacename, key, attributes).waitForIt(); } - public native Deferred async_cond_put(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException; public Boolean cond_put(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException { @@ -180,7 +179,6 @@ public Boolean atomic_add(String spacename, Object key, Map attr return (Boolean) async_atomic_add(spacename, key, attributes).waitForIt(); } - public native Deferred async_cond_atomic_add(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException; public Boolean cond_atomic_add(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException { @@ -199,7 +197,6 @@ public Boolean atomic_sub(String spacename, Object key, Map attr return (Boolean) async_atomic_sub(spacename, key, attributes).waitForIt(); } - public native Deferred async_cond_atomic_sub(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException; public Boolean cond_atomic_sub(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException { @@ -218,7 +215,6 @@ public Boolean atomic_mul(String spacename, Object key, Map attr return (Boolean) async_atomic_mul(spacename, key, attributes).waitForIt(); } - public native Deferred async_cond_atomic_mul(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException; public Boolean cond_atomic_mul(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException { @@ -237,7 +233,6 @@ public Boolean atomic_div(String spacename, Object key, Map attr return (Boolean) async_atomic_div(spacename, key, attributes).waitForIt(); } - public native Deferred async_cond_atomic_div(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException; public Boolean cond_atomic_div(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException { @@ -274,7 +269,6 @@ public Boolean atomic_and(String spacename, Object key, Map attr return (Boolean) async_atomic_and(spacename, key, attributes).waitForIt(); } - public native Deferred async_cond_atomic_and(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException; public Boolean cond_atomic_and(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException { @@ -293,7 +287,6 @@ public Boolean atomic_or(String spacename, Object key, Map attri return (Boolean) async_atomic_or(spacename, key, attributes).waitForIt(); } - public native Deferred async_cond_atomic_or(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException; public Boolean cond_atomic_or(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException { @@ -366,7 +359,6 @@ public Boolean string_prepend(String spacename, Object key, Map return (Boolean) async_string_prepend(spacename, key, attributes).waitForIt(); } - public native Deferred async_cond_string_prepend(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException; public Boolean cond_string_prepend(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException { @@ -385,7 +377,6 @@ public Boolean string_append(String spacename, Object key, Map a return (Boolean) async_string_append(spacename, key, attributes).waitForIt(); } - public native Deferred async_cond_string_append(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException; public Boolean cond_string_append(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException { @@ -404,7 +395,6 @@ public Boolean list_lpush(String spacename, Object key, Map attr return (Boolean) async_list_lpush(spacename, key, attributes).waitForIt(); } - public native Deferred async_cond_list_lpush(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException; public Boolean cond_list_lpush(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException { @@ -423,7 +413,6 @@ public Boolean list_rpush(String spacename, Object key, Map attr return (Boolean) async_list_rpush(spacename, key, attributes).waitForIt(); } - public native Deferred async_cond_list_rpush(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException; public Boolean cond_list_rpush(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException { @@ -514,7 +503,6 @@ public Boolean document_rename(String spacename, Object key, Map return (Boolean) async_document_rename(spacename, key, attributes).waitForIt(); } - public native Deferred async_cond_document_rename(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException; public Boolean cond_document_rename(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException { @@ -533,7 +521,6 @@ public Boolean document_unset(String spacename, Object key, Map return (Boolean) async_document_unset(spacename, key, attributes).waitForIt(); } - public native Deferred async_cond_document_unset(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException; public Boolean cond_document_unset(String spacename, Object key, Map predicates, Map attributes) throws HyperDexClientException { diff --git a/bindings/java/org/hyperdex/client/Microtransaction.java b/bindings/java/org/hyperdex/client/Microtransaction.java index 1ef3a07d..e641aef9 100644 --- a/bindings/java/org/hyperdex/client/Microtransaction.java +++ b/bindings/java/org/hyperdex/client/Microtransaction.java @@ -42,145 +42,261 @@ protected Microtransaction(Client client, String space) private native void _create(Client client, String space); + public native Integer get(Map attrs) throws HyperDexClientException; + public native Integer get_partial(Map attrs) throws HyperDexClientException; + public native Integer put(Map attrs) throws HyperDexClientException; - public native Iterator uxact_put(Microtransaction microtransaction, Map attributes); + public native Integer uxact_put(Map attrs) throws HyperDexClientException; + public native Integer cond_put(Map attrs) throws HyperDexClientException; + public native Integer cond_put_or_create(Map attrs) throws HyperDexClientException; + public native Integer group_put(Map attrs) throws HyperDexClientException; + public native Integer put_if_not_exist(Map attrs) throws HyperDexClientException; + public native Integer del(Map attrs) throws HyperDexClientException; + public native Integer cond_del(Map attrs) throws HyperDexClientException; + public native Integer group_del(Map attrs) throws HyperDexClientException; + public native Integer atomic_add(Map attrs) throws HyperDexClientException; - public native Iterator uxact_atomic_add(Microtransaction microtransaction, Map attributes); + public native Integer uxact_atomic_add(Map attrs) throws HyperDexClientException; + public native Integer cond_atomic_add(Map attrs) throws HyperDexClientException; + public native Integer group_atomic_add(Map attrs) throws HyperDexClientException; + public native Integer atomic_sub(Map attrs) throws HyperDexClientException; - public native Iterator uxact_atomic_sub(Microtransaction microtransaction, Map attributes); + public native Integer uxact_atomic_sub(Map attrs) throws HyperDexClientException; + public native Integer cond_atomic_sub(Map attrs) throws HyperDexClientException; + public native Integer group_atomic_sub(Map attrs) throws HyperDexClientException; + public native Integer atomic_mul(Map attrs) throws HyperDexClientException; - public native Iterator uxact_atomic_mul(Microtransaction microtransaction, Map attributes); + public native Integer uxact_atomic_mul(Map attrs) throws HyperDexClientException; + public native Integer cond_atomic_mul(Map attrs) throws HyperDexClientException; + public native Integer group_atomic_mul(Map attrs) throws HyperDexClientException; + public native Integer atomic_div(Map attrs) throws HyperDexClientException; - public native Iterator uxact_atomic_div(Microtransaction microtransaction, Map attributes); + public native Integer uxact_atomic_div(Map attrs) throws HyperDexClientException; + public native Integer cond_atomic_div(Map attrs) throws HyperDexClientException; + public native Integer group_atomic_div(Map attrs) throws HyperDexClientException; + public native Integer atomic_mod(Map attrs) throws HyperDexClientException; + public native Integer cond_atomic_mod(Map attrs) throws HyperDexClientException; + public native Integer group_atomic_mod(Map attrs) throws HyperDexClientException; + public native Integer atomic_and(Map attrs) throws HyperDexClientException; - public native Iterator uxact_atomic_and(Microtransaction microtransaction, Map attributes); + public native Integer uxact_atomic_and(Map attrs) throws HyperDexClientException; + public native Integer cond_atomic_and(Map attrs) throws HyperDexClientException; + public native Integer group_atomic_and(Map attrs) throws HyperDexClientException; + public native Integer atomic_or(Map attrs) throws HyperDexClientException; - public native Iterator uxact_atomic_or(Microtransaction microtransaction, Map attributes); + public native Integer uxact_atomic_or(Map attrs) throws HyperDexClientException; + public native Integer cond_atomic_or(Map attrs) throws HyperDexClientException; + public native Integer group_atomic_or(Map attrs) throws HyperDexClientException; + public native Integer atomic_xor(Map attrs) throws HyperDexClientException; + public native Integer cond_atomic_xor(Map attrs) throws HyperDexClientException; + public native Integer group_atomic_xor(Map attrs) throws HyperDexClientException; + public native Integer atomic_min(Map attrs) throws HyperDexClientException; + public native Integer cond_atomic_min(Map attrs) throws HyperDexClientException; + public native Integer group_atomic_min(Map attrs) throws HyperDexClientException; + public native Integer atomic_max(Map attrs) throws HyperDexClientException; + public native Integer cond_atomic_max(Map attrs) throws HyperDexClientException; + public native Integer group_atomic_max(Map attrs) throws HyperDexClientException; + public native Integer string_prepend(Map attrs) throws HyperDexClientException; - public native Iterator uxact_string_prepend(Microtransaction microtransaction, Map attributes); + public native Integer uxact_string_prepend(Map attrs) throws HyperDexClientException; + public native Integer cond_string_prepend(Map attrs) throws HyperDexClientException; + public native Integer group_string_prepend(Map attrs) throws HyperDexClientException; + public native Integer string_append(Map attrs) throws HyperDexClientException; - public native Iterator uxact_string_append(Microtransaction microtransaction, Map attributes); + public native Integer uxact_string_append(Map attrs) throws HyperDexClientException; + public native Integer cond_string_append(Map attrs) throws HyperDexClientException; + public native Integer group_string_append(Map attrs) throws HyperDexClientException; + public native Integer list_lpush(Map attrs) throws HyperDexClientException; - public native Iterator uxact_list_lpush(Microtransaction microtransaction, Map attributes); + public native Integer uxact_list_lpush(Map attrs) throws HyperDexClientException; + public native Integer cond_list_lpush(Map attrs) throws HyperDexClientException; + public native Integer group_list_lpush(Map attrs) throws HyperDexClientException; + public native Integer list_rpush(Map attrs) throws HyperDexClientException; - public native Iterator uxact_list_rpush(Microtransaction microtransaction, Map attributes); + public native Integer uxact_list_rpush(Map attrs) throws HyperDexClientException; + public native Integer cond_list_rpush(Map attrs) throws HyperDexClientException; + public native Integer group_list_rpush(Map attrs) throws HyperDexClientException; + public native Integer set_add(Map attrs) throws HyperDexClientException; + public native Integer cond_set_add(Map attrs) throws HyperDexClientException; + public native Integer group_set_add(Map attrs) throws HyperDexClientException; + public native Integer set_remove(Map attrs) throws HyperDexClientException; + public native Integer cond_set_remove(Map attrs) throws HyperDexClientException; + public native Integer group_set_remove(Map attrs) throws HyperDexClientException; + public native Integer set_intersect(Map attrs) throws HyperDexClientException; + public native Integer cond_set_intersect(Map attrs) throws HyperDexClientException; + public native Integer group_set_intersect(Map attrs) throws HyperDexClientException; + public native Integer set_union(Map attrs) throws HyperDexClientException; + public native Integer cond_set_union(Map attrs) throws HyperDexClientException; + public native Integer group_set_union(Map attrs) throws HyperDexClientException; + public native Integer document_rename(Map attrs) throws HyperDexClientException; - public native Iterator uxact_document_rename(Microtransaction microtransaction, Map attributes); + public native Integer uxact_document_rename(Map attrs) throws HyperDexClientException; + public native Integer cond_document_rename(Map attrs) throws HyperDexClientException; + public native Integer group_document_rename(Map attrs) throws HyperDexClientException; + public native Integer document_unset(Map attrs) throws HyperDexClientException; - public native Iterator uxact_document_unset(Microtransaction microtransaction, Map attributes); + public native Integer uxact_document_unset(Map attrs) throws HyperDexClientException; + public native Integer cond_document_unset(Map attrs) throws HyperDexClientException; + public native Integer group_document_unset(Map attrs) throws HyperDexClientException; + public native Integer map_add(Map attrs) throws HyperDexClientException; + public native Integer cond_map_add(Map attrs) throws HyperDexClientException; + public native Integer group_map_add(Map attrs) throws HyperDexClientException; + public native Integer map_remove(Map attrs) throws HyperDexClientException; + public native Integer cond_map_remove(Map attrs) throws HyperDexClientException; + public native Integer group_map_remove(Map attrs) throws HyperDexClientException; + public native Integer map_atomic_add(Map attrs) throws HyperDexClientException; + public native Integer cond_map_atomic_add(Map attrs) throws HyperDexClientException; + public native Integer group_map_atomic_add(Map attrs) throws HyperDexClientException; + public native Integer map_atomic_sub(Map attrs) throws HyperDexClientException; + public native Integer cond_map_atomic_sub(Map attrs) throws HyperDexClientException; + public native Integer group_map_atomic_sub(Map attrs) throws HyperDexClientException; + public native Integer map_atomic_mul(Map attrs) throws HyperDexClientException; + public native Integer cond_map_atomic_mul(Map attrs) throws HyperDexClientException; + public native Integer group_map_atomic_mul(Map attrs) throws HyperDexClientException; + public native Integer map_atomic_div(Map attrs) throws HyperDexClientException; + public native Integer cond_map_atomic_div(Map attrs) throws HyperDexClientException; + public native Integer group_map_atomic_div(Map attrs) throws HyperDexClientException; + public native Integer map_atomic_mod(Map attrs) throws HyperDexClientException; + public native Integer cond_map_atomic_mod(Map attrs) throws HyperDexClientException; + public native Integer group_map_atomic_mod(Map attrs) throws HyperDexClientException; + public native Integer map_atomic_and(Map attrs) throws HyperDexClientException; + public native Integer cond_map_atomic_and(Map attrs) throws HyperDexClientException; + public native Integer group_map_atomic_and(Map attrs) throws HyperDexClientException; + public native Integer map_atomic_or(Map attrs) throws HyperDexClientException; + public native Integer cond_map_atomic_or(Map attrs) throws HyperDexClientException; + public native Integer group_map_atomic_or(Map attrs) throws HyperDexClientException; + public native Integer map_atomic_xor(Map attrs) throws HyperDexClientException; + public native Integer cond_map_atomic_xor(Map attrs) throws HyperDexClientException; + public native Integer group_map_atomic_xor(Map attrs) throws HyperDexClientException; + public native Integer map_string_prepend(Map attrs) throws HyperDexClientException; + public native Integer cond_map_string_prepend(Map attrs) throws HyperDexClientException; + public native Integer group_map_string_prepend(Map attrs) throws HyperDexClientException; + public native Integer map_string_append(Map attrs) throws HyperDexClientException; + public native Integer cond_map_string_append(Map attrs) throws HyperDexClientException; + public native Integer group_map_string_append(Map attrs) throws HyperDexClientException; + public native Integer map_atomic_min(Map attrs) throws HyperDexClientException; + public native Integer cond_map_atomic_min(Map attrs) throws HyperDexClientException; + public native Integer group_map_atomic_min(Map attrs) throws HyperDexClientException; + public native Integer map_atomic_max(Map attrs) throws HyperDexClientException; + public native Integer cond_map_atomic_max(Map attrs) throws HyperDexClientException; + public native Integer group_map_atomic_max(Map attrs) throws HyperDexClientException; + public native Integer search(Map attrs) throws HyperDexClientException; + public native Integer search_describe(Map attrs) throws HyperDexClientException; + public native Integer sorted_search(Map attrs) throws HyperDexClientException; + public native Integer count(Map attrs) throws HyperDexClientException; } diff --git a/bindings/java/org_hyperdex_client_Client.definitions.c b/bindings/java/org_hyperdex_client_Client.definitions.c index f6bc5b89..cf987a17 100644 --- a/bindings/java/org_hyperdex_client_Client.definitions.c +++ b/bindings/java/org_hyperdex_client_Client.definitions.c @@ -571,7 +571,6 @@ Java_org_hyperdex_client_Client_async_1put(JNIEnv* env, jobject obj, jstring spa return hyperdex_java_client_asynccall__spacename_key_attributes__status(env, obj, hyperdex_client_put, spacename, key, attributes); } - JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Client_async_1cond_1put(JNIEnv* env, jobject obj, jstring spacename, jobject key, jobject predicates, jobject attributes) { @@ -620,7 +619,6 @@ Java_org_hyperdex_client_Client_async_1atomic_1add(JNIEnv* env, jobject obj, jst return hyperdex_java_client_asynccall__spacename_key_attributes__status(env, obj, hyperdex_client_atomic_add, spacename, key, attributes); } - JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Client_async_1cond_1atomic_1add(JNIEnv* env, jobject obj, jstring spacename, jobject key, jobject predicates, jobject attributes) { @@ -639,7 +637,6 @@ Java_org_hyperdex_client_Client_async_1atomic_1sub(JNIEnv* env, jobject obj, jst return hyperdex_java_client_asynccall__spacename_key_attributes__status(env, obj, hyperdex_client_atomic_sub, spacename, key, attributes); } - JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Client_async_1cond_1atomic_1sub(JNIEnv* env, jobject obj, jstring spacename, jobject key, jobject predicates, jobject attributes) { @@ -658,7 +655,6 @@ Java_org_hyperdex_client_Client_async_1atomic_1mul(JNIEnv* env, jobject obj, jst return hyperdex_java_client_asynccall__spacename_key_attributes__status(env, obj, hyperdex_client_atomic_mul, spacename, key, attributes); } - JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Client_async_1cond_1atomic_1mul(JNIEnv* env, jobject obj, jstring spacename, jobject key, jobject predicates, jobject attributes) { @@ -677,7 +673,6 @@ Java_org_hyperdex_client_Client_async_1atomic_1div(JNIEnv* env, jobject obj, jst return hyperdex_java_client_asynccall__spacename_key_attributes__status(env, obj, hyperdex_client_atomic_div, spacename, key, attributes); } - JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Client_async_1cond_1atomic_1div(JNIEnv* env, jobject obj, jstring spacename, jobject key, jobject predicates, jobject attributes) { @@ -714,7 +709,6 @@ Java_org_hyperdex_client_Client_async_1atomic_1and(JNIEnv* env, jobject obj, jst return hyperdex_java_client_asynccall__spacename_key_attributes__status(env, obj, hyperdex_client_atomic_and, spacename, key, attributes); } - JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Client_async_1cond_1atomic_1and(JNIEnv* env, jobject obj, jstring spacename, jobject key, jobject predicates, jobject attributes) { @@ -733,7 +727,6 @@ Java_org_hyperdex_client_Client_async_1atomic_1or(JNIEnv* env, jobject obj, jstr return hyperdex_java_client_asynccall__spacename_key_attributes__status(env, obj, hyperdex_client_atomic_or, spacename, key, attributes); } - JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Client_async_1cond_1atomic_1or(JNIEnv* env, jobject obj, jstring spacename, jobject key, jobject predicates, jobject attributes) { @@ -806,7 +799,6 @@ Java_org_hyperdex_client_Client_async_1string_1prepend(JNIEnv* env, jobject obj, return hyperdex_java_client_asynccall__spacename_key_attributes__status(env, obj, hyperdex_client_string_prepend, spacename, key, attributes); } - JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Client_async_1cond_1string_1prepend(JNIEnv* env, jobject obj, jstring spacename, jobject key, jobject predicates, jobject attributes) { @@ -825,7 +817,6 @@ Java_org_hyperdex_client_Client_async_1string_1append(JNIEnv* env, jobject obj, return hyperdex_java_client_asynccall__spacename_key_attributes__status(env, obj, hyperdex_client_string_append, spacename, key, attributes); } - JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Client_async_1cond_1string_1append(JNIEnv* env, jobject obj, jstring spacename, jobject key, jobject predicates, jobject attributes) { @@ -844,7 +835,6 @@ Java_org_hyperdex_client_Client_async_1list_1lpush(JNIEnv* env, jobject obj, jst return hyperdex_java_client_asynccall__spacename_key_attributes__status(env, obj, hyperdex_client_list_lpush, spacename, key, attributes); } - JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Client_async_1cond_1list_1lpush(JNIEnv* env, jobject obj, jstring spacename, jobject key, jobject predicates, jobject attributes) { @@ -863,7 +853,6 @@ Java_org_hyperdex_client_Client_async_1list_1rpush(JNIEnv* env, jobject obj, jst return hyperdex_java_client_asynccall__spacename_key_attributes__status(env, obj, hyperdex_client_list_rpush, spacename, key, attributes); } - JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Client_async_1cond_1list_1rpush(JNIEnv* env, jobject obj, jstring spacename, jobject key, jobject predicates, jobject attributes) { @@ -954,7 +943,6 @@ Java_org_hyperdex_client_Client_async_1document_1rename(JNIEnv* env, jobject obj return hyperdex_java_client_asynccall__spacename_key_attributes__status(env, obj, hyperdex_client_document_rename, spacename, key, attributes); } - JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Client_async_1cond_1document_1rename(JNIEnv* env, jobject obj, jstring spacename, jobject key, jobject predicates, jobject attributes) { @@ -973,7 +961,6 @@ Java_org_hyperdex_client_Client_async_1document_1unset(JNIEnv* env, jobject obj, return hyperdex_java_client_asynccall__spacename_key_attributes__status(env, obj, hyperdex_client_document_unset, spacename, key, attributes); } - JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Client_async_1cond_1document_1unset(JNIEnv* env, jobject obj, jstring spacename, jobject key, jobject predicates, jobject attributes) { diff --git a/bindings/java/org_hyperdex_client_Microtransaction.c b/bindings/java/org_hyperdex_client_Microtransaction.c index 68e086cc..fb0f6183 100644 --- a/bindings/java/org_hyperdex_client_Microtransaction.c +++ b/bindings/java/org_hyperdex_client_Microtransaction.c @@ -38,48 +38,14 @@ #include "bindings/java/org_hyperdex_client_Microtransaction.h" JNIEXPORT HYPERDEX_API void JNICALL -Java_org_hyperdex_client_Microtransaction__1create(JNIEnv* env, jobject client, jstring _host, jint port) +Java_org_hyperdex_client_Microtransaction__1create(JNIEnv* env, jobject uxact, jobject client, jstring _host) { - jlong lptr; - const char* host; - struct hyperdex_client* ptr; - - lptr = (*env)->GetLongField(env, client, _client_ptr); - ERROR_CHECK_VOID(); - host = (*env)->GetStringUTFChars(env, _host, NULL); - ERROR_CHECK_VOID(); - ptr = hyperdex_client_create(host, port); - (*env)->ReleaseStringUTFChars(env, _host, host); - - if (!ptr) - { - hyperdex_java_out_of_memory(env); - return; - } - ERROR_CHECK_VOID(); - lptr = (long) ptr; - (*env)->SetLongField(env, client, _client_ptr, lptr); - ERROR_CHECK_VOID(); - assert(sizeof(long) >= sizeof(struct hyperdex_client*)); } JNIEXPORT HYPERDEX_API void JNICALL -Java_org_hyperdex_client_Microtransactoin__1destroy(JNIEnv* env, jobject client) +Java_org_hyperdex_client_Microtransactoin__1destroy(JNIEnv* env) { - jlong lptr; - struct hyperdex_client* ptr; - - lptr = (*env)->GetLongField(env, client, _client_ptr); - ERROR_CHECK_VOID(); - ptr = (struct hyperdex_client*)lptr; - - if (ptr) - { - hyperdex_client_destroy(ptr); - } - - (*env)->SetLongField(env, client, _client_ptr, 0); ERROR_CHECK_VOID(); } diff --git a/bindings/java/org_hyperdex_client_Microtransaction.definitions.c b/bindings/java/org_hyperdex_client_Microtransaction.definitions.c index c553a557..fb651eed 100644 --- a/bindings/java/org_hyperdex_client_Microtransaction.definitions.c +++ b/bindings/java/org_hyperdex_client_Microtransaction.definitions.c @@ -553,196 +553,80 @@ hyperdex_java_client_iterator__spacename_predicates_sortby_limit_maxmin__status_ ERROR_CHECK(0); return op; } - - - JNIEXPORT HYPERDEX_API jint JNICALL -Java_org_hyperdex_client_Client_uxact_1put(JNIEnv* env, jobject obj, jobject microtransaction, jobject attributes) +Java_org_hyperdex_client_Microtransaction_uxact_1put(JNIEnv* env , jobject microtransaction, jobject attributes) { - return hyperdex_java_client_microtransactioncall__microtransaction_attributes__(env, obj, hyperdex_client_uxact_put, microtransaction, attributes); + return hyperdex_java_uactx_microtransactioncall__microtransaction_attributes__(env, hyperdex_client_uxact_put, microtransaction, attributes); } - - - - - - - - JNIEXPORT HYPERDEX_API jint JNICALL -Java_org_hyperdex_client_Client_uxact_1atomic_1add(JNIEnv* env, jobject obj, jobject microtransaction, jobject attributes) +Java_org_hyperdex_client_Microtransaction_uxact_1atomic_1add(JNIEnv* env , jobject microtransaction, jobject attributes) { - return hyperdex_java_client_microtransactioncall__microtransaction_attributes__(env, obj, hyperdex_client_uxact_atomic_add, microtransaction, attributes); + return hyperdex_java_uactx_microtransactioncall__microtransaction_attributes__(env, hyperdex_client_uxact_atomic_add, microtransaction, attributes); } - - - JNIEXPORT HYPERDEX_API jint JNICALL -Java_org_hyperdex_client_Client_uxact_1atomic_1sub(JNIEnv* env, jobject obj, jobject microtransaction, jobject attributes) +Java_org_hyperdex_client_Microtransaction_uxact_1atomic_1sub(JNIEnv* env , jobject microtransaction, jobject attributes) { - return hyperdex_java_client_microtransactioncall__microtransaction_attributes__(env, obj, hyperdex_client_uxact_atomic_sub, microtransaction, attributes); + return hyperdex_java_uactx_microtransactioncall__microtransaction_attributes__(env, hyperdex_client_uxact_atomic_sub, microtransaction, attributes); } - - - JNIEXPORT HYPERDEX_API jint JNICALL -Java_org_hyperdex_client_Client_uxact_1atomic_1mul(JNIEnv* env, jobject obj, jobject microtransaction, jobject attributes) +Java_org_hyperdex_client_Microtransaction_uxact_1atomic_1mul(JNIEnv* env , jobject microtransaction, jobject attributes) { - return hyperdex_java_client_microtransactioncall__microtransaction_attributes__(env, obj, hyperdex_client_uxact_atomic_mul, microtransaction, attributes); + return hyperdex_java_uactx_microtransactioncall__microtransaction_attributes__(env, hyperdex_client_uxact_atomic_mul, microtransaction, attributes); } - - - JNIEXPORT HYPERDEX_API jint JNICALL -Java_org_hyperdex_client_Client_uxact_1atomic_1div(JNIEnv* env, jobject obj, jobject microtransaction, jobject attributes) +Java_org_hyperdex_client_Microtransaction_uxact_1atomic_1div(JNIEnv* env , jobject microtransaction, jobject attributes) { - return hyperdex_java_client_microtransactioncall__microtransaction_attributes__(env, obj, hyperdex_client_uxact_atomic_div, microtransaction, attributes); + return hyperdex_java_uactx_microtransactioncall__microtransaction_attributes__(env, hyperdex_client_uxact_atomic_div, microtransaction, attributes); } - - - - - - JNIEXPORT HYPERDEX_API jint JNICALL -Java_org_hyperdex_client_Client_uxact_1atomic_1and(JNIEnv* env, jobject obj, jobject microtransaction, jobject attributes) +Java_org_hyperdex_client_Microtransaction_uxact_1atomic_1and(JNIEnv* env , jobject microtransaction, jobject attributes) { - return hyperdex_java_client_microtransactioncall__microtransaction_attributes__(env, obj, hyperdex_client_uxact_atomic_and, microtransaction, attributes); + return hyperdex_java_uactx_microtransactioncall__microtransaction_attributes__(env, hyperdex_client_uxact_atomic_and, microtransaction, attributes); } - - - JNIEXPORT HYPERDEX_API jint JNICALL -Java_org_hyperdex_client_Client_uxact_1atomic_1or(JNIEnv* env, jobject obj, jobject microtransaction, jobject attributes) +Java_org_hyperdex_client_Microtransaction_uxact_1atomic_1or(JNIEnv* env , jobject microtransaction, jobject attributes) { - return hyperdex_java_client_microtransactioncall__microtransaction_attributes__(env, obj, hyperdex_client_uxact_atomic_or, microtransaction, attributes); + return hyperdex_java_uactx_microtransactioncall__microtransaction_attributes__(env, hyperdex_client_uxact_atomic_or, microtransaction, attributes); } - - - - - - - - - - - - JNIEXPORT HYPERDEX_API jint JNICALL -Java_org_hyperdex_client_Client_uxact_1string_1prepend(JNIEnv* env, jobject obj, jobject microtransaction, jobject attributes) +Java_org_hyperdex_client_Microtransaction_uxact_1string_1prepend(JNIEnv* env , jobject microtransaction, jobject attributes) { - return hyperdex_java_client_microtransactioncall__microtransaction_attributes__(env, obj, hyperdex_client_uxact_string_prepend, microtransaction, attributes); + return hyperdex_java_uactx_microtransactioncall__microtransaction_attributes__(env, hyperdex_client_uxact_string_prepend, microtransaction, attributes); } - - - JNIEXPORT HYPERDEX_API jint JNICALL -Java_org_hyperdex_client_Client_uxact_1string_1append(JNIEnv* env, jobject obj, jobject microtransaction, jobject attributes) +Java_org_hyperdex_client_Microtransaction_uxact_1string_1append(JNIEnv* env , jobject microtransaction, jobject attributes) { - return hyperdex_java_client_microtransactioncall__microtransaction_attributes__(env, obj, hyperdex_client_uxact_string_append, microtransaction, attributes); + return hyperdex_java_uactx_microtransactioncall__microtransaction_attributes__(env, hyperdex_client_uxact_string_append, microtransaction, attributes); } - - - JNIEXPORT HYPERDEX_API jint JNICALL -Java_org_hyperdex_client_Client_uxact_1list_1lpush(JNIEnv* env, jobject obj, jobject microtransaction, jobject attributes) +Java_org_hyperdex_client_Microtransaction_uxact_1list_1lpush(JNIEnv* env , jobject microtransaction, jobject attributes) { - return hyperdex_java_client_microtransactioncall__microtransaction_attributes__(env, obj, hyperdex_client_uxact_list_lpush, microtransaction, attributes); + return hyperdex_java_uactx_microtransactioncall__microtransaction_attributes__(env, hyperdex_client_uxact_list_lpush, microtransaction, attributes); } - - - JNIEXPORT HYPERDEX_API jint JNICALL -Java_org_hyperdex_client_Client_uxact_1list_1rpush(JNIEnv* env, jobject obj, jobject microtransaction, jobject attributes) +Java_org_hyperdex_client_Microtransaction_uxact_1list_1rpush(JNIEnv* env , jobject microtransaction, jobject attributes) { - return hyperdex_java_client_microtransactioncall__microtransaction_attributes__(env, obj, hyperdex_client_uxact_list_rpush, microtransaction, attributes); + return hyperdex_java_uactx_microtransactioncall__microtransaction_attributes__(env, hyperdex_client_uxact_list_rpush, microtransaction, attributes); } - - - - - - - - - - - - - - - JNIEXPORT HYPERDEX_API jint JNICALL -Java_org_hyperdex_client_Client_uxact_1document_1rename(JNIEnv* env, jobject obj, jobject microtransaction, jobject attributes) +Java_org_hyperdex_client_Microtransaction_uxact_1document_1rename(JNIEnv* env , jobject microtransaction, jobject attributes) { - return hyperdex_java_client_microtransactioncall__microtransaction_attributes__(env, obj, hyperdex_client_uxact_document_rename, microtransaction, attributes); + return hyperdex_java_uactx_microtransactioncall__microtransaction_attributes__(env, hyperdex_client_uxact_document_rename, microtransaction, attributes); } - - - JNIEXPORT HYPERDEX_API jint JNICALL -Java_org_hyperdex_client_Client_uxact_1document_1unset(JNIEnv* env, jobject obj, jobject microtransaction, jobject attributes) +Java_org_hyperdex_client_Microtransaction_uxact_1document_1unset(JNIEnv* env , jobject microtransaction, jobject attributes) { - return hyperdex_java_client_microtransactioncall__microtransaction_attributes__(env, obj, hyperdex_client_uxact_document_unset, microtransaction, attributes); + return hyperdex_java_uactx_microtransactioncall__microtransaction_attributes__(env, hyperdex_client_uxact_document_unset, microtransaction, attributes); } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/bindings/java/org_hyperdex_client_Microtransaction.h b/bindings/java/org_hyperdex_client_Microtransaction.h index 90c034b7..11c7e2cb 100644 --- a/bindings/java/org_hyperdex_client_Microtransaction.h +++ b/bindings/java/org_hyperdex_client_Microtransaction.h @@ -15,109 +15,1037 @@ extern "C" { JNIEXPORT HYPERDEX_API void JNICALL Java_org_hyperdex_client_Microtransaction__1create (JNIEnv *, jobject, jobject, jstring); +/* + * Class: org_hyperdex_client_Microtransaction + * Method: get + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_get + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: get_partial + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_get_1partial + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: put + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_put + (JNIEnv *, jobject, jobject); + /* * Class: org_hyperdex_client_Microtransaction * Method: uxact_put - * Signature: (Lorg/hyperdex/client/Microtransaction;Ljava/util/Map;)Lorg/hyperdex/client/Iterator; + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; */ JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_uxact_1put - (JNIEnv *, jobject, jobject, jobject); + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_put + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1put + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_put_or_create + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1put_1or_1create + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_put + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1put + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: put_if_not_exist + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_put_1if_1not_1exist + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: del + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_del + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_del + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1del + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_del + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1del + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: atomic_add + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_atomic_1add + (JNIEnv *, jobject, jobject); /* * Class: org_hyperdex_client_Microtransaction * Method: uxact_atomic_add - * Signature: (Lorg/hyperdex/client/Microtransaction;Ljava/util/Map;)Lorg/hyperdex/client/Iterator; + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; */ JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_uxact_1atomic_1add - (JNIEnv *, jobject, jobject, jobject); + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_atomic_add + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1atomic_1add + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_atomic_add + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1atomic_1add + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: atomic_sub + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_atomic_1sub + (JNIEnv *, jobject, jobject); /* * Class: org_hyperdex_client_Microtransaction * Method: uxact_atomic_sub - * Signature: (Lorg/hyperdex/client/Microtransaction;Ljava/util/Map;)Lorg/hyperdex/client/Iterator; + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; */ JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_uxact_1atomic_1sub - (JNIEnv *, jobject, jobject, jobject); + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_atomic_sub + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1atomic_1sub + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_atomic_sub + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1atomic_1sub + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: atomic_mul + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_atomic_1mul + (JNIEnv *, jobject, jobject); /* * Class: org_hyperdex_client_Microtransaction * Method: uxact_atomic_mul - * Signature: (Lorg/hyperdex/client/Microtransaction;Ljava/util/Map;)Lorg/hyperdex/client/Iterator; + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; */ JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_uxact_1atomic_1mul - (JNIEnv *, jobject, jobject, jobject); + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_atomic_mul + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1atomic_1mul + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_atomic_mul + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1atomic_1mul + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: atomic_div + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_atomic_1div + (JNIEnv *, jobject, jobject); /* * Class: org_hyperdex_client_Microtransaction * Method: uxact_atomic_div - * Signature: (Lorg/hyperdex/client/Microtransaction;Ljava/util/Map;)Lorg/hyperdex/client/Iterator; + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; */ JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_uxact_1atomic_1div - (JNIEnv *, jobject, jobject, jobject); + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_atomic_div + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1atomic_1div + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_atomic_div + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1atomic_1div + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: atomic_mod + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_atomic_1mod + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_atomic_mod + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1atomic_1mod + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_atomic_mod + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1atomic_1mod + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: atomic_and + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_atomic_1and + (JNIEnv *, jobject, jobject); /* * Class: org_hyperdex_client_Microtransaction * Method: uxact_atomic_and - * Signature: (Lorg/hyperdex/client/Microtransaction;Ljava/util/Map;)Lorg/hyperdex/client/Iterator; + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; */ JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_uxact_1atomic_1and - (JNIEnv *, jobject, jobject, jobject); + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_atomic_and + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1atomic_1and + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_atomic_and + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1atomic_1and + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: atomic_or + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_atomic_1or + (JNIEnv *, jobject, jobject); /* * Class: org_hyperdex_client_Microtransaction * Method: uxact_atomic_or - * Signature: (Lorg/hyperdex/client/Microtransaction;Ljava/util/Map;)Lorg/hyperdex/client/Iterator; + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; */ JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_uxact_1atomic_1or - (JNIEnv *, jobject, jobject, jobject); + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_atomic_or + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1atomic_1or + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_atomic_or + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1atomic_1or + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: atomic_xor + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_atomic_1xor + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_atomic_xor + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1atomic_1xor + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_atomic_xor + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1atomic_1xor + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: atomic_min + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_atomic_1min + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_atomic_min + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1atomic_1min + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_atomic_min + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1atomic_1min + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: atomic_max + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_atomic_1max + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_atomic_max + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1atomic_1max + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_atomic_max + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1atomic_1max + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: string_prepend + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_string_1prepend + (JNIEnv *, jobject, jobject); /* * Class: org_hyperdex_client_Microtransaction * Method: uxact_string_prepend - * Signature: (Lorg/hyperdex/client/Microtransaction;Ljava/util/Map;)Lorg/hyperdex/client/Iterator; + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; */ JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_uxact_1string_1prepend - (JNIEnv *, jobject, jobject, jobject); + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_string_prepend + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1string_1prepend + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_string_prepend + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1string_1prepend + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: string_append + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_string_1append + (JNIEnv *, jobject, jobject); /* * Class: org_hyperdex_client_Microtransaction * Method: uxact_string_append - * Signature: (Lorg/hyperdex/client/Microtransaction;Ljava/util/Map;)Lorg/hyperdex/client/Iterator; + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; */ JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_uxact_1string_1append - (JNIEnv *, jobject, jobject, jobject); + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_string_append + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1string_1append + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_string_append + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1string_1append + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: list_lpush + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_list_1lpush + (JNIEnv *, jobject, jobject); /* * Class: org_hyperdex_client_Microtransaction * Method: uxact_list_lpush - * Signature: (Lorg/hyperdex/client/Microtransaction;Ljava/util/Map;)Lorg/hyperdex/client/Iterator; + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; */ JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_uxact_1list_1lpush - (JNIEnv *, jobject, jobject, jobject); + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_list_lpush + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1list_1lpush + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_list_lpush + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1list_1lpush + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: list_rpush + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_list_1rpush + (JNIEnv *, jobject, jobject); /* * Class: org_hyperdex_client_Microtransaction * Method: uxact_list_rpush - * Signature: (Lorg/hyperdex/client/Microtransaction;Ljava/util/Map;)Lorg/hyperdex/client/Iterator; + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; */ JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_uxact_1list_1rpush - (JNIEnv *, jobject, jobject, jobject); + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_list_rpush + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1list_1rpush + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_list_rpush + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1list_1rpush + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: set_add + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_set_1add + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_set_add + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1set_1add + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_set_add + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1set_1add + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: set_remove + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_set_1remove + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_set_remove + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1set_1remove + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_set_remove + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1set_1remove + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: set_intersect + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_set_1intersect + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_set_intersect + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1set_1intersect + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_set_intersect + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1set_1intersect + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: set_union + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_set_1union + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_set_union + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1set_1union + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_set_union + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1set_1union + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: document_rename + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_document_1rename + (JNIEnv *, jobject, jobject); /* * Class: org_hyperdex_client_Microtransaction * Method: uxact_document_rename - * Signature: (Lorg/hyperdex/client/Microtransaction;Ljava/util/Map;)Lorg/hyperdex/client/Iterator; + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; */ JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_uxact_1document_1rename - (JNIEnv *, jobject, jobject, jobject); + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_document_rename + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1document_1rename + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_document_rename + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1document_1rename + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: document_unset + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_document_1unset + (JNIEnv *, jobject, jobject); /* * Class: org_hyperdex_client_Microtransaction * Method: uxact_document_unset - * Signature: (Lorg/hyperdex/client/Microtransaction;Ljava/util/Map;)Lorg/hyperdex/client/Iterator; + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; */ JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_uxact_1document_1unset - (JNIEnv *, jobject, jobject, jobject); + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_document_unset + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1document_1unset + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_document_unset + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1document_1unset + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: map_add + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_map_1add + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_map_add + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1map_1add + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_map_add + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1map_1add + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: map_remove + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_map_1remove + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_map_remove + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1map_1remove + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_map_remove + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1map_1remove + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: map_atomic_add + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_map_1atomic_1add + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_map_atomic_add + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1map_1atomic_1add + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_map_atomic_add + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1map_1atomic_1add + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: map_atomic_sub + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_map_1atomic_1sub + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_map_atomic_sub + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1map_1atomic_1sub + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_map_atomic_sub + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1map_1atomic_1sub + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: map_atomic_mul + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_map_1atomic_1mul + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_map_atomic_mul + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1map_1atomic_1mul + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_map_atomic_mul + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1map_1atomic_1mul + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: map_atomic_div + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_map_1atomic_1div + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_map_atomic_div + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1map_1atomic_1div + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_map_atomic_div + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1map_1atomic_1div + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: map_atomic_mod + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_map_1atomic_1mod + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_map_atomic_mod + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1map_1atomic_1mod + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_map_atomic_mod + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1map_1atomic_1mod + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: map_atomic_and + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_map_1atomic_1and + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_map_atomic_and + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1map_1atomic_1and + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_map_atomic_and + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1map_1atomic_1and + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: map_atomic_or + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_map_1atomic_1or + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_map_atomic_or + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1map_1atomic_1or + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_map_atomic_or + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1map_1atomic_1or + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: map_atomic_xor + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_map_1atomic_1xor + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_map_atomic_xor + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1map_1atomic_1xor + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_map_atomic_xor + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1map_1atomic_1xor + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: map_string_prepend + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_map_1string_1prepend + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_map_string_prepend + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1map_1string_1prepend + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_map_string_prepend + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1map_1string_1prepend + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: map_string_append + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_map_1string_1append + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_map_string_append + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1map_1string_1append + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_map_string_append + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1map_1string_1append + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: map_atomic_min + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_map_1atomic_1min + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_map_atomic_min + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1map_1atomic_1min + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_map_atomic_min + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1map_1atomic_1min + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: map_atomic_max + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_map_1atomic_1max + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: cond_map_atomic_max + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_cond_1map_1atomic_1max + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: group_map_atomic_max + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_group_1map_1atomic_1max + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: search + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_search + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: search_describe + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_search_1describe + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: sorted_search + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_sorted_1search + (JNIEnv *, jobject, jobject); + +/* + * Class: org_hyperdex_client_Microtransaction + * Method: count + * Signature: (Ljava/util/Map;)Ljava/lang/Integer; + */ +JNIEXPORT HYPERDEX_API jobject JNICALL Java_org_hyperdex_client_Microtransaction_count + (JNIEnv *, jobject, jobject); #ifdef __cplusplus } diff --git a/doc/java/client/ops.tex b/doc/java/client/ops.tex index 9f987cf0..a3205104 100644 --- a/doc/java/client/ops.tex +++ b/doc/java/client/ops.tex @@ -191,28 +191,6 @@ \subsubsection{\code{async\_put}} \paragraph{See also:} This is the asynchronous form of \code{put}. -%%%%%%%%%%%%%%%%%%%% uxact_put %%%%%%%%%%%%%%%%%%%% -\pagebreak -\subsubsection{\code{uxact\_put}} -\label{api:java:uxact_put} -\index{uxact\_put!Java API} -\input{\topdir/client/fragments/uxact_put} - -\paragraph{Definition:} -\begin{javacode} -\end{javacode} - -\paragraph{Parameters:} -\begin{itemize}[noitemsep] -\item \code{Microtransaction microtransaction}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_microtransaction} -\item \code{Map attributes}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_attributes} -\end{itemize} - -\paragraph{Returns:} -\input{\topdir/java/client/fragments/return_microtransactioncall__} - %%%%%%%%%%%%%%%%%%%% cond_put %%%%%%%%%%%%%%%%%%%% \pagebreak \subsubsection{\code{cond\_put}} @@ -667,28 +645,6 @@ \subsubsection{\code{async\_atomic\_add}} \paragraph{See also:} This is the asynchronous form of \code{atomic\_add}. -%%%%%%%%%%%%%%%%%%%% uxact_atomic_add %%%%%%%%%%%%%%%%%%%% -\pagebreak -\subsubsection{\code{uxact\_atomic\_add}} -\label{api:java:uxact_atomic_add} -\index{uxact\_atomic\_add!Java API} -\input{\topdir/client/fragments/uxact_atomic_add} - -\paragraph{Definition:} -\begin{javacode} -\end{javacode} - -\paragraph{Parameters:} -\begin{itemize}[noitemsep] -\item \code{Microtransaction microtransaction}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_microtransaction} -\item \code{Map attributes}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_attributes} -\end{itemize} - -\paragraph{Returns:} -\input{\topdir/java/client/fragments/return_microtransactioncall__} - %%%%%%%%%%%%%%%%%%%% cond_atomic_add %%%%%%%%%%%%%%%%%%%% \pagebreak \subsubsection{\code{cond\_atomic\_add}} @@ -866,28 +822,6 @@ \subsubsection{\code{async\_atomic\_sub}} \paragraph{See also:} This is the asynchronous form of \code{atomic\_sub}. -%%%%%%%%%%%%%%%%%%%% uxact_atomic_sub %%%%%%%%%%%%%%%%%%%% -\pagebreak -\subsubsection{\code{uxact\_atomic\_sub}} -\label{api:java:uxact_atomic_sub} -\index{uxact\_atomic\_sub!Java API} -\input{\topdir/client/fragments/uxact_atomic_sub} - -\paragraph{Definition:} -\begin{javacode} -\end{javacode} - -\paragraph{Parameters:} -\begin{itemize}[noitemsep] -\item \code{Microtransaction microtransaction}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_microtransaction} -\item \code{Map attributes}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_attributes} -\end{itemize} - -\paragraph{Returns:} -\input{\topdir/java/client/fragments/return_microtransactioncall__} - %%%%%%%%%%%%%%%%%%%% cond_atomic_sub %%%%%%%%%%%%%%%%%%%% \pagebreak \subsubsection{\code{cond\_atomic\_sub}} @@ -1065,28 +999,6 @@ \subsubsection{\code{async\_atomic\_mul}} \paragraph{See also:} This is the asynchronous form of \code{atomic\_mul}. -%%%%%%%%%%%%%%%%%%%% uxact_atomic_mul %%%%%%%%%%%%%%%%%%%% -\pagebreak -\subsubsection{\code{uxact\_atomic\_mul}} -\label{api:java:uxact_atomic_mul} -\index{uxact\_atomic\_mul!Java API} -\input{\topdir/client/fragments/uxact_atomic_mul} - -\paragraph{Definition:} -\begin{javacode} -\end{javacode} - -\paragraph{Parameters:} -\begin{itemize}[noitemsep] -\item \code{Microtransaction microtransaction}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_microtransaction} -\item \code{Map attributes}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_attributes} -\end{itemize} - -\paragraph{Returns:} -\input{\topdir/java/client/fragments/return_microtransactioncall__} - %%%%%%%%%%%%%%%%%%%% cond_atomic_mul %%%%%%%%%%%%%%%%%%%% \pagebreak \subsubsection{\code{cond\_atomic\_mul}} @@ -1264,28 +1176,6 @@ \subsubsection{\code{async\_atomic\_div}} \paragraph{See also:} This is the asynchronous form of \code{atomic\_div}. -%%%%%%%%%%%%%%%%%%%% uxact_atomic_div %%%%%%%%%%%%%%%%%%%% -\pagebreak -\subsubsection{\code{uxact\_atomic\_div}} -\label{api:java:uxact_atomic_div} -\index{uxact\_atomic\_div!Java API} -\input{\topdir/client/fragments/uxact_atomic_div} - -\paragraph{Definition:} -\begin{javacode} -\end{javacode} - -\paragraph{Parameters:} -\begin{itemize}[noitemsep] -\item \code{Microtransaction microtransaction}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_microtransaction} -\item \code{Map attributes}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_attributes} -\end{itemize} - -\paragraph{Returns:} -\input{\topdir/java/client/fragments/return_microtransactioncall__} - %%%%%%%%%%%%%%%%%%%% cond_atomic_div %%%%%%%%%%%%%%%%%%%% \pagebreak \subsubsection{\code{cond\_atomic\_div}} @@ -1640,28 +1530,6 @@ \subsubsection{\code{async\_atomic\_and}} \paragraph{See also:} This is the asynchronous form of \code{atomic\_and}. -%%%%%%%%%%%%%%%%%%%% uxact_atomic_and %%%%%%%%%%%%%%%%%%%% -\pagebreak -\subsubsection{\code{uxact\_atomic\_and}} -\label{api:java:uxact_atomic_and} -\index{uxact\_atomic\_and!Java API} -\input{\topdir/client/fragments/uxact_atomic_and} - -\paragraph{Definition:} -\begin{javacode} -\end{javacode} - -\paragraph{Parameters:} -\begin{itemize}[noitemsep] -\item \code{Microtransaction microtransaction}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_microtransaction} -\item \code{Map attributes}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_attributes} -\end{itemize} - -\paragraph{Returns:} -\input{\topdir/java/client/fragments/return_microtransactioncall__} - %%%%%%%%%%%%%%%%%%%% cond_atomic_and %%%%%%%%%%%%%%%%%%%% \pagebreak \subsubsection{\code{cond\_atomic\_and}} @@ -1839,28 +1707,6 @@ \subsubsection{\code{async\_atomic\_or}} \paragraph{See also:} This is the asynchronous form of \code{atomic\_or}. -%%%%%%%%%%%%%%%%%%%% uxact_atomic_or %%%%%%%%%%%%%%%%%%%% -\pagebreak -\subsubsection{\code{uxact\_atomic\_or}} -\label{api:java:uxact_atomic_or} -\index{uxact\_atomic\_or!Java API} -\input{\topdir/client/fragments/uxact_atomic_or} - -\paragraph{Definition:} -\begin{javacode} -\end{javacode} - -\paragraph{Parameters:} -\begin{itemize}[noitemsep] -\item \code{Microtransaction microtransaction}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_microtransaction} -\item \code{Map attributes}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_attributes} -\end{itemize} - -\paragraph{Returns:} -\input{\topdir/java/client/fragments/return_microtransactioncall__} - %%%%%%%%%%%%%%%%%%%% cond_atomic_or %%%%%%%%%%%%%%%%%%%% \pagebreak \subsubsection{\code{cond\_atomic\_or}} @@ -2569,28 +2415,6 @@ \subsubsection{\code{async\_string\_prepend}} \paragraph{See also:} This is the asynchronous form of \code{string\_prepend}. -%%%%%%%%%%%%%%%%%%%% uxact_string_prepend %%%%%%%%%%%%%%%%%%%% -\pagebreak -\subsubsection{\code{uxact\_string\_prepend}} -\label{api:java:uxact_string_prepend} -\index{uxact\_string\_prepend!Java API} -\input{\topdir/client/fragments/uxact_string_prepend} - -\paragraph{Definition:} -\begin{javacode} -\end{javacode} - -\paragraph{Parameters:} -\begin{itemize}[noitemsep] -\item \code{Microtransaction microtransaction}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_microtransaction} -\item \code{Map attributes}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_attributes} -\end{itemize} - -\paragraph{Returns:} -\input{\topdir/java/client/fragments/return_microtransactioncall__} - %%%%%%%%%%%%%%%%%%%% cond_string_prepend %%%%%%%%%%%%%%%%%%%% \pagebreak \subsubsection{\code{cond\_string\_prepend}} @@ -2768,28 +2592,6 @@ \subsubsection{\code{async\_string\_append}} \paragraph{See also:} This is the asynchronous form of \code{string\_append}. -%%%%%%%%%%%%%%%%%%%% uxact_string_append %%%%%%%%%%%%%%%%%%%% -\pagebreak -\subsubsection{\code{uxact\_string\_append}} -\label{api:java:uxact_string_append} -\index{uxact\_string\_append!Java API} -\input{\topdir/client/fragments/uxact_string_append} - -\paragraph{Definition:} -\begin{javacode} -\end{javacode} - -\paragraph{Parameters:} -\begin{itemize}[noitemsep] -\item \code{Microtransaction microtransaction}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_microtransaction} -\item \code{Map attributes}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_attributes} -\end{itemize} - -\paragraph{Returns:} -\input{\topdir/java/client/fragments/return_microtransactioncall__} - %%%%%%%%%%%%%%%%%%%% cond_string_append %%%%%%%%%%%%%%%%%%%% \pagebreak \subsubsection{\code{cond\_string\_append}} @@ -2967,28 +2769,6 @@ \subsubsection{\code{async\_list\_lpush}} \paragraph{See also:} This is the asynchronous form of \code{list\_lpush}. -%%%%%%%%%%%%%%%%%%%% uxact_list_lpush %%%%%%%%%%%%%%%%%%%% -\pagebreak -\subsubsection{\code{uxact\_list\_lpush}} -\label{api:java:uxact_list_lpush} -\index{uxact\_list\_lpush!Java API} -\input{\topdir/client/fragments/uxact_list_lpush} - -\paragraph{Definition:} -\begin{javacode} -\end{javacode} - -\paragraph{Parameters:} -\begin{itemize}[noitemsep] -\item \code{Microtransaction microtransaction}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_microtransaction} -\item \code{Map attributes}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_attributes} -\end{itemize} - -\paragraph{Returns:} -\input{\topdir/java/client/fragments/return_microtransactioncall__} - %%%%%%%%%%%%%%%%%%%% cond_list_lpush %%%%%%%%%%%%%%%%%%%% \pagebreak \subsubsection{\code{cond\_list\_lpush}} @@ -3166,28 +2946,6 @@ \subsubsection{\code{async\_list\_rpush}} \paragraph{See also:} This is the asynchronous form of \code{list\_rpush}. -%%%%%%%%%%%%%%%%%%%% uxact_list_rpush %%%%%%%%%%%%%%%%%%%% -\pagebreak -\subsubsection{\code{uxact\_list\_rpush}} -\label{api:java:uxact_list_rpush} -\index{uxact\_list\_rpush!Java API} -\input{\topdir/client/fragments/uxact_list_rpush} - -\paragraph{Definition:} -\begin{javacode} -\end{javacode} - -\paragraph{Parameters:} -\begin{itemize}[noitemsep] -\item \code{Microtransaction microtransaction}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_microtransaction} -\item \code{Map attributes}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_attributes} -\end{itemize} - -\paragraph{Returns:} -\input{\topdir/java/client/fragments/return_microtransactioncall__} - %%%%%%%%%%%%%%%%%%%% cond_list_rpush %%%%%%%%%%%%%%%%%%%% \pagebreak \subsubsection{\code{cond\_list\_rpush}} @@ -4073,28 +3831,6 @@ \subsubsection{\code{async\_document\_rename}} \paragraph{See also:} This is the asynchronous form of \code{document\_rename}. -%%%%%%%%%%%%%%%%%%%% uxact_document_rename %%%%%%%%%%%%%%%%%%%% -\pagebreak -\subsubsection{\code{uxact\_document\_rename}} -\label{api:java:uxact_document_rename} -\index{uxact\_document\_rename!Java API} -\input{\topdir/client/fragments/uxact_document_rename} - -\paragraph{Definition:} -\begin{javacode} -\end{javacode} - -\paragraph{Parameters:} -\begin{itemize}[noitemsep] -\item \code{Microtransaction microtransaction}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_microtransaction} -\item \code{Map attributes}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_attributes} -\end{itemize} - -\paragraph{Returns:} -\input{\topdir/java/client/fragments/return_microtransactioncall__} - %%%%%%%%%%%%%%%%%%%% cond_document_rename %%%%%%%%%%%%%%%%%%%% \pagebreak \subsubsection{\code{cond\_document\_rename}} @@ -4272,28 +4008,6 @@ \subsubsection{\code{async\_document\_unset}} \paragraph{See also:} This is the asynchronous form of \code{document\_unset}. -%%%%%%%%%%%%%%%%%%%% uxact_document_unset %%%%%%%%%%%%%%%%%%%% -\pagebreak -\subsubsection{\code{uxact\_document\_unset}} -\label{api:java:uxact_document_unset} -\index{uxact\_document\_unset!Java API} -\input{\topdir/client/fragments/uxact_document_unset} - -\paragraph{Definition:} -\begin{javacode} -\end{javacode} - -\paragraph{Parameters:} -\begin{itemize}[noitemsep] -\item \code{Microtransaction microtransaction}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_microtransaction} -\item \code{Map attributes}\\ -\input{\topdir/java/client/fragments/in_microtransactioncall_attributes} -\end{itemize} - -\paragraph{Returns:} -\input{\topdir/java/client/fragments/return_microtransactioncall__} - %%%%%%%%%%%%%%%%%%%% cond_document_unset %%%%%%%%%%%%%%%%%%%% \pagebreak \subsubsection{\code{cond\_document\_unset}} diff --git a/test/java/DataTypeDocument.java b/test/java/DataTypeDocument.java index 0746a7d0..09d2c776 100644 --- a/test/java/DataTypeDocument.java +++ b/test/java/DataTypeDocument.java @@ -18,7 +18,9 @@ public void setUpHyperdexClient() throws Exception { } @After - public void destroyHyperdexClient() { + public void destroyHyperdexClient() throws HyperDexClientException { + Map match_all = new HashMap(); + c.group_del("kv", match_all); c = null; } @@ -47,16 +49,6 @@ public void insertEmptyDocument() throws HyperDexClientException { Map expected = new HashMap(); expected.put("v", new Document("{}")); - String str1 = expected.get("v").toString(); - String str2 = get.get("v").toString(); - - assertEquals(str1.length(), str2.length()); - for(int i = 0; i < str1.length(); ++i) - { - assertEquals(str1.charAt(i), str2.charAt(i)); - } - - assertEquals(expected.get("v"), get.get("v")); assertEquals(expected, get); } diff --git a/test/java/DataTypeInt.java b/test/java/DataTypeInt.java index 3d96d015..1e83938d 100755 --- a/test/java/DataTypeInt.java +++ b/test/java/DataTypeInt.java @@ -28,7 +28,9 @@ public void setUpHyperdexClient() throws Exception { } @After - public void destroyHyperdexClient() { + public void destroyHyperdexClient() throws HyperDexClientException { + Map match_all = new HashMap(); + c.group_del("kv", match_all); c = null; } diff --git a/test/java/DataTypeString.java b/test/java/DataTypeString.java index 4f82608d..b3f12a5c 100755 --- a/test/java/DataTypeString.java +++ b/test/java/DataTypeString.java @@ -28,7 +28,9 @@ public void setUpHyperdexClient() throws Exception { } @After - public void destroyHyperdexClient() { + public void destroyHyperdexClient() throws HyperDexClientException { + Map match_all = new HashMap(); + c.group_del("kv", match_all); c = null; } @@ -77,7 +79,7 @@ public void insertBytes() throws HyperDexClientException { public void correctByteString() { String original = "42 is the answer"; - ByteString bstring = new ByteString(bstring.getBytes()); + ByteString bstring = new ByteString(original.getBytes()); String result = bstring.toString(); assertEquals(original, result); diff --git a/test/java/Microtransactions.java b/test/java/Microtransactions.java index a9183f09..811a8b53 100644 --- a/test/java/Microtransactions.java +++ b/test/java/Microtransactions.java @@ -2,6 +2,7 @@ import org.hyperdex.client.Client; import org.hyperdex.client.Document; +import org.hyperdex.client.Microtransaction; import org.hyperdex.client.HyperDexClientException; import org.junit.*; @@ -24,7 +25,7 @@ public void destroyHyperdexClient() { @Test public void singleOperation() throws HyperDexClientException { - Microtransaction utx = c.initMicrotransaction(); + Microtransaction utx = c.initMicrotransaction("kv"); } } diff --git a/test/sh/bindings.java.Microtransactions.sh b/test/sh/bindings.java.Microtransactions.sh old mode 100644 new mode 100755