/* hint */ JNIEXPORT jstring JNICALL Java_tokyotyrant_RDBQRY_hint (JNIEnv *env, jobject self){ RDBQRY *qry = (RDBQRY *)(intptr_t)(*env)->GetLongField(env, self, tcrdbqry_fid_ptr); const char *hint = tcrdbqryhint(qry); jstring jhint; if(hint){ jhint = (*env)->NewStringUTF(env, hint); if(!hint){ throwoutmem(env); return NULL; } } else { jhint = NULL; } return jhint; }
static PyObject * RTDBQuery_hint_get(RTDBQuery *self, void *closure) { return PyString_FromString(tcrdbqryhint(self->rqry)); }