Class FieldSchema

  • All Implemented Interfaces:
    java.io.Serializable

    public class FieldSchema
    extends java.lang.Object
    implements java.io.Serializable
    Metadata of a field in the schema.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FieldSchema​(int id, java.lang.String name, java.lang.String type, java.lang.String comment)  
    • Constructor Detail

      • FieldSchema

        public FieldSchema​(int id,
                           java.lang.String name,
                           java.lang.String type,
                           java.lang.String comment)
        Parameters:
        id - the id
        name - the name
        type - the type
        comment - the comment
    • Method Detail

      • getId

        public int getId()
        Returns:
        the ID of the field
      • getName

        public java.lang.String getName()
        Returns:
        the name of the field
      • getType

        public java.lang.String getType()
        Returns:
        the type of the field
      • getComment

        public java.lang.String getComment()
        Returns:
        the comment of the field
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object