public abstract class IgniteDataTransferObject extends Object implements Externalizable
| Modifier and Type | Field and Description |
|---|---|
protected static byte |
V1
Version 1.
|
protected static byte |
V2
Version 2.
|
protected static byte |
V3
Version 3.
|
protected static byte |
V4
Version 4.
|
protected static byte |
V5
Version 5.
|
| Constructor and Description |
|---|
IgniteDataTransferObject() |
| Modifier and Type | Method and Description |
|---|---|
byte |
getProtocolVersion() |
void |
readExternal(ObjectInput in) |
protected abstract void |
readExternalData(byte protoVer,
ObjectInput in)
Load object's specific data content.
|
protected static <T> @Nullable List<T> |
toList(Collection<T> col) |
protected static <T> @Nullable Set<T> |
toSet(Collection<T> col) |
void |
writeExternal(ObjectOutput out) |
protected abstract void |
writeExternalData(ObjectOutput out)
Save object's specific data content.
|
protected static final byte V1
protected static final byte V2
protected static final byte V3
protected static final byte V4
protected static final byte V5
@Nullable protected static <T> @Nullable List<T> toList(Collection<T> col)
T - Collection type.col - Source collection.@Nullable protected static <T> @Nullable Set<T> toSet(Collection<T> col)
T - Collection type.col - Source collection.public byte getProtocolVersion()
protected abstract void writeExternalData(ObjectOutput out) throws IOException
out - Output object to write data content.IOException - If I/O errors occur.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionprotected abstract void readExternalData(byte protoVer,
ObjectInput in)
throws IOException,
ClassNotFoundException
protoVer - Input object version.in - Input object to load data content.IOException - If I/O errors occur.ClassNotFoundException - If the class for an object being restored cannot be found.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020