 |
Apache Ignite C++
|
Go to the documentation of this file.
23 #ifndef _IGNITE_IGNITE_BINDING
24 #define _IGNITE_IGNITE_BINDING
26 #include <ignite/common/common.h>
27 #include <ignite/common/concurrent.h>
29 #include <ignite/impl/ignite_binding_impl.h>
30 #include <ignite/impl/bindings.h>
55 IgniteBinding(common::concurrent::SharedPointer<impl::IgniteBindingImpl> impl) :
72 RegisterCacheEntryProcessor<P>(err);
88 impl::IgniteBindingImpl *im = impl.Get();
92 im->RegisterCallback(impl::IgniteBindingImpl::CallbackType::CACHE_ENTRY_PROCESSOR_APPLY,
94 typename P::ValueType,
typename P::ReturnType,
typename P::ArgumentType>, err);
99 "Instance is not usable (did you check for error?).");
112 impl::IgniteBindingImpl *im = impl.Get();
118 im->RegisterCallback(impl::IgniteBindingImpl::CallbackType::CACHE_ENTRY_FILTER_CREATE,
119 typeId, impl::binding::FilterCreate<F>);
124 "Instance is not usable (did you check for error?).");
137 impl::IgniteBindingImpl *im = impl.Get();
143 im->RegisterCallback(impl::IgniteBindingImpl::CallbackType::COMPUTE_JOB_CREATE,
144 typeId, impl::binding::ComputeJobCreate<F, typename F::ReturnType>);
149 "Instance is not usable (did you check for error?).");
165 return impl.IsValid();
170 common::concurrent::SharedPointer<impl::IgniteBindingImpl> impl;
174 #endif //_IGNITE_IGNITE_BINDING
Ignite Binding.
Definition: ignite_binding.h:38
Apache Ignite API.
Definition: cache.h:48
void RegisterCacheEntryProcessor()
Register type as Cache Entry Processor.
Definition: ignite_binding.h:68
bool IsValid() const
Check if the instance is valid.
Definition: ignite_binding.h:163
void RegisterComputeFunc()
Register type as Compute function.
Definition: ignite_binding.h:135
IgniteBinding()
Default constructor.
Definition: ignite_binding.h:44
static const int IGNITE_ERR_GENERIC
Generic Ignite error.
Definition: ignite_error.h:131
Binary type structure.
Definition: binary_type.h:149
void RegisterCacheEntryProcessor(IgniteError &err)
Register Type as Cache Entry Processor.
Definition: ignite_binding.h:86
static void ThrowIfNeeded(const IgniteError &err)
Throw an error if code is not IGNITE_SUCCESS.
Definition: ignite_error.cpp:27
void RegisterCacheEntryEventFilter()
Register type as Cache Entry Event Filter.
Definition: ignite_binding.h:110
Ignite error information.
Definition: ignite_error.h:94
IgniteBinding(common::concurrent::SharedPointer< impl::IgniteBindingImpl > impl)
Constructor.
Definition: ignite_binding.h:55