GraphLab: Distributed Graph-Parallel API
2.1
|
#include <graphlab/jni/org_graphlab_Aggregator.hpp>
Public Member Functions | |
proxy_aggregator (JNIEnv *env, jobject &java_aggregator) | |
proxy_aggregator () | |
proxy_aggregator (const proxy_aggregator &other) | |
proxy_aggregator & | operator= (const proxy_aggregator &other) |
~proxy_aggregator () | |
void | operator() (icontext_type &context) |
void | operator+= (const proxy_aggregator &other) |
void | finalize (iglobal_context &context) |
jobject & | obj () |
const jobject & | obj () const |
Static Public Attributes | |
static jmethodID | java_exec = 0 |
static jmethodID | java_add = 0 |
static jmethodID | java_finalize = 0 |
static jmethodID | java_clone = 0 |
Protected Member Functions | |
void | set_obj (jobject obj) |
bool | handle_exception (JNIEnv *env) const |
Proxy aggregator. Mirrors and forwards calls to the corresponding Java aggregator. The constructor creates a new reference to the Java object (so that it doesn't get garbage collected.) The destructor will delete the reference to allow the corresponding Java object to be garbaged collected. The copy constructor clones the Java object.
Definition at line 48 of file org_graphlab_Aggregator.hpp.
proxy_aggregator::proxy_aggregator | ( | JNIEnv * | env, |
jobject & | java_aggregator | ||
) |
Constructor for proxy aggregator. Initializes this object with the associated Java org.graphlab.Updater object.
[in] | env | JNI environment - used to create a new reference to javaUpdater. |
[in] | java_aggregator | Java org.graphlab.Aggregator object. This constructor will create a new reference to the object to prevent garbage collection. |
Definition at line 63 of file org_graphlab_Aggregator.cpp.
proxy_aggregator::proxy_aggregator | ( | ) |
The default constructor does nothing
Definition at line 66 of file org_graphlab_Aggregator.cpp.
proxy_aggregator::proxy_aggregator | ( | const proxy_aggregator & | other | ) |
Copy constructor for proxy_aggregator. If other
has a mobj
, creates a new reference to it.
Definition at line 70 of file org_graphlab_Aggregator.cpp.
proxy_aggregator::~proxy_aggregator | ( | ) |
Deletes the reference to the Java object so that it may be garbage collected.
Definition at line 92 of file org_graphlab_Aggregator.cpp.
|
protectedinherited |
Checks for and rethrows Java exceptions.
[in] | env | JNI environment |
Definition at line 117 of file java_any.cpp.
|
inherited |
Retrieves the associated Java object
Definition at line 46 of file java_any.cpp.
proxy_aggregator & proxy_aggregator::operator= | ( | const proxy_aggregator & | other | ) |
Copy assignment operator for proxy_aggregator. If other
has a mobj
, creates a new reference to it.
Definition at line 84 of file org_graphlab_Aggregator.cpp.
|
protectedinherited |
Deletes the current ref (if any) and creates a new ref if obj
is not null.
[in] | obj | replaces current object ref |
Definition at line 93 of file java_any.cpp.
|
static |
Method ID of org.graphlab.Aggregator::add.
Definition at line 66 of file org_graphlab_Aggregator.hpp.
|
static |
Method ID of org.graphlab.Aggregator::clone
Definition at line 76 of file org_graphlab_Aggregator.hpp.
|
static |
Method ID of org.graphlab.Aggregator::exec.
Definition at line 61 of file org_graphlab_Aggregator.hpp.
|
static |
Method ID of org.graphlab.Aggregator::finalize.
Definition at line 71 of file org_graphlab_Aggregator.hpp.