Class PlatformStreamReceiverImpl
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.PlatformAbstractPredicate
-
- org.apache.ignite.internal.processors.platform.datastreamer.PlatformStreamReceiverImpl
-
- All Implemented Interfaces:
Externalizable,Serializable,PlatformStreamReceiver,StreamReceiver<Object,Object>
public class PlatformStreamReceiverImpl extends PlatformAbstractPredicate implements PlatformStreamReceiver
Interop receiver.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.platform.PlatformAbstractPredicate
ctx, pred, ptr
-
-
Constructor Summary
Constructors Constructor Description PlatformStreamReceiverImpl()Constructor.PlatformStreamReceiverImpl(Object pred, long ptr, boolean keepBinary, PlatformContext ctx)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadExternal(ObjectInput in)voidreceive(IgniteCache<Object,Object> cache, Collection<Map.Entry<Object,Object>> collection)Updates cache with batch of entries.voidsetIgniteInstance(Ignite ignite)voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
PlatformStreamReceiverImpl
public PlatformStreamReceiverImpl()
Constructor.
-
PlatformStreamReceiverImpl
public PlatformStreamReceiverImpl(Object pred, long ptr, boolean keepBinary, PlatformContext ctx)
Constructor.- Parameters:
pred- .Net binary receiver.ptr- Pointer to receiver in the native platform.ctx- Kernal context.
-
-
Method Detail
-
receive
public void receive(IgniteCache<Object,Object> cache, Collection<Map.Entry<Object,Object>> collection) throws IgniteException
Updates cache with batch of entries.- Specified by:
receivein interfaceStreamReceiver<Object,Object>- Parameters:
cache- Cache.collection- Collection of entries.- Throws:
IgniteException- If failed.
-
setIgniteInstance
@IgniteInstanceResource public void setIgniteInstance(Ignite ignite)
- Parameters:
ignite- Ignite instance.
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classPlatformAbstractPredicate- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classPlatformAbstractPredicate- Throws:
IOExceptionClassNotFoundException
-
-