Package table

Class DomainsFinder

java.lang.Object
table.DomainsFinder
All Implemented Interfaces:
util.Executable

public class DomainsFinder extends Object implements util.Executable
Class for table column domain determination.
Since:
2007.05.08
  • Field Details

    • AUTOTYPE

      public static final int AUTOTYPE
      operation: determine types automatically
      See Also:
    • SORTVALS

      public static final int SORTVALS
      operation: sort nominal attribute values
      See Also:
  • Constructor Details

    • DomainsFinder

      public DomainsFinder()
      Create a table domain finder.
      Since:
      2007.05.08 (Christian Borgelt)
  • Method Details

    • setInput

      public void setInput(util.TableReader reader)
      Set the table reader and read mode.
      Parameters:
      reader - the table reader
      Since:
      2007.05.17 (Christian Borgelt)
    • setInput

      public void setInput(String fn_tab)
      Set the table input file.
      Parameters:
      fn_tab - the name of the data table file
      Since:
      2007.07.26 (Christian Borgelt)
    • setChars

      public void setChars(String recseps, String fldseps, String blanks, String nullchs, String comment)
      Set the format characters.
      Parameters:
      recseps - the record separators
      fldseps - the field separators
      blanks - the blank characters
      nullchs - the null value characters
      comment - the comment characters
      Since:
      2007.07.26 (Christian Borgelt)
    • setMode

      public void setMode(int mode)
      Set the read mode.
      Parameters:
      mode - the read mode
      Since:
      2007.07.26 (Christian Borgelt)
    • setOps

      public void setOps(int ops)
      Set additional operations.
      Parameters:
      ops - the additional operations
      Since:
      2007.07.25 (Christian Borgelt)
    • setOutput

      public void setOutput(Writer writer)
      Set the output file writer.
      Parameters:
      writer - the output file writer
      Since:
      2007.05.17 (Christian Borgelt)
    • setOutput

      public void setOutput(String fn_dom)
      Set the output file.
      Parameters:
      fn_dom - the name of the output file
      Since:
      2007.05.17 (Christian Borgelt)
    • getTable

      public Table getTable()
      Get the table used for determining the domains.
      Returns:
      the table used for determining the domains
      Since:
      2007.05.08 (Christian Borgelt)
    • find

      public void find() throws IOException
      Execute the domain finder.
      Throws:
      IOException - if a read error occurs
      Since:
      2007.05.08 (Christian Borgelt)
    • exec

      public void exec() throws Exception
      Execute the domain finder.
      Specified by:
      exec in interface util.Executable
      Throws:
      Exception - if a execution error occurs
      Since:
      2007.05.16 (Christian Borgelt)
    • abort

      public void abort()
      Abort the execution.
      Specified by:
      abort in interface util.Executable
      Since:
      2007.05.08 (Christian Borgelt)