MCPcopy Create free account
hub / github.com/baidu/tera / jbyteArray NativeGetRow

Function jbyteArray NativeGetRow

src/sdk/java/native-src/jni_tera_result_stream.cc:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47JNIEXPORT 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
60JNIEXPORT jbyteArray NativeGetFamily(JNIEnv* env, jobject jobj, jlong jresult) {
61 tera::ResultStream* result = reinterpret_cast<tera::ResultStream*>(jresult);

Callers

nothing calls this directly

Calls 3

SendErrorJFunction · 0.85
StringToJByteArrayFunction · 0.85
RowNameMethod · 0.45

Tested by

no test coverage detected