public class TableSignature
extends java.lang.Object
implements java.io.Externalizable
RAW-TRANSFER. This is a basic implementation.
The serialized form is not binary compatible with the 4GL.| Modifier and Type | Field and Description |
|---|---|
private static java.util.Map<java.lang.Class<? extends BaseDataType>,java.lang.Byte> |
c2b
Class to byte mapping table.
|
private short[] |
extents
Each field's extent value in ascending order by the POSITION attribute in the schema.
|
private int |
num
Number of fields in the table.
|
private byte[] |
types
Each field's data type in ascending order by the POSITION attribute in the schema.
|
| Constructor and Description |
|---|
TableSignature()
Default constructor.
|
TableSignature(java.util.List<TableMapper.LegacyFieldInfo> fields)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object that)
Test the equivalence of the current instance to the given object.
|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
private static final java.util.Map<java.lang.Class<? extends BaseDataType>,java.lang.Byte> c2b
private int num
private byte[] types
private short[] extents
public TableSignature()
public TableSignature(java.util.List<TableMapper.LegacyFieldInfo> fields)
fields - List of field descriptors.public boolean equals(java.lang.Object that)
equals in class java.lang.Objectthat - The instance for comparison.true if given object is equal to the current instancepublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - The input source from which fields will be restored.java.io.IOException - In case of I/O errors.java.lang.ClassNotFoundException - If payload can't be instantiated.public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - The output destination to which fields will be saved.java.io.IOException - In case of I/O errors.