Class TableProperties


  • public class TableProperties
    extends Object
    Represents properties of the table object as returned by the "SHOW TABLES ..." expression

    Note: the list of properties is not complete.

    • Constructor Detail

      • TableProperties

        public TableProperties​(Identifier database,
                               Identifier schema,
                               Identifier name,
                               Timestamp createdOn,
                               String kind,
                               String owner,
                               long rows)
        Creates new TableProperties
        Parameters:
        database - database
        schema - schema
        name - name of the table
        createdOn - created on property
        kind - kind
        owner - owner
        rows - number of rows in the table
    • Method Detail

      • getObjectName

        public ObjectName getObjectName()
        objectName property accessor
        Returns:
        objectName property
      • getName

        public String getName()
        Returns String name of the table
        Returns:
        returns String name of the table as returned from SHOW TABLES ...
      • getCreatedOn

        public Timestamp getCreatedOn()
        createdOn property accessor
        Returns:
        createdOn property as returned from SHOW TABLES ...
      • getKind

        public String getKind()
        kind property accessor
        Returns:
        kind property as returned from SHOW TABLES ...
      • getOwner

        public String getOwner()
        owner property accessor
        Returns:
        name of the owner as returned from SHOW TABLES ...
      • getRows

        public long getRows()
        rows property accessor
        Returns:
        rowcount
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object