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

Function jbyteArray NativeGetValue

src/sdk/java/native-src/jni_tera_result.cc:92–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92JNIEXPORT jbyteArray NativeGetValue(JNIEnv* env, jobject jobj, jlong jreader) {
93 tera::RowReader* reader = reinterpret_cast<tera::RowReader*>(jreader);
94 jbyteArray jvalue;
95 if (reader == NULL) {
96 std::string msg = "reader not initialized.";
97 SendErrorJ(env, jobj, msg);
98 return NULL;
99 }
100 std::string value = reader->Value();
101 StringToJByteArray(env, value, &jvalue);
102 return jvalue;
103}

Callers

nothing calls this directly

Calls 3

SendErrorJFunction · 0.85
StringToJByteArrayFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected