Class Table

    • Method Detail

      • builder

        public static Table.Builder builder​(DatabaseObjectWriter writer,
                                            Schema schema,
                                            com.exasol.db.Identifier tableName)
        Create a builder for a Table.
        Parameters:
        writer - database object writer
        schema - parent schema
        tableName - name of the database table
        Returns:
        new Table instance
      • getType

        public String getType()
        Description copied from interface: DatabaseObject
        Get the type of the database object.
        Returns:
        type of the database object
      • drop

        public void drop()
        Description copied from interface: DatabaseObject
        Drop the database object and all contained objects.
      • getColumns

        public List<Column> getColumns()
        Get the columns of the table.
        Returns:
        table columns
      • getColumnCount

        public int getColumnCount()
        Get the number of columns the table has.
        Returns:
        column count
      • insert

        public Table insert​(Object... values)
        Insert a row of values to the table.
        Parameters:
        values - cell values
        Returns:
        this for fluent programming
      • bulkInsert

        public Table bulkInsert​(Stream<List<Object>> rows)
        Insert multiple rows at once. Compared to inserting each row using insert(Object...) this is a lot faster.
        Parameters:
        rows - stream of rows to insert
        Returns:
        this for fluent programming