MCPcopy Create free account
hub / github.com/baidu/tera / NativeApplyReader

Function NativeApplyReader

src/sdk/java/native-src/jni_tera_table.cc:162–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162JNIEXPORT jlong NativeApplyReader(JNIEnv* env, jobject jobj, jlong jtable_ptr, jlong jreader_ptr) {
163 tera::Table* table = reinterpret_cast<tera::Table*>(jtable_ptr);
164 tera::RowReader* reader = reinterpret_cast<tera::RowReader*>(jreader_ptr);
165 tera::ErrorCode error_code;
166
167 if (table == NULL || reader == NULL) {
168 SendErrorJ(env, jobj, "table or reader not initialized.");
169 return 0;
170 }
171 table->Get(reader);
172
173 return reinterpret_cast<jlong>(reader);
174}
175
176JNIEXPORT jlong NativeScan(JNIEnv* env, jobject jobj, jlong jtable, jlong jdesc) {
177 tera::Table* table = reinterpret_cast<tera::Table*>(jtable);

Callers

nothing calls this directly

Calls 2

SendErrorJFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected