| 160 | } |
| 161 | |
| 162 | JNIEXPORT 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 | |
| 176 | JNIEXPORT jlong NativeScan(JNIEnv* env, jobject jobj, jlong jtable, jlong jdesc) { |
| 177 | tera::Table* table = reinterpret_cast<tera::Table*>(jtable); |
nothing calls this directly
no test coverage detected