Class SummarizeTable

java.lang.Object
java.util.Observable
ca.spatial.table.SummarizeTable

public class SummarizeTable extends Observable
Prepare a summary of the contents of a table. The summary is displayed in HTML format and show columns names, data types, widths and column contents. If the number of unique values in a column is less than the uniqueSize parameter then these will also be listed.
 as = AttributeStore.openOrReuse("attributes.dbf");
 new SummarizeTable(as, 20).execute().print("summary.html");
 
  • Constructor Details

    • SummarizeTable

      public SummarizeTable(AttributeStore as, int uniqueSize)
      Create the SummarizeTable object and prepare to summarize.
      Parameters:
      as - A reference to the table to be summarized
      uniqueSize - The maximum number of unique values to keep track of before reporting too many values to list.
  • Method Details

    • setUniqueLimit

      public SummarizeTable setUniqueLimit(int limit)
    • getUniqueLimit

      public int getUniqueLimit()
    • interrupt

      public void interrupt()
    • getName

      public String getName(int column)
    • getWidth

      public int getWidth(int column)
    • getDec

      public int getDec(int column)
    • getSuggestedWidth

      public int getSuggestedWidth(int column)
    • getSuggestedDec

      public int getSuggestedDec(int column)
    • execute

      public SummarizeTable execute()
      Process records and summarize.
    • format

      public String format()
      Get the summary infomration as an HTML string.
    • print

      public void print(String output) throws IOException
      Print the summary information to the named file.
      Throws:
      IOException
    • show

      public void show(Window parent, boolean modal)
    • main

      public static void main(String[] args)