Class ScottHsqldb


  • public class ScottHsqldb
    extends Object
    Scott data set in hsqldb format.
    • Constructor Detail

      • ScottHsqldb

        public ScottHsqldb()
    • Method Detail

      • tableNames

        public static List<String> tableNames()
        Returns the list of table names in the Scott schema.
      • tableUri

        public static String tableUri​(String tableName)
        Converts a table name to a CSV file URI relative to the jar file root.

        For example, tableUri("DEPT") returns "/csv/dept.csv".

      • generateInserts

        public static Iterable<String> generateInserts()
        Returns the INSERT statements for all Scott schema data.

        Generates statements by reading from the CSV files lazily using an iterator.

        Returns:
        an iterable of INSERT statements