Class Schema

    • Method Detail

      • getColumnCount

        public int getColumnCount()
        Returns the number of columns of this schema.
      • getColumns

        public List<Column> getColumns()
        Returns all Columns of this schema.
      • getColumnNames

        public List<String> getColumnNames()
        Returns all column names. It does not distinguish between different kinds of columns.
      • getColumnDataTypes

        public List<DataType> getColumnDataTypes()
        Returns all column data types. It does not distinguish between different kinds of columns.
      • primaryKeys

        public List<String> primaryKeys()
        Returns the primary keys of the table or data collection.
      • partitionKeys

        public List<String> partitionKeys()
        Returns the partition keys of the table or data collection.
      • options

        public Map<String,​String> options()
        Returns the options of the table or data collection.
      • describeOptions

        public String describeOptions()
      • comment

        public String comment()
        Returns the comment of the table or data collection.
      • getColumn

        public Optional<Column> getColumn​(String columnName)
        Returns the Column instance for the given column name.
        Parameters:
        columnName - the name of the column
      • copy

        public Schema copy​(List<Column> columns)
        Returns a copy of the schema with a replaced list of Column.
      • copy

        public Schema copy​(String comment)
        Returns a copy of the schema with a replaced comment.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • newBuilder

        public static Schema.Builder newBuilder()
        Builder for configuring and creating instances of Schema.