Skip navigation links
EDB/Java
jp.ac.tokushima_u.db.logistics

Class ExtRDB.ExtRDBTable

    • Field Detail

      • RETRYs

        int RETRYs
    • Constructor Detail

      • ExtRDBTable

        public ExtRDBTable(PgRDB.Table ta,
                           PgRDB.Column... columns)
        Create table instance.
        Parameters:
        ta - Table of PgRDB.
        columns - columns belong to table.
      • ExtRDBTable

        public ExtRDBTable(String name,
                           PgRDB.Column... columns)
        Create table instance.
        Parameters:
        name - Name of table.
        columns - columns belong to table.
    • Method Detail

      • getTable

        public PgRDB.Table getTable()
        get table.
        Returns:
        Table of PgRDB.
      • create

        public boolean create(ExtRDBCluster<ExtRDB> cluster,
                              boolean renew)
        Create table if table is not exist.
        Parameters:
        cluster - database.
        renew - force create table even if table is already exist.
        Returns:
        table creation was executed.
      • createIndex

        public String createIndex(PgRDB.Column col,
                                  boolean unique)
        Create index.
        Parameters:
        col - Columns for Index
        unique - Uniqueness
        Returns:
        name of index.
      • createIndex

        public String createIndex(boolean unique,
                                  PgRDB.Column... cols)
        Create index.
        Parameters:
        unique - Uniqueness
        cols - Columns for Index
        Returns:
        name of index.
      • setReplicaIdentity

        public void setReplicaIdentity(String indexName)
        Set replica identity for PostgreSQL replication.
        Parameters:
        indexName - Name of Index.
      • deleteAndInsert

        public void deleteAndInsert(long retr,
                                    PgRDB.Where delete,
                                    Collection<PgRDB.Value> values)
        Delete rows and multiple and insert multiple rows.
        Parameters:
        retr - timestamp of data (epoch milliseconds)
        delete - Where phrase for deletion.
        values - insert value.
      • deleteAndMultipleInsert

        public void deleteAndMultipleInsert(long retr,
                                            PgRDB.Where delete,
                                            Collection<? extends Collection<PgRDB.Value>> valuess)
        Delete rows and multiple and insert multiple rows.
        Parameters:
        retr - timestamp of data (epoch milliseconds)
        delete - Where phrase for deletion.
        valuess - insert values.
      • delete

        public void delete(PgRDB.Where delete)
        Delete rows where specified condition.
        Parameters:
        delete - Where phrase.
      • setSQLBufferScale

        public void setSQLBufferScale(double s)
      • setRegisters

        public void setRegisters(int n)
      • idling

        public boolean idling()
        Execute idling jobs.
        Specified by:
        idling in interface ExtRDBCluster.TableInf
        Returns:
        There are extra idling jobs.
      • sweep

        public void sweep(long before)
        Sweep old rows.
        Specified by:
        sweep in interface ExtRDBCluster.TableInf
        Parameters:
        before - epoch time (milliseconds).
EDB/Java

EDB Working Group at Mon Dec 15 16:45:05 JST 2025