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.
|
protected static byte |
V6
Version 6.
|
protected static byte |
V7
Version 7.
|
protected static byte |
V8
Version 8.
|
protected static byte |
V9
Version 9.
|
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
protected static final byte V6
protected static final byte V7
protected static final byte V8
protected static final byte V9
@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 Externalizable
IOException
protected 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 Externalizable
IOException
ClassNotFoundException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021