| 45 | } |
| 46 | |
| 47 | JNIEXPORT jbyteArray NativeGetRow(JNIEnv* env, jobject jobj, jlong jresult) { |
| 48 | tera::ResultStream* result = reinterpret_cast<tera::ResultStream*>(jresult); |
| 49 | jbyteArray jrow; |
| 50 | if (result == NULL) { |
| 51 | std::string msg = "result not initialized."; |
| 52 | SendErrorJ(env, jobj, msg); |
| 53 | return NULL; |
| 54 | } |
| 55 | std::string row = result->RowName(); |
| 56 | StringToJByteArray(env, row, &jrow); |
| 57 | return jrow; |
| 58 | } |
| 59 | |
| 60 | JNIEXPORT jbyteArray NativeGetFamily(JNIEnv* env, jobject jobj, jlong jresult) { |
| 61 | tera::ResultStream* result = reinterpret_cast<tera::ResultStream*>(jresult); |
nothing calls this directly
no test coverage detected