Class BinaryFieldMetadata

    • Constructor Detail

      • BinaryFieldMetadata

        public BinaryFieldMetadata()
      • 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.
      • 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.
      • 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.