Class BinaryFieldMetadata
- java.lang.Object
-
- org.apache.ignite.internal.binary.BinaryFieldMetadata
-
- All Implemented Interfaces:
Externalizable,Serializable
public class BinaryFieldMetadata extends Object implements Externalizable
Binary field metadata.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BinaryFieldMetadata()ForExternalizable.BinaryFieldMetadata(int typeId, int fieldId)Constructor.BinaryFieldMetadata(BinaryFieldAccessor accessor)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfieldId()voidreadExternal(ObjectInput in)voidreadFrom(DataInput in)The object implements the readFrom method to restore its contents by calling the methods of DataInput for primitive types and strings or calling readExternal for other objects.StringtoString()inttypeId()voidwriteExternal(ObjectOutput out)voidwriteTo(DataOutput out)The object implements the writeTo method to save its contents by calling the methods of DataOutput for its primitive values and strings or calling the writeTo method for other objects.
-
-
-
Constructor Detail
-
BinaryFieldMetadata
public BinaryFieldMetadata()
ForExternalizable.
-
BinaryFieldMetadata
public BinaryFieldMetadata(int typeId, int fieldId)Constructor.- Parameters:
typeId- Field type ID.fieldId- Field id in schema.
-
BinaryFieldMetadata
public BinaryFieldMetadata(BinaryFieldAccessor accessor)
Constructor.- Parameters:
accessor- Field accessor.
-
-
Method Detail
-
fieldId
public int fieldId()
- Returns:
- Field ID in binary schema.
-
typeId
public int typeId()
- Returns:
- ID of the type of the field.
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
writeTo
public void writeTo(DataOutput out) throws IOException
The object implements the writeTo method to save its contents by calling the methods of DataOutput for its primitive values and strings or calling the writeTo method for other objects.- Parameters:
out- the stream to write the object to.- Throws:
IOException- Includes any I/O exceptions that may occur.
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
readFrom
public void readFrom(DataInput in) throws IOException
The object implements the readFrom method to restore its contents by calling the methods of DataInput for primitive types and strings or calling readExternal for other objects. The readFrom method must read the values in the same sequence and with the same types as were written by writeTo.- Parameters:
in- the stream to read data from in order to restore the object.- Throws:
IOException- if I/O errors occur.
-
-