Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::JniLocalFrame Class Reference

#include <jni-util.h>

Collaboration diagram for impala::JniLocalFrame:

Public Member Functions

 JniLocalFrame ()
 
 ~JniLocalFrame ()
 
Status push (JNIEnv *env, int max_local_ref=10)
 

Private Attributes

JNIEnv * env_
 

Detailed Description

Utility class to push/pop a single JNI frame. "push" will push a JNI frame and the d'tor will pop the JNI frame. Frames establish a scope for local references. Local references go out of scope when their frame is popped, which enables the GC to clean up the corresponding objects.

Definition at line 133 of file jni-util.h.

Constructor & Destructor Documentation

impala::JniLocalFrame::JniLocalFrame ( )
inline

Definition at line 135 of file jni-util.h.

impala::JniLocalFrame::~JniLocalFrame ( )
inline

Definition at line 136 of file jni-util.h.

References env_.

Member Function Documentation

Status impala::JniLocalFrame::push ( JNIEnv *  env,
int  max_local_ref = 10 
)

Member Data Documentation

JNIEnv* impala::JniLocalFrame::env_
private

Definition at line 145 of file jni-util.h.

Referenced by push(), and ~JniLocalFrame().


The documentation for this class was generated from the following files: