GraphLab: Distributed Graph-Parallel API
2.1
|
#include <graphlab/jni/org_graphlab_Updater.hpp>
Public Types | |
typedef jni_core< proxy_graph, proxy_updater > | core |
typedef iupdate_functor < proxy_graph, proxy_updater > ::icontext_type | context |
Public Member Functions | |
proxy_updater (JNIEnv *env, jobject &java_updater) | |
proxy_updater () | |
proxy_updater (const proxy_updater &other) | |
proxy_updater & | operator= (const proxy_updater &other) |
~proxy_updater () | |
void | operator() (icontext_type &context) |
void | operator+= (const update_functor_type &other) const |
bool | is_factorizable () const |
edge_set | gather_edges () const |
edge_set | scatter_edges () const |
consistency_model | consistency () const |
consistency_model | gather_consistency () const |
consistency_model | scatter_consistency () const |
void | init_gather (icontext_type &context) |
void | gather (icontext_type &context, const edge_type &edge) |
void | merge (const update_functor_type &other) |
void | apply (icontext_type &context) |
void | scatter (icontext_type &context, const edge_type &edge) |
jobject & | obj () |
const jobject & | obj () const |
Static Public Attributes | |
static jmethodID | java_update = 0 |
static jmethodID | java_add = 0 |
static jmethodID | java_priority = 0 |
static jmethodID | java_clone = 0 |
static jmethodID | java_is_factorizable = 0 |
static jmethodID | java_gather_edges = 0 |
static jmethodID | java_scatter_edges = 0 |
static jmethodID | java_consistency = 0 |
static jmethodID | java_gather_consistency = 0 |
static jmethodID | java_scatter_consistency = 0 |
static jmethodID | java_init_gather = 0 |
static jmethodID | java_gather = 0 |
static jmethodID | java_merge = 0 |
static jmethodID | java_apply = 0 |
static jmethodID | java_scatter = 0 |
Protected Member Functions | |
void | set_obj (jobject obj) |
bool | handle_exception (JNIEnv *env) const |
Proxy updater. Mirrors and forwards update calls to the corresponding Java updater. 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.
Note that multiple proxy_updaters may correspond to the same org.graphlab.Updater object.
Definition at line 79 of file org_graphlab_Updater.hpp.
typedef iupdate_functor<proxy_graph, proxy_updater>::icontext_type graphlab::proxy_updater::context |
context type that uses the proxy graph and the proxy updater
Definition at line 89 of file org_graphlab_Updater.hpp.
jni_core type that uses the proxy graph and the proxy updater
Definition at line 86 of file org_graphlab_Updater.hpp.
proxy_updater::proxy_updater | ( | JNIEnv * | env, |
jobject & | java_updater | ||
) |
Constructor for proxy updater. 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_updater | Java org.graphlab.Updater object. This constructor will create a new reference to the object to prevent garbage collection. |
Definition at line 104 of file org_graphlab_Updater.cpp.
proxy_updater::proxy_updater | ( | ) |
The default constructor does nothing
Definition at line 107 of file org_graphlab_Updater.cpp.
proxy_updater::proxy_updater | ( | const proxy_updater & | other | ) |
Copy constructor for proxy_updater. If other
has a mjava_updater
, creates a new reference to it.
Definition at line 110 of file org_graphlab_Updater.cpp.
proxy_updater::~proxy_updater | ( | ) |
Deletes the reference to the Java object so that it may be garbage collected.
Definition at line 132 of file org_graphlab_Updater.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_updater & proxy_updater::operator= | ( | const proxy_updater & | other | ) |
Copy assignment operator for proxy_updater. If other
has a mjava_updater
, creates a new reference to it.
Definition at line 124 of file org_graphlab_Updater.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.Updater::add
Definition at line 95 of file org_graphlab_Updater.hpp.
|
static |
Method ID of org.graphlab.Updater::apply
Definition at line 131 of file org_graphlab_Updater.hpp.
|
static |
Method ID of org.graphlab.Updater::clone
Definition at line 101 of file org_graphlab_Updater.hpp.
|
static |
Method ID of org.graphlab.Updater::consistency
Definition at line 113 of file org_graphlab_Updater.hpp.
|
static |
Method ID of org.graphlab.Updater::gather
Definition at line 125 of file org_graphlab_Updater.hpp.
|
static |
Method ID of org.graphlab.Updater::gatherConsistency
Definition at line 116 of file org_graphlab_Updater.hpp.
|
static |
Method ID of org.graphlab.Updater::gatherEdges
Definition at line 107 of file org_graphlab_Updater.hpp.
|
static |
Method ID of org.graphlab.Updater::initGather
Definition at line 122 of file org_graphlab_Updater.hpp.
|
static |
Method ID of org.graphlab.Updater::isFactorizable
Definition at line 104 of file org_graphlab_Updater.hpp.
|
static |
Method ID of org.graphlab.Updater::merge
Definition at line 128 of file org_graphlab_Updater.hpp.
|
static |
Method ID of org.graphlab.Updater::priority
Definition at line 98 of file org_graphlab_Updater.hpp.
|
static |
Method ID of org.graphlab.Updater::scatter
Definition at line 134 of file org_graphlab_Updater.hpp.
|
static |
Method ID of org.graphlab.Updater::scatterConsistency
Definition at line 119 of file org_graphlab_Updater.hpp.
|
static |
Method ID of org.graphlab.Updater::scatterEdges
Definition at line 110 of file org_graphlab_Updater.hpp.
|
static |
Method ID of org.graphlab.Updater::update
Definition at line 92 of file org_graphlab_Updater.hpp.